Title: Last part of building coin.
Post by: RoooooR on January 31, 2014, 12:43:52 AM
I'm making a testcoin based on ronpaulcoin. I got and put nTime, changed the hashMerkleRoot and hashGenesisBlock to "0x" I compiled the coin without error Started it and got : LoadBlockIndexDB(): transaction index disabled 2014-01-30 20:46:06 Initializing databases... 2014-01-30 20:46:06 Searching for genesis block... 2014-01-30 20:46:06 nonce 00000000: hash = 4ad0368faba18c528c25387ec327777ab46cb03132527c67a9c5d0269f0f8443 (target = 00000ffff0000000000000000000000000000000000000000000000000000000) 2014-01-30 20:46:14 nonce 00001000: hash = 0ab2b132c2796162a41f4e72ae52fc7bf8b9e916c50e52a903cac63e3af49541 (target = 00000ffff0000000000000000000000000000000000000000000000000000000) ..... .... ..... 2014-01-30 22:56:34 nonce 00408000: hash = 2f170d0a67cd74eb0755774f3021d9f821c39b2875d49d840736480dd5b503da (target = 00000ffff0000000000000000000000000000000000000000000000000000000) 2014-01-30 22:56:40 ca9300f174b2667e352ba6680da1a7ea3d703143eeb73195a56a19572c9083cf 2014-01-30 22:56:40 0000000000000000000000000000000000000000000000000000000000000000 2014-01-30 22:56:40 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154 2014-01-30 23:31:04 I got the valid merkel root hash and put it in main.cpp : 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154 assert(block.hashMerkleRoot == uint256("0x69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154"));
So far there is problem ? I think no. I compiled again and run again, got this : 2014-01-30 23:31:04 LoadBlockIndexDB(): transaction index disabled 2014-01-30 23:31:04 Initializing databases... 2014-01-30 23:31:04 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f 2014-01-30 23:31:04 0000000000000000000000000000000000000000000000000000000000000000 2014-01-30 23:31:04 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154 2014-01-30 23:31:04 CBlock(hash=255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f, input=01000000000000000000000000000000000000000000000000000000000000000000000054d170c905b906bd520450ecd048db7b740be6de022257610e76fb23c4e7a0698fb7ea52f0ff0f1e00000000, PoW=4ad0368faba18c528c25387ec327777ab46cb03132527c67a9c5d0269f0f8443, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, nTime=1391114127, nBits=1e0ffff0, nNonce=0, vtx=1) 2014-01-30 23:31:04 CTransaction(hash=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, ver=1, vin.size=1, vout.size=1, nLockTime=0) CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c55504849434f494e2054657374204275696c642c204974277320636f6d696e672021202620504849202620212032392f4a616e2f32303133204f62616d616361726520436f756c642048617665204d656c74646f776e) CTxOut(nValue=16.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4) vMerkleTree: 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154 2014-01-30 23:35:44 I think new genesis block hash is : 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7fPut this to uint256 hashGenesisBlock("0x255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f"); Compile & Run again and : 2014-01-30 23:35:44 Initializing databases... 2014-01-30 23:35:44 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f 2014-01-30 23:35:44 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f 2014-01-30 23:35:44 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154 2014-01-30 23:35:44 CBlock(hash=255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f, input=01000000000000000000000000000000000000000000000000000000000000000000000054d170c905b906bd520450ecd048db7b740be6de022257610e76fb23c4e7a0698fb7ea52f0ff0f1e00000000, PoW=4ad0368faba18c528c25387ec327777ab46cb03132527c67a9c5d0269f0f8443, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, nTime=1391114127, nBits=1e0ffff0, nNonce=0, vtx=1) 2014-01-30 23:35:44 CTransaction(hash=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, ver=1, vin.size=1, vout.size=1, nLockTime=0) CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c55504849434f494e2054657374204275696c642c204974277320636f6d696e672021202620504849202620212032392f4a616e2f32303133204f62616d616361726520436f756c642048617665204d656c74646f776e) CTxOut(nValue=16.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4) vMerkleTree: 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154 2014-01-30 23:35:44 Pre-allocating up to position 0x1000000 in blk00000.dat 2014-01-30 23:35:44 ERROR: CheckProofOfWork() : hash doesn't match nBits 2014-01-30 23:35:44 ERROR: CBlock::ReadFromDisk() : errors in block header 2014-01-30 23:35:44 *** Failed to read block 2014-01-30 23:35:44 Error: Failed to read block 2014-01-30 23:35:44 ERROR: LoadBlockIndex() : genesis block not accepted 2014-01-30 23:35:44 : Error initializing block database. I can't see what nNonce value that I have to write and why I'm getting ERROR: CheckProofOfWork() : hash doesn't match nBits error ? I run again and I got : nFileVersion = 80602 2014-01-30 23:45:46 Performing wallet upgrade to 60000 2014-01-30 23:45:46 keypool added key 1, size=1 2014-01-30 23:45:46 keypool added key 2, size=2 ....... 2014-01-30 23:45:47 keypool added key 101, size=101 2014-01-30 23:45:47 keypool reserve 1 2014-01-30 23:45:47 keypool keep 1 2014-01-30 23:45:47 wallet 674ms 2014-01-30 23:45:47 ERROR: CheckProofOfWork() : hash doesn't match nBits 2014-01-30 23:45:47 ERROR: CBlock::ReadFromDisk() : errors in block header 2014-01-30 23:45:47 *** Failed to read block 2014-01-30 23:45:47 Error: Failed to read block 2014-01-30 23:45:47 init message: Loading addresses... 2014-01-30 23:45:47 Loaded 0 addresses from peers.dat 0ms 2014-01-30 23:45:47 Error: Failed to connect best block Please help to last part of building this test coin. I'm also offering .1 Btc. Thanks.
Title: Re: Last part of building coin
Post by: RoooooR on January 31, 2014, 03:06:06 PM
Help please.
Title: Re: Last part of building coin (.1 Btc Bounty)
Post by: travel-trousers on January 31, 2014, 10:24:49 PM
Where is your source? github?
Title: Re: Last part of building coin (.1 Btc Bounty)
Post by: RoooooR on January 31, 2014, 10:40:10 PM
Where is your source? github?
I did it. Thanks. Source is on my PC. Now there is a problem again. I'm mining now test coins, 6 block accepted but nothing in wallet. Why can be this ? { "blocks" : 6, "currentblocksize" : 1000, "currentblocktx" : 0, "difficulty" : 0.00024414, "errors" : "", "generate" : true, "genproclimit" : 8, "hashespersec" : 5412, "networkhashps" : 446, "pooledtx" : 0, "testnet" : false }
Title: Re: Last part of building coin.
Post by: Hazard on January 31, 2014, 10:44:32 PM
A rare insight into how a shitcoin is born... Truly fascinating.
Title: Re: Last part of building coin.
Post by: spitefulgod on January 31, 2014, 10:45:46 PM
A rare insight into how a shitcoin is born... Truly fascinating.
Lolz
Title: Re: Last part of building coin.
Post by: RoooooR on January 31, 2014, 10:50:44 PM
A rare insight into how a shitcoin is born... Truly fascinating.
LoL (https://bitcointalk.org/index.php?topic=204697.0). So watch in silence or leave the seats.
Title: Re: Last part of building coin (.1 Btc Bounty)
Post by: RoooooR on February 01, 2014, 08:02:12 PM
Where is your source? github?
I did it. Thanks. Source is on my PC. Now there is a problem again. I'm mining now test coins, 6 block accepted but nothing in wallet. Why can be this ? { "blocks" : 6, "currentblocksize" : 1000, "currentblocktx" : 0, "difficulty" : 0.00024414, "errors" : "", "generate" : true, "genproclimit" : 8, "hashespersec" : 5412, "networkhashps" : 446, "pooledtx" : 0, "testnet" : false }
Still same problem. Why this test coin is trying to connect other IPs ?
Title: Re: Last part of building coin.
Post by: Hazard on February 02, 2014, 12:22:21 AM
Because you don't know what the fuck you're doing and therefore have no business launching a coin. Quite simple, really.
Title: Re: Last part of building coin.
Post by: RoooooR on February 02, 2014, 12:34:27 AM
Because you don't know what the fuck you're doing and therefore have no business launching a coin. Quite simple, really.
Ok..
Title: Re: Last part of building coin.
Post by: RoooooR on February 03, 2014, 12:40:44 AM
Why the daemon is trying to connect other IPs? (I'm building it in VPS) I created a new merkle root, genesis block and pchMessage, but daemon can't mine it. 2014-02-03 00:35:44 Added 3 addresses from 127.0.0.1: 0 tried, 3 new 2014-02-03 00:34:43 testcoin version v0.8.6.2-g88e2a2e-beta (2014-02-02 22:27:55 +0200) 2014-02-03 00:34:43 Using OpenSSL version OpenSSL 1.0.1 14 Mar 2012 2014-02-03 00:34:43 Default data directory /root/.testcoin 2014-02-03 00:34:43 Using data directory /root/.testcoin 2014-02-03 00:34:43 Using at most 125 connections (1024 file descriptors available) 2014-02-03 00:34:43 Using 8 threads for script verification 2014-02-03 00:34:43 init message: Verifying wallet... 2014-02-03 00:34:43 dbenv.open LogDir=/root/.testcoin/database ErrorFile=/root/.testcoin/db.log 2014-02-03 00:34:43 Bound to [::]:7451 2014-02-03 00:34:43 Bound to 0.0.0.0:7451 2014-02-03 00:34:43 init message: Loading block index... 2014-02-03 00:34:43 Opening LevelDB in /root/.testcoin/blocks/index 2014-02-03 00:34:43 Opened LevelDB successfully 2014-02-03 00:34:43 Opening LevelDB in /root/.testcoin/chainstate 2014-02-03 00:34:43 Opened LevelDB successfully 2014-02-03 00:34:43 LoadBlockIndexDB(): last block file = 0 2014-02-03 00:34:43 LoadBlockIndexDB(): last block file info: CBlockFileInfo(blocks=1, size=235, heights=0...0, time=2014-02-03...2014-02-03) 2014-02-03 00:34:43 LoadBlockIndexDB(): synchronized checkpoint 1f573d1f54ac2fb899f1b9948d6b0ccad65661789106365d21cd8025d12df096 2014-02-03 00:34:43 LoadBlockIndexDB(): transaction index disabled 2014-02-03 00:34:43 LoadBlockIndexDB(): hashBestChain=1f573d1f54ac2fb899f1b9948d6b0ccad65661789106365d21cd8025d12df096 height=0 date=2014-02-03 00:17:44 2014-02-03 00:34:43 init message: Verifying blocks... 2014-02-03 00:34:43 block index 22ms 2014-02-03 00:34:43 init message: Loading wallet... 2014-02-03 00:34:43 nFileVersion = 80602 2014-02-03 00:34:43 wallet 362ms 2014-02-03 00:34:43 init message: Loading addresses... 2014-02-03 00:34:43 Loaded 0 addresses from peers.dat 1ms 2014-02-03 00:34:43 mapBlockIndex.size() = 1 2014-02-03 00:34:43 nBestHeight = 0 2014-02-03 00:34:43 setKeyPool.size() = 100 2014-02-03 00:34:43 mapWallet.size() = 0 2014-02-03 00:34:43 mapAddressBook.size() = 1 2014-02-03 00:34:43 AddLocal(198.58.124.77:7451,1) 2014-02-03 00:34:43 IPv4 eth0: 198.58.124.77 2014-02-03 00:34:43 AddLocal([2600:3c00::f03c:91ff:fe6e:ef95]:7451,1) 2014-02-03 00:34:43 IPv6 eth0: 2600:3c00::f03c:91ff:fe6e:ef95 2014-02-03 00:34:43 dnsseed thread start 2014-02-03 00:34:43 Loading addresses from DNS seeds (could take a while) 2014-02-03 00:34:43 0 addresses found from DNS seeds 2014-02-03 00:34:43 dnsseed thread exit 2014-02-03 00:34:43 addcon thread start 2014-02-03 00:34:43 net thread start 2014-02-03 00:34:43 dumpaddr thread start 2014-02-03 00:34:43 opencon thread start 2014-02-03 00:34:43 msghand thread start 2014-02-03 00:34:43 init message: Done loading 2014-02-03 00:34:44 GetMyExternalIP() received [198.58.124.77] 198.58.124.77:0 2014-02-03 00:34:44 GetMyExternalIP() returned 198.58.124.77 2014-02-03 00:34:44 AddLocal(198.58.124.77:7451,4) 2014-02-03 00:35:44 Added 3 addresses from 127.0.0.1: 0 tried, 3 new 2014-02-03 00:35:44 trying connection 174.143.121.91:7451 lastseen=200.5hrs 2014-02-03 00:35:49 connection timeout 2014-02-03 00:35:49 trying connection 15.51.187.37:7451 lastseen=305.1hrs 2014-02-03 00:35:54 connection timeout 2014-02-03 00:35:55 trying connection 174.143.121.91:7451 lastseen=200.5hrs 2014-02-03 00:36:00 connection timeout 2014-02-03 00:36:00 trying connection 15.51.187.37:7451 lastseen=305.1hrs 2014-02-03 00:36:05 connection timeout 2014-02-03 00:36:06 trying connection 174.143.121.91:7451 lastseen=200.5hrs 2014-02-03 00:36:11 connection timeout 2014-02-03 00:36:12 trying connection 15.51.187.37:7451 lastseen=305.1hrs 2014-02-03 00:36:17 connection timeout 2014-02-03 00:36:17 trying connection 174.143.121.91:7451 lastseen=200.5hrs 2014-02-03 00:36:22 connection timeout 2014-02-03 00:36:23 trying connection 15.51.187.37:7451 lastseen=305.1hrs 2014-02-03 00:36:28 connection timeout 2014-02-03 00:36:28 trying connection 174.143.121.91:7451 lastseen=200.5hrs 2014-02-03 00:36:33 connection timeout 2014-02-03 00:36:34 trying connection 15.51.187.37:7451 lastseen=305.1hrs 2014-02-03 00:36:39 connection timeout 2014-02-03 00:36:39 trying connection 15.51.187.37:7451 lastseen=305.1hrs 2014-02-03 00:36:44 connection timeout 2014-02-03 00:36:45 trying connection 248.153.17.85:7451 lastseen=244.3hrs 2014-02-03 00:36:50 connection timeout 2014-02-03 00:36:50 trying connection 248.153.17.85:7451 lastseen=244.3hrs 2014-02-03 00:36:55 connection timeout 2014-02-03 00:36:56 trying connection 15.51.187.37:7451 lastseen=305.2hrs
Title: Re: Last part of building coin.
Post by: RoooooR on February 03, 2014, 02:01:40 PM
Bump
Or Pm if you are an altcoin developer. Price is 1 btc.
Title: Re: Last part of building coin.
Post by: MijntjeGoud on March 06, 2014, 09:43:59 AM
Bump
Or Pm if you are an altcoin developer. Price is 1 btc.
Did you set an always online ip address in your src/net.cpp? Now it is trying to connect to ip addresses but they are not online and not connected to your server. You have to set an always online ip that is connected to your coin server. (that always online ip should have listen=1 in the config) Than you can connect to that ip address. like: ./xxxxcoin (for linux xxxxcoind) -testnet -connect= instert always online ip)
|