firoorg / firo

The privacy-focused cryptocurrency
https://firo.org
MIT License
720 stars 355 forks source link

all masternodes stuck at block 513614 #1200

Closed skironDotNet closed 2 years ago

skironDotNet commented 2 years ago
2022-08-04 19:25:56 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=e2fe89c415e188293669b5402061b96a88833b27422547b8dc3550a4ea8bb04a
2022-08-04 19:25:56 CheckLelantusJoinSplitTransaction: tx version=47, tx metadata hash=2242890d68c9516af4cde046dfb6c34152159f82ff52fee80bdce121bb1686ef
2022-08-04 19:25:56 CheckLelantusJMintTransaction txHash = 454bd74b2fd95f03541a9fa6c115378b84876cc6df2b5a40d6d5989672f49b49
2022-08-04 19:25:56 Lelantus verification failed due to Qk schnorr proof verification failed.CheckLelantusJoinSplitTransaction: verification failed at block 513615
2022-08-04 19:25:56 ERROR: stateful zerocoin check failed
2022-08-04 19:25:56 InvalidChainFound: invalid block=acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10  height=513615  log2_work=63.815951  date=2022-08-03 14:31:36
2022-08-04 19:25:56 InvalidChainFound:  current best=7cd7714dd3868177a4a802dba57b9c99dd754027a8ae5366878a610c4b19a563  height=513614  log2_work=63.815951  date=2022-08-03 14:30:11
2022-08-04 19:25:56 ERROR: ConnectTip(): ConnectBlock acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10 failed
2022-08-04 19:25:56 InvalidChainFound: invalid block=acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10  height=513615  log2_work=63.815951  date=2022-08-03 14:31:36
2022-08-04 19:25:56 InvalidChainFound:  current best=7cd7714dd3868177a4a802dba57b9c99dd754027a8ae5366878a610c4b19a563  height=513614  log2_work=63.815951  date=2022-08-03 14:30:11
2022-08-04 19:26:01 CChainLocksHandler::EnforceBestChainLock -- Activated best chain tip: 400a9917ce53839fe67e02a3582a11c3195ad050829adec87d6fb2c8bbd62c74
2022-08-04 19:26:01 ActivateBestChainStep()
2022-08-04 19:26:01 ConnectTip() nHeight=513615
2022-08-04 19:26:01 ConnectBlock nHeight=513615, hash=acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10
2022-08-04 19:26:01 CheckBlock() nHeight=513615, blockHash= acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10, isVerifyDB = false
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=1ae1fae071e884eff60e80210388da924062b22bde20c8789021b62681182c28
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=a1b39a173cef90f6d4840594c26d71dd235d3bb530dc0fe4a5cb72f799097d59
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=a322e2d7fc16a0322a9b9eccac0848f2a6032dd6b7e94ab84ec563283285950a
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=f924e9db17b600a3bc158b89e21ec73f934e2d9b4f1fc3a7b20b2272145b43dc
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=aad5b9b159ef9cf434b7af55ad6f8b5aad9112905c455c440198e4c6d1f849df
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=e0ea95ca8f2fc481983e272e64f1a16aa8b021246a55f83dfafd855f223885c5
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=e2fe89c415e188293669b5402061b96a88833b27422547b8dc3550a4ea8bb04a
2022-08-04 19:26:01 CheckLelantusJoinSplitTransaction: tx version=47, tx metadata hash=2242890d68c9516af4cde046dfb6c34152159f82ff52fee80bdce121bb1686ef
2022-08-04 19:26:01 CheckTransaction nHeight=513615, isVerifyDB=false, isCheckWallet=false, txHash=e2fe89c415e188293669b5402061b96a88833b27422547b8dc3550a4ea8bb04a
2022-08-04 19:26:01 CheckLelantusJoinSplitTransaction: tx version=47, tx metadata hash=2242890d68c9516af4cde046dfb6c34152159f82ff52fee80bdce121bb1686ef
2022-08-04 19:26:01 CheckLelantusJMintTransaction txHash = 454bd74b2fd95f03541a9fa6c115378b84876cc6df2b5a40d6d5989672f49b49
2022-08-04 19:26:01 Lelantus verification failed due to Qk schnorr proof verification failed.CheckLelantusJoinSplitTransaction: verification failed at block 513615
2022-08-04 19:26:01 ERROR: stateful zerocoin check failed
2022-08-04 19:26:01 InvalidChainFound: invalid block=acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10  height=513615  log2_work=63.815951  date=2022-08-03 14:31:36
2022-08-04 19:26:01 InvalidChainFound:  current best=7cd7714dd3868177a4a802dba57b9c99dd754027a8ae5366878a610c4b19a563  height=513614  log2_work=63.815951  date=2022-08-03 14:30:11
2022-08-04 19:26:01 ERROR: ConnectTip(): ConnectBlock acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10 failed
2022-08-04 19:26:01 InvalidChainFound: invalid block=acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10  height=513615  log2_work=63.815951  date=2022-08-03 14:31:36
2022-08-04 19:26:01 InvalidChainFound:  current best=7cd7714dd3868177a4a802dba57b9c99dd754027a8ae5366878a610c4b19a563  height=513614  log2_work=63.815951  date=2022-08-03 14:30:11
skironDotNet commented 2 years ago

I'm starting to regret I got involved into this project especially for $4.5 ... here is help section

-assumevalid=<hex> If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: 50aff78270725ec253a722ec18069deb233f2e57eb7d64479f027141619cdda4, testnet: 3825896ac39b8b27220e7bfaed81c5f979ca11dc874e564c5e70756ad06077b0) so I ran firod -assumevalid=acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10

and it's still invalid. Reindexed chain, still nothing. how come there is 22 peers in the network? how is this chain even spinning? thanks to PoW miners?

image

gernoox commented 2 years ago

yeah yeah Mr. Dumbfvck _$4.5 @skironDotNet
image have fun to ask some kindly help this way to sync your late updated node with the new Lelantus anonymity set.

justanwar commented 2 years ago

Check if you are running the latest version which is at this time is v0.14.11.1. If you are on 0.14.11.1 and are stuck at 513614, please reindex and delete banlist.dat to allow for connections from other v0.14.11.1 nodes.

justanwar commented 2 years ago

how come there is 22 peers in the network? how is this chain even spinning? thanks to PoW miners?

image

As written on the page, this block explorer only shows the nodes it saw for the past 24 hours, not how many nodes there are on the network. Your local wallet by default only connects and shows 8 nodes, doesn't mean there's only 8 nodes on the network.

skironDotNet commented 2 years ago

@gernoox as for calling me Mr. Dumbfvck, if last chain number is 513614 (even if magically it has more blocks on top) and that block in old client is valid acb9aa643db075676992df8328f863888d34f046a8c74d74ca234148ad9d7d10 and in public explorer is same, I see no reason why client software would not be smart to keep continue, and even if magically it has more blocks on top of it, Barkley DB is not write only, but let say it is, what the problem, is start reading blocks from 0 (let say -reindex) go to last valid block, and write new valid blocks on top of it. And this is not about FIRO, I just can't understand how it was never solved in any project starting with BTC, although I think some projects this days can invalidate some last X number of block specified by the user, and start downloading from prev block.

And lastly to avoid above, why not to take action in software `if new client visible in the network, shutdown" with log saying why. This could bring the whole network down, but there must be a way to notify people without them being on Discord all the time. ZEC can shutdown early. Generally would be nice to have a protection against downloading wrong chain, or ability to revert later.

Feel free to close this ticket

skironDotNet commented 2 years ago

I was trying to be smart about it, and I deleted 2 top most blk and rev files, and index folder and chainstate, and did reindex, saving 60GB of download, and it did work, just took the client some time to pick up