BTCPrivate / BitcoinPrivate-legacy

Bitcoin Private is a Bitcoin and Zclassic fork which uses ZK-SNARK technology for privacy and fungibility.
Other
283 stars 132 forks source link

getblocktemplate RPC failing #113

Closed oliverw closed 6 years ago

oliverw commented 6 years ago

I've compiled the daemon from latest commits, fetched the params and placed the extracted utxos into btcpd's data directory. Syncing worked fine until some point when btcpd began logging this:

2018-03-03 12:20:20 AcceptBlock(): FORK Block - Validating block - 277217 / 023c7b9483e67c689b88bce51231e18200978351be8569c1ba4d6693df19bb42 with UTXO file - /data2/btcpd1/utxo_snapshot/utxo-04226.bin 2018-03-03 12:20:20 AcceptBlock(): FORK Block - 10000 records read from UTXO file 2018-03-03 12:20:20 AcceptBlock(): FORK Block - Validating block - 277098 / 045933dd6e359b84add77fa2a5407dbeaf1b773b96ee14e351a8e64b2b51231f with UTXO file - /data2/btcpd1/utxo_snapshot/utxo-04107.bin 2018-03-03 12:20:20 AcceptBlock(): FORK Block - 10000 records read from UTXO file 2018-03-03 12:20:20 UpdateTip: new best=072a42f5702f0029084a9420fe76deb9df410ed8220d9e68338a0952a6feb523 height=277096 log2_work=49.376296 tx=41852089 date=2018-03-03 11:51:11 progress=0.999999 cache=6.5MiB(10000tx) 2018-03-03 12:20:20 UpdateTip: new best=017f93eb5dfdd84095ef390dde3fce7f9f9a067492b16ce3c2d616b9e9bd2e20 height=277095 log2_work=49.376296 tx=41842089 date=2018-03-03 11:50:50 progress=0.999999 cache=7.7MiB(20000tx) 2018-03-03 12:20:20 UpdateTip: new best=00746b7f75229974712062f6aa1a4d85bce9a42caad156b188042b6f45d2a28d height=277096 log2_work=49.376296 tx=41852089 date=2018-03-03 11:50:58 progress=0.999999 cache=8.5MiB(20001tx) 2018-03-03 12:20:20 NEWTIP 05c206b92914d3218836890c762b6320c732a6a322c175f6e3362b1effe348a3 277096 1520079620 277096 0 4d5a99113ad098d3a891c042a901f41615d2874a370d39e8041567b5bde49a8e 0 00746b7f75229974712062f6aa1a4d85bce9a42caad156b188042b6f45d2a28d 2018-03-03 12:20:20 UpdateTip: new best=002ca2a7a73cff1b779ff5c266fbf8ee7ce6d876188b8f6dc9d32352753fc41d height=277097 log2_work=49.376296 tx=41862089 date=2018-03-03 11:51:07 progress=0.999999 cache=9.2MiB(20002tx) 2018-03-03 12:20:20 NEWTIP 05c206b92914d3218836890c762b6320c732a6a322c175f6e3362b1effe348a3 277097 1520079620 277097 0 4d5a99113ad098d3a891c042a901f41615d2874a370d39e8041567b5bde49a8e 0 002ca2a7a73cff1b779ff5c266fbf8ee7ce6d876188b8f6dc9d32352753fc41d 2018-03-03 12:20:23 UpdateTip: new best=045933dd6e359b84add77fa2a5407dbeaf1b773b96ee14e351a8e64b2b51231f height=277098 log2_work=49.376296 tx=41872089 date=2018-03-03 11:51:17 progress=0.999999 cache=11.2MiB(30002tx) 2018-03-03 12:20:23 NEWTIP 05c206b92914d3218836890c762b6320c732a6a322c175f6e3362b1effe348a3 277098 1520079623 277098 0 4d5a99113ad098d3a891c042a901f41615d2874a370d39e8041567b5bde49a8e 0 045933dd6e359b84add77fa2a5407dbeaf1b773b96ee14e351a8e64b2b51231f 2018-03-03 12:20:23 keypool reserve 3 2018-03-03 12:20:23 CreateNewBlock(): total size 1000 2018-03-03 12:20:23 ERROR: ContextualCheckBlockHeader: fork block does not look like fork block 2018-03-03 12:20:23 keypool return 3 2018-03-03 12:20:25 UpdateTip: new best=02d0731cd8ff5d483f3e17124812f747c53dc7cb6ae320b0d02d5de37084ca04 height=277099 log2_work=49.376296 tx=41882089 date=2018-03-03 11:51:38 progress=0.999999 cache=13.2MiB(40002tx) 2018-03-03 12:20:25 NEWTIP 05c206b92914d3218836890c762b6320c732a6a322c175f6e3362b1effe348a3 277099 1520079625 277099 0 5dfa6b12afe4d1cee4015202b789de20d695d8abfdb1580b0f0e0499a3366f72 0 02d0731cd8ff5d483f3e17124812f747c53dc7cb6ae320b0d02d5de37084ca04 2018-03-03 12:20:27 UpdateTip: new best=055e38844daf31690060fc418c00260756c065502f29bbac46a7ad9896729376 height=277100 log2_work=49.376296 tx=41892089 date=2018-03-03 11:51:53 progress=0.999999 cache=15.2MiB(50002tx) 2018-03-03 12:20:27 NEWTIP 05c206b92914d3218836890c762b6320c732a6a322c175f6e3362b1effe348a3 277100 1520079627 277100 0 5dfa6b12afe4d1cee4015202b789de20d695d8abfdb1580b0f0e0499a3366f72 0 055e38844daf31690060fc418c00260756c065502f29bbac46a7ad9896729376

The getblocktemplate RPC returns this:

error code: -1 error message: CreateNewBlock(): TestBlockValidity failed