Title: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 12:55:57 AM Hello everyone,
Right now the mining process of CMC can't go on, it has been stucked in mining block 7887(7886 has been mined), and the CMC network has mining this block for more than 20 hours, but still can't get this block, following is the debug message, can someone help me to find out why? If possible, please help me to check the soucecode. Code: 7884 Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 12:56:37 AM Need help from bitcoin community, it's really strange, I never met this before.
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: XertroV on July 04, 2013, 03:31:43 AM Looks like your target reduced massively at block 7887, from 00000008359d00... to 000000004c847400...; ie 7 zeros to 8 zeros at the start.
Was a retarget intended for block 7887? And can you post the raw block for 7886; there might be something hiding there. Edit: nBits for the block you're trying to mine are nBits=1ccc8474 nBits for the previous blocks were nBits=1d08359d Sure these are correct? This error message indicates they are not: ERROR: CheckProofOfWork() : nBits below minimum work 1ccc8474 < 1d08359d Edit again: Ignore most of the above, didn't realise CMC was based on PPC. There are retargets every block, so changing nBits is expected. The reason these are so drastically different is because of the algorithm used to calculate them and the leniency on block timestamps. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: JDDev on July 04, 2013, 04:06:54 AM I mined the block twice, but both were rejected.
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: XertroV on July 04, 2013, 04:20:47 AM I mined the block twice, but both were rejected. That's not the issue. The issue is that the block you're mining has the wrong nBits in the block header. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: arlington on July 04, 2013, 04:56:57 AM time stamp for block 7885 is weird, it is 2 hrs after the block 7886
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: XertroV on July 04, 2013, 05:18:25 AM time stamp for block 7885 is weird, it is 2 hrs after the block 7886 Hmm. I've got an alternate chain now: 7885: 000000082148a6f66e17bab8d41af11171bc6f4d9416f983ddad0212a41775c0 7886: 000000061f7cee86da6458d5fbf02694db41c58e4d38aaea58606e3faefa3522 7887: 000000942feafab66ec53301532853634ccedecdc8b5fbc4fc5bebba75ba60a1 7888: 00000059bf77cf922474c474cceea4c006a58900625ac13781ede01d3aa77b34 I've mined the last 3. Edit: fixed with this: Quote Try the following, I can confirm you don't download block 7887 (height 7886). Patch main.cpp so the definition of CBlock::CheckBlock now reads: Code: bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot) const Only one miner will need to implement this, to blacklist block 0x000000082f31f8c70dd7f9a857f04fe14f7df2a57bb9bc1f54d336c70dea6205, then chains should reorganize once a longer chain is produced. No idea if this will help, but it might get you around the issue. From what I can tell you shouldn't have a difficulty adjustment at this point in time. Didn't get to post it before it was fixed. Update: For posterity here is some info on the bad fork: Code: xertrov@x-work:~/src/cosmoscoin/src$ ./cosmoscoind getblock 000000082148a6f66e17bab8d41af11171bc6f4d9416f983ddad0212a41775c0 Does anyone want to buy 14 Cosmoscoins? Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: JDDev on July 04, 2013, 07:32:14 AM Things seem to be working okay at this point. Thanks so much. If you post your CMC address, I'd love to send you some CMC.
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: flyingcat on July 04, 2013, 07:36:54 AM Great, can you share how did you patch the chain? How the bad block could be attached to the chain?
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: JDDev on July 04, 2013, 07:38:56 AM I believe he just updated the code as outlined above and started mining using a version based on that code, no?
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: Breen2543 on July 04, 2013, 07:40:05 AM Because Cosmos coin is another shit pump and dump waste of time.
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: JDDev on July 04, 2013, 07:44:11 AM CMC implements quite a few innovations, first PoS coin with transaction comments. Also it has no premine
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 07:48:34 AM Looks like your target reduced massively at block 7887, from 00000008359d00... to 000000004c847400...; ie 7 zeros to 8 zeros at the start. Was a retarget intended for block 7887? And can you post the raw block for 7886; there might be something hiding there. Edit: nBits for the block you're trying to mine are nBits=1ccc8474 nBits for the previous blocks were nBits=1d08359d Sure these are correct? This error message indicates they are not: ERROR: CheckProofOfWork() : nBits below minimum work 1ccc8474 < 1d08359d Edit again: Ignore most of the above, didn't realise CMC was based on PPC. There are retargets every block, so changing nBits is expected. The reason these are so drastically different is because of the algorithm used to calculate them and the leniency on block timestamps. Great thanks to you, I want to buy the bad blocks from you and I really appreciate your great help. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 07:53:57 AM Things seem to be working okay at this point. Thanks so much. If you post your CMC address, I'd love to send you some CMC. Great thanks to JDDev, I can send XertroV some CMC too, I mined some CMC, XertroV, please give me your CMC address and I want to buy the bad blocks from you. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 07:55:20 AM CMC implements quite a few innovations, first PoS coin with transaction comments. Also it has no premine Correct answer. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: Breen2543 on July 04, 2013, 07:57:59 AM CMC implements quite a few innovations, first PoS coin with transaction comments. Also it has no premine lol, thats all? Really..... wait, yup, just as I thought, this post is full of noobs... Have fun with your novelty cosmo coin kids. Youll learn someday. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: JDDev on July 04, 2013, 08:04:21 AM Ok, as you have PXC in your sig, what innovation did PXC add? Nothing, and on top of that had a huge premine.
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: XertroV on July 04, 2013, 08:21:23 AM Great thanks to you, I want to buy the bad blocks from you and I really appreciate your great help. I didn't mine any 'bad' blocks; there was only one which was on the end of the chain. You're welcome :), it wasn't a huge deal though, and I didn't actually figure out the problem, just work around it. If you'd like to send me some CMC you can here: C72cU8HH6ryHSScDqMymtYYxu5kEWjN9bx Great, can you share how did you patch the chain? How the bad block could be attached to the chain? I believe he just updated the code as outlined above and started mining using a version based on that code, no? This is correct. The patch itself was: Code: if (GetHash() == uint256("0x000000082f31f8c70dd7f9a857f04fe14f7df2a57bb9bc1f54d336c70dea6205")) Basically it would just fail if you tried to add block 0x000000082f31f... to the main chain, allowing me to mine from the previous block and create an alternate chain which took precedence when it became longer. Then the rest of the network took over and there were like 200 blocks in 2 minutes (the difficulty was low because it recalcs for every block). JDDev and cosmoscoin, not sure if either or both of you are developing this, but your block target and retarget time are low enough that you might get problems. I'm not certain that is what allowed the 7886 block; the PoS aspect might have had quite a bit to do with it. In any case, there's evidently a bug that needs to be worked out. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 08:38:50 AM CMC implements quite a few innovations, first PoS coin with transaction comments. Also it has no premine lol, thats all? Really..... wait, yup, just as I thought, this post is full of noobs... Have fun with your novelty cosmo coin kids. Youll learn someday. I respect your opinion, but we are working on CMC and try to make it a good coin for the community, although CMC doesn't have many innovations, but it's the most functional coin in the community right now. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 08:40:33 AM Great thanks to you, I want to buy the bad blocks from you and I really appreciate your great help. I didn't mine any 'bad' blocks; there was only one which was on the end of the chain. You're welcome :), it wasn't a huge deal though, and I didn't actually figure out the problem, just work around it. If you'd like to send me some CMC you can here: C72cU8HH6ryHSScDqMymtYYxu5kEWjN9bx Great, can you share how did you patch the chain? How the bad block could be attached to the chain? I believe he just updated the code as outlined above and started mining using a version based on that code, no? This is correct. The patch itself was: Code: if (GetHash() == uint256("0x000000082f31f8c70dd7f9a857f04fe14f7df2a57bb9bc1f54d336c70dea6205")) Basically it would just fail if you tried to add block 0x000000082f31f... to the main chain, allowing me to mine from the previous block and create an alternate chain which took precedence when it became longer. Then the rest of the network took over and there were like 200 blocks in 2 minutes (the difficulty was low because it recalcs for every block). JDDev and cosmoscoin, not sure if either or both of you are developing this, but your block target and retarget time are low enough that you might get problems. I'm not certain that is what allowed the 7886 block; the PoS aspect might have had quite a bit to do with it. In any case, there's evidently a bug that needs to be worked out. Because CMC doesn't have premine, and I don't have many CMC, I can send you 100 CMC, thanks again. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 08:44:42 AM Great thanks to you, I want to buy the bad blocks from you and I really appreciate your great help. I didn't mine any 'bad' blocks; there was only one which was on the end of the chain. You're welcome :), it wasn't a huge deal though, and I didn't actually figure out the problem, just work around it. If you'd like to send me some CMC you can here: C72cU8HH6ryHSScDqMymtYYxu5kEWjN9bx Great, can you share how did you patch the chain? How the bad block could be attached to the chain? I believe he just updated the code as outlined above and started mining using a version based on that code, no? This is correct. The patch itself was: Code: if (GetHash() == uint256("0x000000082f31f8c70dd7f9a857f04fe14f7df2a57bb9bc1f54d336c70dea6205")) Basically it would just fail if you tried to add block 0x000000082f31f... to the main chain, allowing me to mine from the previous block and create an alternate chain which took precedence when it became longer. Then the rest of the network took over and there were like 200 blocks in 2 minutes (the difficulty was low because it recalcs for every block). JDDev and cosmoscoin, not sure if either or both of you are developing this, but your block target and retarget time are low enough that you might get problems. I'm not certain that is what allowed the 7886 block; the PoS aspect might have had quite a bit to do with it. In any case, there's evidently a bug that needs to be worked out. The scheme of CMC is retarget every block, as you see the block target and retarget time is too low, I don't know how to figure this out. It seems that NVC, Bitgem and bottlecaps don't have this problem, so I really don't know why. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: JDDev on July 04, 2013, 08:59:40 AM I'm not a dev actually but I sent 50 as a thank you. I just like supporting coins that try new things and aren't premined.
Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: cosmoscoin on July 04, 2013, 09:24:21 AM I'm not a dev actually but I sent 50 as a thank you. I just like supporting coins that try new things and aren't premined. I send 100, I don't have many CMC, I want to buy some CMC from this community, who want to sell CMC please contact with me. Title: Re: Please help to find out why can't mining block 7887 of CosmosCoin(CMC) Post by: mullick on July 04, 2013, 10:09:08 AM it's the most functional coin in the community right now. |