Pages:
Author

Topic: More Genesis Block Discussion - page 2. (Read 33958 times)

newbie
Activity: 18
Merit: 0
June 24, 2014, 03:27:47 PM
#87
This is what i get on ubuntu VM wiht ifconfig

Quote
pk@pk-VirtualBox:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:3d:b5:a4  
          inet addr:192.168.1.56  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe3d:b5a4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25144 errors:0 dropped:1 overruns:0 frame:0
          TX packets:19341 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:29876661 (29.8 MB)  TX bytes:3014061 (3.0 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4863 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:543609 (543.6 KB)  TX bytes:543609 (543.6 KB)

You think I need to forward data ?


What I don't understand is that, when I open a daemon of a random coin on either of the VMs they can connect easily to the network of the random coin and start synchronisation.
legendary
Activity: 996
Merit: 1013
June 24, 2014, 03:22:29 PM
#86
.
My configuration is 2 PC with different public IP
PC1 and PC2 are using ubuntu on VM
I try to connect those 2 VMs. In config file,  those 2 IP in addnode are public IP from PC1 and PC2

What I always do is to connect pc daemon with VM daemon.
Those will have different addresses, so I think the public ip's
do not reach down to vm's.

Try ifconfig on either of the ubuntus
and see what ip you get.
sr. member
Activity: 294
Merit: 250
Bitmark Developer
June 24, 2014, 03:06:32 PM
#85
start pc1 daemon, tail -f the debug.log
start pc2 daemon, see if any entry occurs in debug.log above
newbie
Activity: 18
Merit: 0
June 24, 2014, 02:56:07 PM
#84
The all-zero ip just tells that you're not being
seen by your peer. Could be variety of reasons for that,
and you aren't very clear about your configuration (two pc's
with vm's - are the nodes in vm's?)

In any case you don't need to add both nodes to the conf
files, just the other one. And your debug.log indicates that
your nodes have seen each other 0.9 hours ago, so something
has caused them to drop the connection.

Thanks for your answer.

My configuration is 2 PC with different public IP
PC1 and PC2 are using ubuntu on VM
I try to connect those 2 VMs. In config file,  those 2 IP in addnode are public IP from PC1 and PC2

The 0.9 hours I think is a default value because in log there is never connection
legendary
Activity: 996
Merit: 1013
June 24, 2014, 01:03:38 PM
#83
The all-zero ip just tells that you're not being
seen by your peer. Could be variety of reasons for that,
and you aren't very clear about your configuration (two pc's
with vm's - are the nodes in vm's?)

In any case you don't need to add both nodes to the conf
files, just the other one. And your debug.log indicates that
your nodes have seen each other 0.9 hours ago, so something
has caused them to drop the connection.
newbie
Activity: 18
Merit: 0
June 24, 2014, 11:32:01 AM
#82
Someone ??
newbie
Activity: 18
Merit: 0
June 21, 2014, 04:43:37 PM
#81
Can they ping each other? Ports blocked?

Yes I can ping each other public ip

btw in getinfo ip 0.0.0.0 is normal ?

thnks
hero member
Activity: 984
Merit: 1000
June 21, 2014, 04:37:06 PM
#80
Can they ping each other? Ports blocked?
newbie
Activity: 18
Merit: 0
June 21, 2014, 04:33:38 PM
#79
I hope someone can help me out with my pb

I got genesisblock on testnet, I try to test mining my testnet coins. I use 2 computers with each one ubuntu VM and different IP. I launch daemon and I try to get my PCs connected

I use the following cmd:
Quote
./myCoind -testnet

with following config:

Quote
rpcuser=user
rpcpassword=pass
server=1
addnode=ip_PC1
addnode=ip_PC2
rpcport=xxxxx
listen=1

My pb is i can't get connections with PC1 and PC2.

Quote
"walletversion" : 60000,
    "balance" : 0.00000000,
    "newmint" : 0.00000000,
    "stake" : 0.00000000,
    "blocks" : 0,
    "timeoffset" : 0,
    "moneysupply" : 0.00000000,
    "connections" : 0,
    "proxy" : "",
    "ip" : "0.0.0.0",
    "difficulty" : {

In debug.log I have

Quote
trying connection ip_PC1:xxxxx lastseen=0.9hrs
connection timeout
trying connection ip_PC1:xxxxx lastseen=0.9hrs
connection timeout
trying connection ip_PC1:xxxxx lastseen=0.9hrs
connection timeout

I don't know if i need to configure port forward in VM or my internet box.
There is something I can check that will help me spot where the pb is coming from ?


thnks
legendary
Activity: 996
Merit: 1013
June 14, 2014, 06:46:48 PM
#78
try moving the block.print() statement
before the assertion
legendary
Activity: 1540
Merit: 1001
Crypto since 2014
June 14, 2014, 04:26:46 PM
#77
Can someone please help me?
This is what I have in main.cpp:
Code:
        const char* pszTimestamp = "14 June 2014 Soceroos lose to Chile 3-1 in FIFA world cup";
        CTransaction txNew;
        txNew.nTime = 1402712622;
        txNew.vin.resize(1);
        txNew.vout.resize(1);
        txNew.vin[0].scriptSig = CScript() << 0 << CBigNum(42) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
        txNew.vout[0].SetEmpty();
        CBlock block;
        block.vtx.push_back(txNew);
        block.hashPrevBlock = 0;
        block.hashMerkleRoot = 0;
        block.nVersion = 0;
        block.nTime    = 0;
        block.nBits    = 0;
        block.nNonce   = 0;

        //// debug print
        assert(block.hashMerkleRoot == uint256("0x0"));
        block.print();
        assert(block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet));
        assert(block.CheckBlock());

And in debug.log all I get is:
Code:
CBlock(hash=694b3a55a61339b43c01421b13f710e22e33a7eabda1cd48103bb9f376081d16, ver=0, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=0000000000000000000000000000000000000000000000000000000000000000, nTime=0, nBits=00000000, nNonce=0, vtx=1, vchBlockSig=)
  Coinbase(hash=b89a899f43, nTime=1402712622, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 00012a393134204a756e65203230313420536f6365726f6f73206c6f736520746f204368696c6520332d3120696e204649464120776f726c6420637570)
    CTxOut(empty)
  vMerkleTree:

What did I do wrong? (i'm trying to replace 0x0 with the Merkle Root)
member
Activity: 109
Merit: 35
May 27, 2014, 03:23:28 PM
#76
Hehe.. detecting a subtle hint of sarcasm there Smiley
legendary
Activity: 996
Merit: 1013
May 27, 2014, 03:17:39 PM
#75

Yeah X11 is more cpu-friendly  Smiley
member
Activity: 109
Merit: 35
May 27, 2014, 03:10:25 PM
#74
Thanks for the info YarkoL.

I managed to get it working fine today. After doing the same thing a long time ago with Scrypt, I recollect it taking a while to grind through a range of hashes and nonces. Thought this was going to happen again and it threw me off the trail because all the correct stuff was there instantly and it seemed too good to be true, so I ignored it (stupidly) Smiley

Got issues with segmentation faults and missing setgenerate RPC commands now. Oh happy days!!!

legendary
Activity: 996
Merit: 1013
May 27, 2014, 06:19:02 AM
#73
@PereguineBerty

It's hard to say what the issue exactly is, but hardly a x11 error
if you haven't got past the hash identity assertion yet.

Maybe you could start by simplifying this a little

Code:
!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)

i.e scrap the ternary operator, feed straight values into it so
you can begin to track down why the block hash isn't the same as
your gen block hash
full member
Activity: 210
Merit: 100
May 27, 2014, 05:17:54 AM
#72
i dont know why i have not " block.GetHash() == 000030b4df1fca238412d3acb536f920fb3fe4fc2b1255c40e78d54ac791e1ac" section in my debug.log in x11 algorytm.


here is my main.cpp


Code:
// Only add the genesis block if not reindexing (in which case we reuse the one already on disk)
    if (!fReindex) {
        // Genesis Block:
        // CBlock(hash=12a765e31ffd4059bada, PoW=0000050c34a64b415b6b, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=97ddfbbae6, nTime=1317972665, nBits=1e0ffff0, nNonce=2084524493, vtx=1)
        //   CTransaction(hash=97ddfbbae6, ver=1, vin.size=1, vout.size=1, nLockTime=0)
        //     CTxIn(COutPoint(0000000000, -1), coinbase 04ffff001d0104404e592054696d65732030352f4f63742f32303131205374657665204a6f62732c204170706c65e280997320566973696f6e6172792c2044696573206174203536)
        //     CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
        //   vMerkleTree: 97ddfbbae6

        // Genesis block        
        const char* pszTimestamp = "Coindesk 27/May/2014 Facebook-Integrated Wallet Makes Sending Bitcoin as Easy as Messaging";
        CTransaction txNew;
        txNew.vin.resize(1);
        txNew.vout.resize(1);
        txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
        txNew.vout[0].nValue = 50 * COIN;
        txNew.vout[0].scriptPubKey = CScript() << ParseHex("040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG;
        CBlock block;
        block.vtx.push_back(txNew);
        block.hashPrevBlock = 0;
        block.hashMerkleRoot = block.BuildMerkleTree();
        block.nVersion = 1;
        block.nTime    = 1401181723;
        block.nBits    = 0x1e0ffff0;
        block.nNonce   = 0;

        if (fTestNet)
        {
            block.nTime    = 1401181723;
            block.nNonce   = 3861367235;
        }

        //// debug print
        uint256 hash = block.GetHash();
        printf("%s\n", hash.ToString().c_str());
        printf("%s\n", hashGenesisBlock.ToString().c_str());
        printf("%s\n", block.hashMerkleRoot.ToString().c_str());
        assert(block.hashMerkleRoot == uint256("0x25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e"));
        block.print();
        assert(hash == hashGenesisBlock);

        // Start new block file
        try {
            unsigned int nBlockSize = ::GetSerializeSize(block, SER_DISK, CLIENT_VERSION);
            CDiskBlockPos blockPos;
            CValidationState state;
            if (!FindBlockPos(state, blockPos, nBlockSize+8, 0, block.nTime))
                return error("LoadBlockIndex() : FindBlockPos failed");
            if (!block.WriteToDisk(blockPos))
                return error("LoadBlockIndex() : writing genesis block to disk failed");
            if (!block.AddToBlockIndex(state, blockPos))
                return error("LoadBlockIndex() : genesis block not accepted");
        } catch(std::runtime_error &e) {
            return error("LoadBlockIndex() : failed to initialize block database: %s", e.what());
        }
    }

    return true;
}



and my wallet closed with Failed to read block and my debug.log is

Code:
2014-05-27 09:31:24 


2014-05-27 09:31:24 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 09:31:24 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 09:31:24 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:31:24 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:31:24 Using at most 125 connections (2048 file descriptors available)
2014-05-27 09:31:24 Using 4 threads for script verification
2014-05-27 09:31:24 init message: Verifying wallet...
2014-05-27 09:31:24 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 09:31:24 Bound to [::]:47258
2014-05-27 09:31:24 Bound to 0.0.0.0:47258
2014-05-27 09:31:24 init message: Loading block index...
2014-05-27 09:31:24 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 09:31:24 Opened LevelDB successfully
2014-05-27 09:31:24 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 09:31:24 Opened LevelDB successfully
2014-05-27 09:31:24 LoadBlockIndexDB(): last block file = 0
2014-05-27 09:31:24 LoadBlockIndexDB(): transaction index disabled
2014-05-27 09:31:24 Initializing databases...
2014-05-27 09:31:24 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 09:31:24 00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
2014-05-27 09:31:24 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 09:46:05




2014-05-27 09:46:05 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 09:46:05 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 09:46:05 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:46:05 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 09:46:05 Using at most 125 connections (2048 file descriptors available)
2014-05-27 09:46:05 Using 4 threads for script verification
2014-05-27 09:46:05 init message: Verifying wallet...
2014-05-27 09:46:05 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 09:46:05 Bound to [::]:47258
2014-05-27 09:46:05 Bound to 0.0.0.0:47258
2014-05-27 09:46:05 init message: Loading block index...
2014-05-27 09:46:05 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 09:46:05 Opened LevelDB successfully
2014-05-27 09:46:05 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 09:46:05 Opened LevelDB successfully
2014-05-27 09:46:05 LoadBlockIndexDB(): last block file = 0
2014-05-27 09:46:05 LoadBlockIndexDB(): transaction index disabled
2014-05-27 09:46:05 Initializing databases...
2014-05-27 09:46:05 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 09:46:05 00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
2014-05-27 09:46:05 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 09:46:05 CBlock(hash=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, input=0100000000000000000000000000000000000000000000000000000000000000000000005e772513d42435d9871208955bb543a61e4e44f4e7ea0f99f8a3c237205a612526558453f0ff0f1e00000000, PoW=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, nTime=1401181478, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-05-27 09:46:05   CTransaction(hash=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c5a436f696e6465736b2032372f4d61792f323031342046616365626f6f6b2d496e74656772617465642057616c6c6574204d616b65732053656e64696e6720426974636f696e2061732045617379206173204d6573736167696e67)
    CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
  vMerkleTree: 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:04:49




2014-05-27 10:04:49 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 10:04:49 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 10:04:49 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:04:49 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:04:49 Using at most 125 connections (2048 file descriptors available)
2014-05-27 10:04:49 Using 4 threads for script verification
2014-05-27 10:04:49 init message: Verifying wallet...
2014-05-27 10:04:49 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 10:04:49 Bound to [::]:47258
2014-05-27 10:04:49 Bound to 0.0.0.0:47258
2014-05-27 10:04:49 init message: Loading block index...
2014-05-27 10:04:49 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 10:04:49 Opened LevelDB successfully
2014-05-27 10:04:49 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 10:04:49 Opened LevelDB successfully
2014-05-27 10:04:49 LoadBlockIndexDB(): last block file = 0
2014-05-27 10:04:49 LoadBlockIndexDB(): transaction index disabled
2014-05-27 10:04:49 Initializing databases...
2014-05-27 10:04:49 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 10:04:49 00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6
2014-05-27 10:04:49 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:04:49 CBlock(hash=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, input=0100000000000000000000000000000000000000000000000000000000000000000000005e772513d42435d9871208955bb543a61e4e44f4e7ea0f99f8a3c237205a612526558453f0ff0f1e00000000, PoW=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, nTime=1401181478, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-05-27 10:04:49   CTransaction(hash=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c5a436f696e6465736b2032372f4d61792f323031342046616365626f6f6b2d496e74656772617465642057616c6c6574204d616b65732053656e64696e6720426974636f696e2061732045617379206173204d6573736167696e67)
    CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
  vMerkleTree: 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:09:53


2014-05-27 10:09:53 DarkCoin version v0.9.4.8-gd1aadc8-beta (Sun, 25 May 2014 14:08:31 -0700)
2014-05-27 10:09:53 Using OpenSSL version OpenSSL 1.0.1g 7 Apr 2014
2014-05-27 10:09:53 Default data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:09:53 Using data directory C:\Users\hadixxx7\AppData\Roaming\DarkCoin
2014-05-27 10:09:53 Using at most 125 connections (2048 file descriptors available)
2014-05-27 10:09:53 Using 4 threads for script verification
2014-05-27 10:09:53 init message: Verifying wallet...
2014-05-27 10:09:53 dbenv.open LogDir=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\database ErrorFile=C:\Users\hadixxx7\AppData\Roaming\DarkCoin\db.log
2014-05-27 10:09:53 Bound to [::]:47258
2014-05-27 10:09:53 Bound to 0.0.0.0:47258
2014-05-27 10:09:53 init message: Loading block index...
2014-05-27 10:09:53 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\blocks\index
2014-05-27 10:09:53 Opened LevelDB successfully
2014-05-27 10:09:53 Opening LevelDB in C:\Users\hadixxx7\AppData\Roaming\DarkCoin\chainstate
2014-05-27 10:09:53 Opened LevelDB successfully
2014-05-27 10:09:53 LoadBlockIndexDB(): last block file = 0
2014-05-27 10:09:53 LoadBlockIndexDB(): transaction index disabled
2014-05-27 10:09:53 Initializing databases...
2014-05-27 10:09:53 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 10:09:53 39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7
2014-05-27 10:09:53 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:09:53 CBlock(hash=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, input=0100000000000000000000000000000000000000000000000000000000000000000000005e772513d42435d9871208955bb543a61e4e44f4e7ea0f99f8a3c237205a612526558453f0ff0f1e00000000, PoW=39a05234cb649f06386c80fa1469b84d4e8fc806d2e91f3348cdaa6ef72e26d7, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, nTime=1401181478, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-05-27 10:09:53   CTransaction(hash=25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c5a436f696e6465736b2032372f4d61792f323031342046616365626f6f6b2d496e74656772617465642057616c6c6574204d616b65732053656e64696e6720426974636f696e2061732045617379206173204d6573736167696e67)
    CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
  vMerkleTree: 25615a2037c2a3f8990feae7f4444e1ea643b55b95081287d93524d41325775e
2014-05-27 10:09:53 Pre-allocating up to position 0x1000000 in blk00000.dat
2014-05-27 10:09:53 ERROR: CheckProofOfWork() : hash doesn't match nBits
2014-05-27 10:09:53 ERROR: CBlock::ReadFromDisk() : errors in block header
2014-05-27 10:09:53 *** Failed to read block
2014-05-27 10:09:55 ERROR: LoadBlockIndex() : genesis block not accepted
2014-05-27 10:09:55 Shutdown : In progress...
2014-05-27 10:09:55 StopNode()
2014-05-27 10:09:55 Flushed 0 addresses to peers.dat  16ms
2014-05-27 10:09:55 Committing 0 changed transactions to coin database...
2014-05-27 10:09:55 Shutdown : done

any idea about working ? i recompile it over 10 times
member
Activity: 109
Merit: 35
May 26, 2014, 03:27:05 PM
#71
See what you guys mean with X11 errors. I've played around with Scrypt in the past and it's pretty much plain sailing but with x11 PoS it's been an absolute nightmare so far...

Even after getting what appears to be valid merkle root, nonce and genesis hash, it still fails when running on both testnet and main-net with this error:

Code:
Assertion `block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)' failed.

I've taken Yarkol's advice and it has been pretty helpful but if the debug.log clearly states these values and no other errors, then I'm a loss as to why the genesis blocks aren't being created.

Code:
Opened LevelDB successfully
CBlock(hash=000030b4df1fca238412d3acb536f920fb3fe4fc2b1255c40e78d54ac791e1ac, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000,
hashMerkleRoot=00f5217426974f0aae85ef32ed69f99543993ebb8e995c4089febecd87f5e1b5, nTime=1401124588, nBits=1f00ffff, nNonce=29392, vtx=1, vchBlockSig=)
  Coinbase(hash=00f5217426, nTime=1401124588, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 00012a4154686973206973206f6e652070656173616e7473207265766f6c742074686174204272757373656c732063616e6e6f74206a757374206272757368206173696465)
    CTxOut(empty)
  vMerkleTree: 00f5217426
block.GetHash() == 000030b4df1fca238412d3acb536f920fb3fe4fc2b1255c40e78d54ac791e1ac
block.hashMerkleRoot == 00f5217426974f0aae85ef32ed69f99543993ebb8e995c4089febecd87f5e1b5
block.nTime = 1401124588
block.nNonce = 29392
CBlock(hash=000030b4df1fca238412d3acb536f920fb3fe4fc2b1255c40e78d54ac791e1ac, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000,
hashMerkleRoot=00f5217426974f0aae85ef32ed69f99543993ebb8e995c4089febecd87f5e1b5, nTime=1401124588, nBits=1f00ffff, nNonce=29392, vtx=1, vchBlockSig=)
  Coinbase(hash=00f5217426, nTime=1401124588, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 00012a4154686973206973206f6e652070656173616e7473207265766f6c742074686174204272757373656c732063616e6e6f74206a757374206272757368206173696465)
    CTxOut(empty)
  vMerkleTree: 00f5217426

The testnet (the output above) and main-net genesis hashes have been added into main.h but it still fails to run?

member
Activity: 116
Merit: 10
May 26, 2014, 05:01:46 AM
#70

Hey...
My x11 source code is
Code:
        //// debug print
        uint256 hash = block.GetHash();
        printf("%s\n", hash.ToString().c_str());
        printf("%s\n", hashGenesisBlock.ToString().c_str());
        printf("%s\n", block.hashMerkleRoot.ToString().c_str());
        assert(block.hashMerkleRoot == uint256("0xe0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7"));
        block.print();
        assert(hash == hashGenesisBlock);

i cant get hashGenesisBlock.
after compiling with true time and hash,just recieve this error " failed to read block "
what i do ?
At first you should check the debug log for more specific error information.
full member
Activity: 210
Merit: 100
May 26, 2014, 04:36:59 AM
#69

Hey...
My x11 source code is
Code:
        //// debug print
        uint256 hash = block.GetHash();
        printf("%s\n", hash.ToString().c_str());
        printf("%s\n", hashGenesisBlock.ToString().c_str());
        printf("%s\n", block.hashMerkleRoot.ToString().c_str());
        assert(block.hashMerkleRoot == uint256("0xe0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7"));
        block.print();
        assert(hash == hashGenesisBlock);

i cant get hashGenesisBlock.
after compiling with true time and hash,just recieve this error " failed to read block "
what i do ?
newbie
Activity: 15
Merit: 0
April 18, 2014, 01:06:04 PM
#68
Pages:
Jump to: