shohu / c0ban

c0ban source tree
MIT License
0 stars 0 forks source link

Pass signlogic for p2p-fullblocktest.py #53

Closed shohu closed 6 years ago

shohu commented 6 years ago
# test/functional/p2p-fullblocktest.py
2018-07-11 05:13:44.818000 TestFramework (INFO): Initializing test directory /tmp/testn0mi9s7z
2018-07-11 05:13:45.086000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:14422
2018-07-11 05:13:45.352000 TestFramework.comptool (INFO): Test 1: PASS
2018-07-11 05:13:45.725000 TestFramework.comptool (INFO): Test 2: PASS
2018-07-11 05:13:45.946000 TestFramework.comptool (INFO): Test 3: PASS
2018-07-11 05:13:46.166000 TestFramework.comptool (INFO): Test 4: PASS
2018-07-11 05:13:46.220000 TestFramework.comptool (INFO): Test 5: PASS
2018-07-11 05:13:46.436000 TestFramework.comptool (INFO): Test 6: PASS
2018-07-11 05:13:46.542000 TestFramework.comptool (INFO): Test 7: PASS
2018-07-11 05:13:46.766000 TestFramework.comptool (INFO): Test 8: PASS
2018-07-11 05:13:46.871000 TestFramework.comptool (INFO): Test 9: PASS
2018-07-11 05:13:46.975000 TestFramework.comptool (INFO): Test 10: PASS
2018-07-11 05:13:47.081000 TestFramework.comptool (INFO): Test 11: PASS
2018-07-11 05:13:47.185000 TestFramework.comptool (INFO): Test 12: PASS
2018-07-11 05:13:47.292000 TestFramework.comptool (INFO): Test 13: PASS
2018-07-11 05:13:47.397000 TestFramework.comptool (INFO): Test 14: PASS
2018-07-11 05:13:47.502000 TestFramework.comptool (INFO): Test 15: PASS
2018-07-11 05:13:47.565000 TestFramework.comptool (INFO): Test 16: PASS
2018-07-11 05:13:47.802000 TestFramework.comptool (INFO): Test 17: PASS
2018-07-11 05:13:47.873000 TestFramework.comptool (INFO): Test 18: PASS
2018-07-11 05:13:48.026000 TestFramework.comptool (INFO): Test 19: PASS
2018-07-11 05:13:48.130000 TestFramework.comptool (INFO): Test 20: PASS
2018-07-11 05:13:48.233000 TestFramework.comptool (INFO): Test 21: PASS
2018-07-11 05:13:48.286000 TestFramework.comptool (INFO): Test 22: PASS
2018-07-11 05:13:48.441000 TestFramework.comptool (INFO): Test 23: PASS
2018-07-11 05:13:48.545000 TestFramework.comptool (INFO): Test 24: PASS
2018-07-11 05:13:48.888000 TestFramework.comptool (INFO): Test 25: PASS
2018-07-11 05:13:49.146000 TestFramework.comptool (INFO): Test 26: PASS
2018-07-11 05:13:49.255000 TestFramework.comptool (INFO): Test 27: PASS
2018-07-11 05:13:49.363000 TestFramework.comptool (INFO): Test 28: PASS
2018-07-11 05:13:49.471000 TestFramework.comptool (INFO): Test 29: PASS
2018-07-11 05:13:49.578000 TestFramework.comptool (INFO): Test 30: PASS
2018-07-11 05:13:49.683000 TestFramework.comptool (INFO): Test 31: PASS
2018-07-11 05:13:49.850000 TestFramework.comptool (INFO): Test 32: PASS
2018-07-11 05:13:50.073000 TestFramework.comptool (INFO): Test 33: PASS
2018-07-11 05:13:50.181000 TestFramework.comptool (INFO): Test 34: PASS
2018-07-11 05:13:50.402000 TestFramework.comptool (INFO): Test 35: PASS
2018-07-11 05:13:50.509000 TestFramework.comptool (INFO): Test 36: PASS
2018-07-11 05:13:50.699000 TestFramework.comptool (INFO): Test 37: PASS
2018-07-11 05:13:50.824000 TestFramework.comptool (INFO): Test 38: PASS
2018-07-11 05:13:50.929000 TestFramework.comptool (INFO): Test 39: PASS
2018-07-11 05:13:51.036000 TestFramework.comptool (INFO): Test 40: PASS
2018-07-11 05:14:06.016000 TestFramework.comptool (INFO): Test 41: PASS
2018-07-11 05:14:09.828000 TestFramework.comptool (INFO): Test 42: PASS
2018-07-11 05:14:12.078000 TestFramework.comptool (INFO): Test 43: PASS
2018-07-11 05:14:12.184000 TestFramework.comptool (INFO): Test 44: PASS
2018-07-11 05:14:13.597000 TestFramework.comptool (INFO): Test 45: PASS
2018-07-11 05:14:13.598000 TestFramework (ERROR): Unexpected exception caught during testing
Traceback (most recent call last):
  File "/c0ban/test/functional/test_framework/test_framework.py", line 120, in main
    self.run_test()
  File "test/functional/p2p-fullblocktest.py", line 72, in run_test
    self.test.run()
  File "/c0ban/test/functional/test_framework/comptool.py", line 299, in run
    for test_instance in self.test_generator.get_tests():
  File "test/functional/p2p-fullblocktest.py", line 623, in get_tests
    b44.solve()
  File "/c0ban/test/functional/test_framework/mininode.py", line 669, in solve
    target_hash = self.sha256 if self.height < CHANGE_BLOCK_HEIGHT else self.lyra2re2Hash
AttributeError: 'CBlock' object has no attribute 'height'
2018-07-11 05:14:13.620000 TestFramework (INFO): Stopping nodes
2018-07-11 05:14:15.897000 TestFramework (WARNING): Not cleaning up dir /tmp/testn0mi9s7z
2018-07-11 05:14:15.897000 TestFramework (ERROR): Test failed. Test logging available at /tmp/testn0mi9s7z/test_framework.log
shohu commented 6 years ago

I passed this test 👍

# test/functional/p2p-fullblocktest.py
2018-07-12 05:45:23.754000 TestFramework (INFO): Initializing test directory /tmp/testkymaf4jm
2018-07-12 05:45:24.022000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:14446
2018-07-12 05:45:24.283000 TestFramework.comptool (INFO): Test 1: PASS
2018-07-12 05:45:24.858000 TestFramework.comptool (INFO): Test 2: PASS
2018-07-12 05:45:25.080000 TestFramework.comptool (INFO): Test 3: PASS
2018-07-12 05:45:25.303000 TestFramework.comptool (INFO): Test 4: PASS
2018-07-12 05:45:25.409000 TestFramework.comptool (INFO): Test 5: PASS
2018-07-12 05:45:25.580000 TestFramework.comptool (INFO): Test 6: PASS
2018-07-12 05:45:25.687000 TestFramework.comptool (INFO): Test 7: PASS
2018-07-12 05:45:25.906000 TestFramework.comptool (INFO): Test 8: PASS
2018-07-12 05:45:26.010000 TestFramework.comptool (INFO): Test 9: PASS
2018-07-12 05:45:26.115000 TestFramework.comptool (INFO): Test 10: PASS
2018-07-12 05:45:26.220000 TestFramework.comptool (INFO): Test 11: PASS
2018-07-12 05:45:26.327000 TestFramework.comptool (INFO): Test 12: PASS
2018-07-12 05:45:26.431000 TestFramework.comptool (INFO): Test 13: PASS
2018-07-12 05:45:26.539000 TestFramework.comptool (INFO): Test 14: PASS
2018-07-12 05:45:26.646000 TestFramework.comptool (INFO): Test 15: PASS
2018-07-12 05:45:26.763000 TestFramework.comptool (INFO): Test 16: PASS
2018-07-12 05:45:26.951000 TestFramework.comptool (INFO): Test 17: PASS
2018-07-12 05:45:27.073000 TestFramework.comptool (INFO): Test 18: PASS
2018-07-12 05:45:27.178000 TestFramework.comptool (INFO): Test 19: PASS
2018-07-12 05:45:27.280000 TestFramework.comptool (INFO): Test 20: PASS
2018-07-12 05:45:27.386000 TestFramework.comptool (INFO): Test 21: PASS
2018-07-12 05:45:27.442000 TestFramework.comptool (INFO): Test 22: PASS
2018-07-12 05:45:27.548000 TestFramework.comptool (INFO): Test 23: PASS
2018-07-12 05:45:27.655000 TestFramework.comptool (INFO): Test 24: PASS
2018-07-12 05:45:27.885000 TestFramework.comptool (INFO): Test 25: PASS
2018-07-12 05:45:28.189000 TestFramework.comptool (INFO): Test 26: PASS
2018-07-12 05:45:28.294000 TestFramework.comptool (INFO): Test 27: PASS
2018-07-12 05:45:28.403000 TestFramework.comptool (INFO): Test 28: PASS
2018-07-12 05:45:28.512000 TestFramework.comptool (INFO): Test 29: PASS
2018-07-12 05:45:28.617000 TestFramework.comptool (INFO): Test 30: PASS
2018-07-12 05:45:28.670000 TestFramework.comptool (INFO): Test 31: PASS
2018-07-12 05:45:28.891000 TestFramework.comptool (INFO): Test 32: PASS
2018-07-12 05:45:29.119000 TestFramework.comptool (INFO): Test 33: PASS
2018-07-12 05:45:29.226000 TestFramework.comptool (INFO): Test 34: PASS
2018-07-12 05:45:29.396000 TestFramework.comptool (INFO): Test 35: PASS
2018-07-12 05:45:29.501000 TestFramework.comptool (INFO): Test 36: PASS
2018-07-12 05:45:29.742000 TestFramework.comptool (INFO): Test 37: PASS
2018-07-12 05:45:29.815000 TestFramework.comptool (INFO): Test 38: PASS
2018-07-12 05:45:29.921000 TestFramework.comptool (INFO): Test 39: PASS
2018-07-12 05:45:30.028000 TestFramework.comptool (INFO): Test 40: PASS
2018-07-12 05:45:44.595000 TestFramework.comptool (INFO): Test 41: PASS
2018-07-12 05:45:48.611000 TestFramework.comptool (INFO): Test 42: PASS
2018-07-12 05:45:50.522000 TestFramework.comptool (INFO): Test 43: PASS
2018-07-12 05:45:50.629000 TestFramework.comptool (INFO): Test 44: PASS
2018-07-12 05:45:51.887000 TestFramework.comptool (INFO): Test 45: PASS
2018-07-12 05:45:52.868000 TestFramework.comptool (INFO): Test 46: PASS
2018-07-12 05:45:52.972000 TestFramework.comptool (INFO): Test 47: PASS
2018-07-12 05:45:53.077000 TestFramework.comptool (INFO): Test 48: PASS
2018-07-12 05:45:53.180000 TestFramework.comptool (INFO): Test 49: PASS
2018-07-12 05:45:53.284000 TestFramework.comptool (INFO): Test 50: PASS
2018-07-12 05:45:53.389000 TestFramework.comptool (INFO): Test 51: PASS
2018-07-12 05:45:53.494000 TestFramework.comptool (INFO): Test 52: PASS
2018-07-12 05:45:53.599000 TestFramework.comptool (INFO): Test 53: PASS
2018-07-12 05:45:53.706000 TestFramework.comptool (INFO): Test 54: PASS
2018-07-12 05:45:53.812000 TestFramework.comptool (INFO): Test 55: PASS
2018-07-12 05:45:53.917000 TestFramework.comptool (INFO): Test 56: PASS
2018-07-12 05:45:55.118000 TestFramework.comptool (INFO): Test 57: PASS
2018-07-12 05:45:55.225000 TestFramework.comptool (INFO): Test 58: PASS
2018-07-12 05:45:55.334000 TestFramework.comptool (INFO): Test 59: PASS
2018-07-12 05:45:56.645000 TestFramework.comptool (INFO): Test 60: PASS
2018-07-12 05:45:56.749000 TestFramework.comptool (INFO): Test 61: PASS
2018-07-12 05:45:56.860000 TestFramework.comptool (INFO): Test 62: PASS
2018-07-12 05:45:56.969000 TestFramework.comptool (INFO): Test 63: PASS
2018-07-12 05:45:58.182000 TestFramework.comptool (INFO): Test 64: PASS
2018-07-12 05:45:58.289000 TestFramework.comptool (INFO): Test 65: PASS
2018-07-12 05:45:58.393000 TestFramework.comptool (INFO): Test 66: PASS
2018-07-12 05:45:58.498000 TestFramework.comptool (INFO): Test 67: PASS
2018-07-12 05:45:58.770000 TestFramework.comptool (INFO): Test 68: PASS
2018-07-12 05:45:59.959000 TestFramework.comptool (INFO): Test 69: PASS
2018-07-12 05:46:01.335000 TestFramework.comptool (INFO): Test 70: PASS
2018-07-12 05:46:01.441000 TestFramework.comptool (INFO): Test 71: PASS
2018-07-12 05:46:01.549000 TestFramework.comptool (INFO): Test 72: PASS
2018-07-12 05:46:01.654000 TestFramework.comptool (INFO): Test 73: PASS
2018-07-12 05:46:02.851000 TestFramework.comptool (INFO): Test 74: PASS
2018-07-12 05:46:02.956000 TestFramework.comptool (INFO): Test 75: PASS
2018-07-12 05:46:03.062000 TestFramework.comptool (INFO): Test 76: PASS
2018-07-12 05:46:04.070000 TestFramework.comptool (INFO): Test 77: PASS
2018-07-12 05:46:04.187000 TestFramework.comptool (INFO): Test 78: PASS
2018-07-12 05:46:04.292000 TestFramework.comptool (INFO): Test 79: PASS
2018-07-12 05:46:05.452000 TestFramework.comptool (INFO): Test 80: PASS
2018-07-12 05:46:06.590000 TestFramework.comptool (INFO): Test 81: PASS
2018-07-12 05:46:07.892000 TestFramework.comptool (INFO): Test 82: PASS
2018-07-12 05:46:08.919000 TestFramework.comptool (INFO): Test 83: PASS
2018-07-12 05:46:10.071000 TestFramework.comptool (INFO): Test 84: PASS
2018-07-12 05:46:10.182000 TestFramework.comptool (INFO): Test 85: PASS
2018-07-12 05:46:10.290000 TestFramework.comptool (INFO): Test 86: PASS
2018-07-12 05:46:11.524000 TestFramework.comptool (INFO): Test 87: PASS
2018-07-12 05:46:12.681000 TestFramework.comptool (INFO): Test 88: PASS
2018-07-12 05:46:13.691000 TestFramework.comptool (INFO): Test 89: PASS
2018-07-12 05:46:13.800000 TestFramework.comptool (INFO): Test 90: PASS
2018-07-12 05:46:14.959000 TestFramework.comptool (INFO): Test 91: PASS
2018-07-12 05:46:15.068000 TestFramework.comptool (INFO): Test 92: PASS
2018-07-12 05:46:16.201000 TestFramework.comptool (INFO): Test 93: PASS
2018-07-12 05:46:16.310000 TestFramework.comptool (INFO): Test 94: PASS
2018-07-12 05:46:16.416000 TestFramework (INFO): Stopping nodes
2018-07-12 05:46:18.682000 TestFramework (INFO): Cleaning up
2018-07-12 05:46:18.704000 TestFramework (INFO): Tests successful