shohu / c0ban

c0ban source tree
MIT License
0 stars 0 forks source link

Pass signlogic for bip68-sequence.py #64

Closed shohu closed 6 years ago

shohu commented 6 years ago
# test/functional/bip68-sequence.py
2018-07-11 06:26:11.304000 TestFramework (INFO): Initializing test directory /tmp/testavidyz96
2018-07-11 06:26:12.274000 TestFramework (INFO): Running test disable flag
2018-07-11 06:26:12.307000 TestFramework (INFO): Running test sequence-lock-confirmed-inputs
2018-07-11 06:26:33.060000 TestFramework (INFO): Running test sequence-lock-unconfirmed-inputs
2018-07-11 06:26:33.392000 TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/c0ban/test/functional/test_framework/test_framework.py", line 120, in main
    self.run_test()
  File "test/functional/bip68-sequence.py", line 37, in run_test
    self.test_sequence_lock_unconfirmed_inputs()
  File "test/functional/bip68-sequence.py", line 315, in test_sequence_lock_unconfirmed_inputs
    assert(tx3.hash not in mempool)
AssertionError
2018-07-11 06:26:33.403000 TestFramework (INFO): Stopping nodes
2018-07-11 06:26:35.604000 TestFramework (WARNING): Not cleaning up dir /tmp/testavidyz96
2018-07-11 06:26:35.604000 TestFramework (ERROR): Test failed. Test logging available at /tmp/testavidyz96/test_framework.log

debug.log

2018-07-12 07:20:42.771982 (mocktime: 2018-07-12 09:10:42) ThreadRPCServer method=submitblock
2018-07-12 07:20:42.772263 (mocktime: 2018-07-12 09:10:42) ERROR: ProcessNewBlock: AcceptBlock FAILED
2018-07-12 07:20:42.773274 (mocktime: 2018-07-12 09:10:42) Received a POST request for / from 127.0.0.1:42036
2018-07-12 07:20:42.773444 (mocktime: 2018-07-12 09:10:42) ThreadRPCServer method=submitblock
2018-07-12 07:20:42.773520 (mocktime: 2018-07-12 09:10:42) ERROR: AcceptBlockHeader: prev block not found
2018-07-12 07:20:42.773714 (mocktime: 2018-07-12 09:10:42) ERROR: ProcessNewBlock: AcceptBlock FAILED
2018-07-12 07:20:42.774411 (mocktime: 2018-07-12 09:10:42) Received a POST request for / from 127.0.0.1:42036
2018-07-12 07:20:42.774552 (mocktime: 2018-07-12 09:10:42) ThreadRPCServer method=getrawmempool
2018-07-12 07:20:42.783555 (mocktime: 2018-07-12 09:10:42) Received a POST request for / from 127.0.0.1:42036
2018-07-12 07:20:42.783634 (mocktime: 2018-07-12 09:10:42) ThreadRPCServer method=stop
2018-07-12 07:20:42.804350 (mocktime: 2018-07-12 09:10:42) sending inv (37 bytes) peer=0
2018-07-12 07:20:42.876363 (mocktime: 2018-07-12 09:10:42) Interrupting HTTP server
2018-07-12 07:20:42.876623 (mocktime: 2018-07-12 09:10:42) Interrupting HTTP RPC server
shohu commented 6 years ago

I passed this test 👍

# test/functional/bip68-sequence.py
2018-07-12 07:26:11.826000 TestFramework (INFO): Initializing test directory /tmp/testb5vlfuas
2018-07-12 07:26:12.784000 TestFramework (INFO): Running test disable flag
2018-07-12 07:26:12.810000 TestFramework (INFO): Running test sequence-lock-confirmed-inputs
2018-07-12 07:26:25.799000 TestFramework (INFO): Running test sequence-lock-unconfirmed-inputs
2018-07-12 07:26:26.090000 TestFramework (INFO): Running test BIP68 not consensus before versionbits activation
2018-07-12 07:26:26.123000 TestFramework (INFO): Activating BIP68 (and 112/113)
2018-07-12 07:26:26.492000 TestFramework (INFO): Verifying nVersion=2 transactions are standard.
2018-07-12 07:26:26.492000 TestFramework (INFO): Note that nVersion=2 transactions are always standard (independent of BIP68 activation status).
2018-07-12 07:26:26.513000 TestFramework (INFO): Passed
2018-07-12 07:26:26.513000 TestFramework (INFO): Stopping nodes
2018-07-12 07:26:28.705000 TestFramework (INFO): Cleaning up
2018-07-12 07:26:28.722000 TestFramework (INFO): Tests successful