File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,16 @@ def test_rpc_rbf_policy():
63
63
assert_equal (self .nodes [3 ].getmempoolinfo ()["rbf_policy" ], 'always' )
64
64
test_rpc_rbf_policy ()
65
65
66
+ self .log .info ("Running test service flag" )
67
+ def test_service_flag ():
68
+ NODE_REPLACE_BY_FEE = (1 << 26 )
69
+ for i in range (3 ):
70
+ assert not (int (self .nodes [i ].getnetworkinfo ()['localservices' ], 0x10 ) & NODE_REPLACE_BY_FEE )
71
+ assert 'REPLACE_BY_FEE?' not in self .nodes [i ].getnetworkinfo ()['localservicesnames' ]
72
+ assert int (self .nodes [3 ].getnetworkinfo ()['localservices' ], 0x10 ) & NODE_REPLACE_BY_FEE
73
+ assert 'REPLACE_BY_FEE?' in self .nodes [3 ].getnetworkinfo ()['localservicesnames' ]
74
+ test_service_flag ()
75
+
66
76
self .log .info ("Running test simple doublespend..." )
67
77
self .test_simple_doublespend ()
68
78
You can’t perform that action at this time.
0 commit comments