File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
6
import subprocess
7
+ import os
7
8
8
9
from test_framework .test_framework import BitcoinTestFramework
9
10
@@ -45,5 +46,8 @@ def run_test(self):
45
46
self .add_block (datadir , "00" , "Block decode failed" )
46
47
self .add_block (datadir , "" , "Empty line found" )
47
48
49
+ block_one_mistmatched_version = "000000006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000982051fd1e4ba744bbbe680e1fee14677ba1a3c3540bf7b1cdb606e857233e0e61bc6649ffff001d01e362990101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac00000000"
50
+ self .add_block (datadir , block_one_mistmatched_version , "invalid proof of work or time too old" )
51
+
48
52
if __name__ == "__main__" :
49
53
BitcoinChainstateTest (__file__ ).main ()
You can’t perform that action at this time.
0 commit comments