Closed shohu closed 6 years ago
debug.log
2018-06-01 07:39:35.828442 TESTTTTTT222 CheckBlockHeader GetPoWHash height = 202, a3952f2f351d9a76fbbc6a4a4ad4c5c8c17d6cfa706e325a961fbadd3dae8799
2018-06-01 07:39:35.828580 Misbehaving: 127.0.0.1:51612 peer=3 (0 -> 50)
2018-06-01 07:39:35.828601 ERROR: ProcessNewBlock: AcceptBlock FAILED
2018-06-01 07:39:35.828624 sending reject (49 bytes) peer=3
I tested again when got following debug log.
2018-06-01 08:57:38.548503 ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 3d6930bd449cf2a4bd76e47fa09ee47faac55c4b7f7e21eabf2dce5a96b76770, high-hash, proof of work failed (code 16)
I changed to #35 source. I got success.
# test/functional/sendheaders.py
2018-06-05 07:07:09.904000 TestFramework (INFO): Initializing test directory /tmp/testtuwyihtw
2018-06-05 07:07:10.396000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:13618
2018-06-05 07:07:10.397000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:13618
2018-06-05 07:07:10.659000 TestFramework (INFO): Part 1: headers don't start before sendheaders message...
2018-06-05 07:07:11.144000 TestFramework (INFO): Part 1: success!
2018-06-05 07:07:11.144000 TestFramework (INFO): Part 2: announce blocks with headers after sendheaders message...
2018-06-05 07:07:20.859000 TestFramework (INFO): Part 2: success!
2018-06-05 07:07:20.860000 TestFramework (INFO): Part 3: headers announcements can stop after large reorg, and resume after headers/inv from peer...
2018-06-05 07:07:22.559000 TestFramework (INFO): Part 3: success!
2018-06-05 07:07:22.559000 TestFramework (INFO): Part 4: Testing direct fetch behavior...
2018-06-05 07:07:23.454000 TestFramework (INFO): Part 4: success!
2018-06-05 07:07:23.458000 TestFramework (INFO): Part 5: Testing handling of unconnecting headers
2018-06-05 07:07:32.701000 TestFramework (INFO): Part 5: success!
2018-06-05 07:07:32.701000 TestFramework (INFO): Stopping nodes
2018-06-05 07:07:34.884000 TestFramework (INFO): Cleaning up
2018-06-05 07:07:34.889000 TestFramework (INFO): Tests successful
debug.log