问题描述
我找不到解决方案,我有自己的基于 PoW 的区块链,我已经编译了 Linux 守护进程并在 VM 上第一次运行它,我还有一个 Windows Server 作为完整的节点,我当前的“blockchaincount”是来自服务器的 422,但在 VM 上它总是输出 25 并且不想同步,这发生在我之前,我有一台运行 qt-client 的笔记本电脑,当我重新索引它会卡在第 25 块,所以我所做的解决方案是从我的另一台计算机复制整个区块链和配置文件并将其粘贴到笔记本电脑中,这起到了作用,但正如你所看到的,这就像“热” -glue' 而不是最好的解决方案,我不知道如何解决它,我发现了这个我根本无法理解的链接:https://github.com/qtumproject/qtum/issues/15
你能帮我处理一下吗? 我很感激伙计们。
2021-01-18T23:32:53Z init message: Loading wallet...
2021-01-18T23:32:53Z txindex thread start
2021-01-18T23:32:53Z txindex is enabled
2021-01-18T23:32:53Z txindex thread exit
2021-01-18T23:32:53Z [default wallet] nFiLeversion = 1000000
2021-01-18T23:32:53Z [default wallet] Keys: 2001 plaintext,0 encrypted,2001 w/ Metadata,2001 total. UnkNown wallet records: 1
2021-01-18T23:32:53Z [default wallet] Wallet completed loading in 93ms
2021-01-18T23:32:53Z [default wallet] setKeyPool.size() = 2000
2021-01-18T23:32:53Z [default wallet] mapWallet.size() = 0
2021-01-18T23:32:53Z [default wallet] mapAddressBook.size() = 0
2021-01-18T23:32:53Z Reindexing block file blk00000.dat...
2021-01-18T23:32:53Z ERROR: AcceptBlock: bad-cb-height,block height mismatch in coinbase (code 16)
2021-01-18T23:32:53Z ERROR: AcceptBlockHeader: prev block invalid
2021-01-18T23:32:54Z Reindexing finished
2021-01-18T23:32:54Z Imported mempool transactions from disk: 0 succeeded,0 Failed,0 expired,0 already there
当我删除所有区块链文件、索引、对等点..然后再次运行守护程序时,我收到此错误:
021-01-10T23:20:39Z' progress=1.000000 cache=0.0MiB(23txo)
2021-01-19T00:15:53Z UpdateTip: new best=00000001445126127e4217debde0ffcebc519acb551baed05bfe09ee48a4b0ff height=24 version=0x20000000 log2_work=33.3349 tx=25 date='2021-01-10T23:34:26Z' progress=1.000000 cache=0.0MiB(24txo)
2021-01-19T00:15:53Z UpdateTip: new best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 version=0x20000000 log2_work=33.455669 tx=26 date='2021-01-10T23:43:46Z' progress=1.000000 cache=0.0MiB(25txo)
2021-01-19T00:15:54Z ERROR: ConnectBlock: Consensus::CheckTxInputs: 5e136a6a959d0f87db9243440c6f1717510d9e66e6c600f0c40f7c8b7433cd2d,bad-txns-premature-spend-of-coinbase,tried to spend coinbase at depth 21 (code 16)
2021-01-19T00:15:54Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T00:15:54Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T00:15:54Z ERROR: ConnectTip(): ConnectBlock 00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 Failed
2021-01-19T00:15:54Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T00:15:54Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
我想提一下,这种行为会发生在每个开始与网络同步的新钱包上,我相信修复应该是全球性的吗?但如何?
我还从客户端检查了我笔记本电脑上显示“?”的交易。并被遗弃,我试图获取它的详细信息,这就是我得到的,似乎我正在处理孤立块,我现在的问题是如何让任何未来的钱包丢弃这些孤立块?
gettransaction a6e54114f729226969ebe0d5181aec666c27d410238e7cc894cbf4dd488656c4
12:50:16

{
"amount": 0.00000000,"confirmations": 0,"generated": true,"trusted": false,"txid": "a6e54114f729226969ebe0d5181aec666c27d410238e7cc894cbf4dd488656c4","walletconflicts": [
],"time": 1610830912,"timereceived": 1610830912,"bip125-replaceable": "unkNown","details": [
{
"address": "7T8EeBUqWsofZQLuatr8KQWyhbZ9HdMNp7","category": "orphan","amount": 70.00000000,"vout": 0
}
],"hex": "020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff050291010104ffffffff0200863ba101000000232103d8c0408b0254887c14de033c2a35f10a71050f88c8778697288fe5919b72ba19ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000"
}
以下是重新索引的输出,有趣的是它看到我有 465 个块,检查第一行:
2021-01-19T12:46:49Z New outbound peer connected: version: 70015,blocks=465,peer=0
2021-01-19T12:46:49Z Pre-allocating up to position 0x100000 in rev00000.dat
2021-01-19T12:46:49Z Leaving InitialBlockDownload (latching to false)
2021-01-19T12:46:49Z UpdateTip: new best=000005ab632b75f263ad0a39e42370de501552f71f198fa4f1013cd03783a27b height=1 version=0x20000000 log2_work=21.000022 tx=2 date='2021-01-10T16:20:25Z' progress=1.000000 cache=0.0MiB(1txo)
2021-01-19T12:46:49Z UpdateTip: new best=000009c7210545959949ab0c68f7ff7691cae706048a8761f71680f3373ec3d3 height=2 version=0x20000000 log2_work=21.584978 tx=3 date='2021-01-10T16:20:27Z' progress=1.000000 cache=0.0MiB(2txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000fe829ce74444d6fbf4f9bab4ac6d7e964b71f7ad8ff9a16758296e75796 height=3 version=0x20000000 log2_work=22.000012 tx=4 date='2021-01-10T16:20:31Z' progress=1.000000 cache=0.0MiB(3txo)
2021-01-19T12:46:49Z UpdateTip: new best=000001e2cf8a473debe7280ecea88ccd8f613dd5e0134c27e18c8c43b47b2e83 height=4 version=0x20000000 log2_work=23.000009 tx=5 date='2021-01-10T16:20:53Z' progress=1.000000 cache=0.0MiB(4txo)
2021-01-19T12:46:49Z UpdateTip: new best=0000031d9d73ab438107cbfbc12162f0251d409000f220b5fcd73b714c93db3a height=5 version=0x20000000 log2_work=23.58497 tx=6 date='2021-01-10T16:21:03Z' progress=1.000000 cache=0.0MiB(5txo)
2021-01-19T12:46:49Z UpdateTip: new best=0000001631e85eecf75c2a4807a3e1b81e094eb003565be6d15d8b0f4b7246fc height=6 version=0x20000000 log2_work=24.807371 tx=7 date='2021-01-10T16:22:34Z' progress=1.000000 cache=0.0MiB(6txo)
2021-01-19T12:46:49Z UpdateTip: new best=0000003d0aae68844b3071b14f9efbc81f977538e09dabd949f9028aca66aee7 height=7 version=0x20000000 log2_work=25.45945 tx=8 date='2021-01-10T16:23:16Z' progress=1.000000 cache=0.0MiB(7txo)
2021-01-19T12:46:49Z UpdateTip: new best=0000002e0b2b80978f2e9db42d1c80be3376c092bf5c58d25d29069a4cd10a5a height=8 version=0x20000000 log2_work=26.754908 tx=9 date='2021-01-10T16:23:58Z' progress=1.000000 cache=0.0MiB(8txo)
2021-01-19T12:46:49Z UpdateTip: new best=000000350d54303d2d5579d2edc1eef9b11ec67318cff49ab13d0f6b75b23bac height=9 version=0x20000000 log2_work=27.426286 tx=10 date='2021-01-10T16:27:59Z' progress=1.000000 cache=0.0MiB(9txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000003eb300eda9092e7a1d3b96ffd0629ba150d63fcb16c659a713b63e8eb height=10 version=0x20000000 log2_work=28.372173 tx=11 date='2021-01-10T16:37:40Z' progress=1.000000 cache=0.0MiB(10txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000005c1315d2314dff53312bd996ad9236a8372470305a1f5a1bd5d9927e0 height=11 version=0x20000000 log2_work=28.938638 tx=12 date='2021-01-10T16:40:54Z' progress=1.000000 cache=0.0MiB(11txo)
2021-01-19T12:46:49Z UpdateTip: new best=000000047c0c2b5c01ee5ab4b741d96a3be3ea2dfbb7e485768581faff261fcf height=12 version=0x20000000 log2_work=29.941751 tx=13 date='2021-01-10T16:49:40Z' progress=1.000000 cache=0.0MiB(12txo)
2021-01-19T12:46:49Z UpdateTip: new best=000000054e130d4b2fb4fbbffa500e0ca19aa83084a45d1b1b33ecb9a8fe5f58 height=13 version=0x20000000 log2_work=30.52775 tx=14 date='2021-01-10T16:51:06Z' progress=1.000000 cache=0.0MiB(13txo)
2021-01-19T12:46:49Z UpdateTip: new best=000000017dbd8c5928d3314f5b907792b273df651eefe6a44225afc219bcfa79 height=14 version=0x20000000 log2_work=31.75133 tx=15 date='2021-01-10T19:31:15Z' progress=1.000000 cache=0.0MiB(14txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000001c4f739ff34da5d61ebdc2278c13dabeeb878fcaff2bd2de9f4a35b22 height=15 version=0x20000000 log2_work=32.403731 tx=16 date='2021-01-10T20:25:24Z' progress=1.000000 cache=0.0MiB(15txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000003791bdff871ff3ba6c3048f9e312d9a2cffbc24a950f538c7bbc2ee55 height=16 version=0x20000000 log2_work=32.529309 tx=17 date='2021-01-10T21:31:30Z' progress=1.000000 cache=0.0MiB(16txo)
2021-01-19T12:46:49Z UpdateTip: new best=0000000270d6af7841ae07b1c81b97fa93b777a74f8d95946d077ffa226741de height=17 version=0x20000000 log2_work=32.644826 tx=18 date='2021-01-10T21:55:17Z' progress=1.000000 cache=0.0MiB(17txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000013a433094dd754b0cf8b8dcff83d672643ecc483fb1fdee4de0ae1d2ea height=18 version=0x20000000 log2_work=32.690764 tx=19 date='2021-01-10T21:57:01Z' progress=1.000000 cache=0.0MiB(18txo)
2021-01-19T12:46:49Z UpdateTip: new best=000000074d7fdd784a7e83e3b0a0c18a68ce93b48804b28e30a8f5c8fc80cfd6 height=19 version=0x20000000 log2_work=32.735284 tx=20 date='2021-01-10T22:00:28Z' progress=1.000000 cache=0.0MiB(19txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000005b5ed3062f0fa354708cae2421d1758155662f009fb3ab29adc291270 height=20 version=0x20000000 log2_work=32.857069 tx=21 date='2021-01-10T22:42:19Z' progress=1.000000 cache=0.0MiB(20txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000003365926e56ad787ce1a52b99e64d0d9de4733013acdd4db784bcf0cec height=21 version=0x20000000 log2_work=32.96937 tx=22 date='2021-01-10T22:50:50Z' progress=1.000000 cache=0.0MiB(21txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000003b3148bcb5e8417dcbb3d21a331f50de68231f0e85448d60e84919d0a height=22 version=0x20000000 log2_work=33.090957 tx=23 date='2021-01-10T23:12:50Z' progress=1.000000 cache=0.0MiB(22txo)
2021-01-19T12:46:49Z UpdateTip: new best=0000000532b55bb9175f5562f666a3049a9a8a27ffc2465eb6d50f5ae2c5c695 height=23 version=0x20000000 log2_work=33.203089 tx=24 date='2021-01-10T23:20:39Z' progress=1.000000 cache=0.0MiB(23txo)
2021-01-19T12:46:49Z UpdateTip: new best=00000001445126127e4217debde0ffcebc519acb551baed05bfe09ee48a4b0ff height=24 version=0x20000000 log2_work=33.3349 tx=25 date='2021-01-10T23:34:26Z' progress=1.000000 cache=0.0MiB(24txo)
2021-01-19T12:46:49Z UpdateTip: new best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 version=0x20000000 log2_work=33.455669 tx=26 date='2021-01-10T23:43:46Z' progress=1.000000 cache=0.0MiB(25txo)
2021-01-19T12:46:49Z ERROR: ConnectBlock: Consensus::CheckTxInputs: 5e136a6a959d0f87db9243440c6f1717510d9e66e6c600f0c40f7c8b7433cd2d,tried to spend coinbase at depth 21 (code 16)
2021-01-19T12:46:49Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T12:46:49Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:46:49Z ERROR: ConnectTip(): ConnectBlock 00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 Failed
2021-01-19T12:46:49Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T12:46:49Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:46:49Z connected to self at 127.0.0.1:56530,disconnecting
2021-01-19T12:47:20Z ERROR: ConnectBlock: Consensus::CheckTxInputs: 5e136a6a959d0f87db9243440c6f1717510d9e66e6c600f0c40f7c8b7433cd2d,tried to spend coinbase at depth 21 (code 16)
2021-01-19T12:47:20Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T12:47:20Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:47:20Z ERROR: ConnectTip(): ConnectBlock 00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 Failed
2021-01-19T12:47:20Z InvalidChainFound: invalid block=0000000311032208c85936e53f2a3f090484b991122c9bedf154be94fc548975 height=41 log2_work=34.755592 date=2021-01-11T04:22:16Z
2021-01-19T12:47:20Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:47:20Z CheckForkWarningConditions: Warning: Found invalid chain at least ~6 blocks longer than our best chain.
Chain state database corruption likely.
2021-01-19T12:47:20Z CheckForkWarningConditions: Warning: Found invalid chain at least ~6 blocks longer than our best chain.
Chain state database corruption likely.
2021-01-19T12:47:21Z New outbound peer connected: version: 70015,peer=3
2021-01-19T12:49:19Z ERROR: AcceptBlockHeader: prev block invalid
2021-01-19T12:49:19Z Warning: not punishing manually-connected peer 192.168.1.105:17704!
2021-01-19T12:49:19Z ERROR: AcceptBlockHeader: prev block invalid
2021-01-19T12:49:31Z [default wallet] Rescan started from block 0...
2021-01-19T12:49:55Z ERROR: AcceptBlockHeader: prev block invalid
2021-01-19T12:50:22Z ERROR: ConnectBlock: Consensus::CheckTxInputs: 5e136a6a959d0f87db9243440c6f1717510d9e66e6c600f0c40f7c8b7433cd2d,tried to spend coinbase at depth 21 (code 16)
2021-01-19T12:50:22Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T12:50:22Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:50:22Z ERROR: ConnectTip(): ConnectBlock 00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 Failed
2021-01-19T12:50:22Z InvalidChainFound: invalid block=0000000311032208c85936e53f2a3f090484b991122c9bedf154be94fc548975 height=41 log2_work=34.755592 date=2021-01-11T04:22:16Z
2021-01-19T12:50:22Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:50:22Z CheckForkWarningConditions: Warning: Found invalid chain at least ~6 blocks longer than our best chain.
Chain state database corruption likely.
2021-01-19T12:50:22Z CheckForkWarningConditions: Warning: Found invalid chain at least ~6 blocks longer than our best chain.
Chain state database corruption likely.
2021-01-19T12:51:07Z ERROR: ConnectBlock: Consensus::CheckTxInputs: 5e136a6a959d0f87db9243440c6f1717510d9e66e6c600f0c40f7c8b7433cd2d,tried to spend coinbase at depth 21 (code 16)
2021-01-19T12:51:07Z InvalidChainFound: invalid block=00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 height=26 log2_work=33.574745 date=2021-01-10T23:47:07Z
2021-01-19T12:51:07Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:51:07Z ERROR: ConnectTip(): ConnectBlock 00000003e64b7a9b36306c83e18ca32436eecfab7243d8af186c30dc662366d9 Failed
2021-01-19T12:51:07Z InvalidChainFound: invalid block=0000000311032208c85936e53f2a3f090484b991122c9bedf154be94fc548975 height=41 log2_work=34.755592 date=2021-01-11T04:22:16Z
2021-01-19T12:51:07Z InvalidChainFound: current best=000000037284433aa56242d9592d400f863bca4c9ac47ca93a1b88b2899d27de height=25 log2_work=33.455669 date=2021-01-10T23:43:46Z
2021-01-19T12:51:07Z CheckForkWarningConditions: Warning: Found invalid chain at least ~6 blocks longer than our best chain.
Chain state database corruption likely.
2021-01-19T12:51:07Z CheckForkWarningConditions: Warning: Found invalid chain at least ~6 blocks longer than our best chain.
Chain state database corruption likely.
2021-01-19T12:57:33Z ERROR: AcceptBlockHeader: prev block invalid
到现在为止我所做的是使那些块哈希无效,然后我使用了 cli 命令 rethinkblock 和 clearbanned 但它没有用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)