@@ -63,7 +63,7 @@ def run_test(self):
63
63
64
64
# generate some btc to create transactions and check blockcount
65
65
initial_mine = COINBASE_MATURITY + 1
66
- minernode .generatetoaddress (initial_mine , m1 )
66
+ self .generatetoaddress (minernode , initial_mine , m1 )
67
67
assert_equal (minernode .getblockcount (), initial_mine + 200 )
68
68
69
69
# synchronize nodes and time
@@ -76,7 +76,7 @@ def run_test(self):
76
76
miner_wallet .sendtoaddress (wo1 , 10 )
77
77
78
78
# generate blocks and check blockcount
79
- minernode .generatetoaddress (COINBASE_MATURITY , m1 )
79
+ self .generatetoaddress (minernode , COINBASE_MATURITY , m1 )
80
80
assert_equal (minernode .getblockcount (), initial_mine + 300 )
81
81
82
82
# synchronize nodes and time
@@ -89,7 +89,7 @@ def run_test(self):
89
89
miner_wallet .sendtoaddress (wo2 , 5 )
90
90
91
91
# generate blocks and check blockcount
92
- minernode .generatetoaddress (COINBASE_MATURITY , m1 )
92
+ self .generatetoaddress (minernode , COINBASE_MATURITY , m1 )
93
93
assert_equal (minernode .getblockcount (), initial_mine + 400 )
94
94
95
95
# synchronize nodes and time
@@ -102,7 +102,7 @@ def run_test(self):
102
102
miner_wallet .sendtoaddress (wo3 , 1 )
103
103
104
104
# generate more blocks and check blockcount
105
- minernode .generatetoaddress (COINBASE_MATURITY , m1 )
105
+ self .generatetoaddress (minernode , COINBASE_MATURITY , m1 )
106
106
assert_equal (minernode .getblockcount (), initial_mine + 500 )
107
107
108
108
self .log .info ('Check user\' s final balance and transaction count' )
0 commit comments