File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11
11
)
12
12
from test_framework .messages import CTransaction , COIN
13
13
14
+
14
15
class TxnMallTest (BitcoinTestFramework ):
15
16
def set_test_params (self ):
16
- self .num_nodes = 4
17
+ self .num_nodes = 3
17
18
self .supports_cli = False
18
19
19
20
def skip_test_if_missing_module (self ):
@@ -38,7 +39,7 @@ def run_test(self):
38
39
39
40
# All nodes should start with 1,250 BTC:
40
41
starting_balance = 1250
41
- for i in range (4 ):
42
+ for i in range (3 ):
42
43
assert_equal (self .nodes [i ].getbalance (), starting_balance )
43
44
self .nodes [i ].getnewaddress () # bug workaround, coins generated assigned to first getnewaddress!
44
45
@@ -139,5 +140,6 @@ def run_test(self):
139
140
expected -= 50
140
141
assert_equal (self .nodes [0 ].getbalance (), expected )
141
142
143
+
142
144
if __name__ == '__main__' :
143
145
TxnMallTest ().main ()
Original file line number Diff line number Diff line change 11
11
find_output ,
12
12
)
13
13
14
+
14
15
class TxnMallTest (BitcoinTestFramework ):
15
16
def set_test_params (self ):
16
- self .num_nodes = 4
17
+ self .num_nodes = 3
17
18
self .supports_cli = False
18
19
19
20
def skip_test_if_missing_module (self ):
@@ -39,7 +40,7 @@ def run_test(self):
39
40
for n in self .nodes :
40
41
assert n .getblockchaininfo ()["initialblockdownload" ] == False
41
42
42
- for i in range (4 ):
43
+ for i in range (3 ):
43
44
assert_equal (self .nodes [i ].getbalance (), starting_balance )
44
45
self .nodes [i ].getnewaddress ("" ) # bug workaround, coins generated assigned to first getnewaddress!
45
46
@@ -136,5 +137,6 @@ def run_test(self):
136
137
# Node1's balance should be its initial balance (1250 for 25 block rewards) plus the doublespend:
137
138
assert_equal (self .nodes [1 ].getbalance (), 1250 + 1240 )
138
139
140
+
139
141
if __name__ == '__main__' :
140
142
TxnMallTest ().main ()
You can’t perform that action at this time.
0 commit comments