36
36
from random import randint
37
37
import shutil
38
38
39
- from test_framework .blocktools import COINBASE_MATURITY
39
+ from test_framework .blocktools import COINBASE_MATURITY_2
40
40
from test_framework .test_framework import DigiByteTestFramework
41
41
from test_framework .util import (
42
42
assert_equal ,
@@ -126,7 +126,7 @@ def run_test(self):
126
126
self .sync_blocks ()
127
127
self .generate (self .nodes [2 ], 1 )
128
128
self .sync_blocks ()
129
- self .generate (self .nodes [3 ], COINBASE_MATURITY )
129
+ self .generate (self .nodes [3 ], COINBASE_MATURITY_2 )
130
130
self .sync_blocks ()
131
131
132
132
assert_equal (self .nodes [0 ].getbalance (), 72000 )
@@ -155,7 +155,7 @@ def run_test(self):
155
155
self .do_one_round ()
156
156
157
157
# Generate 101 more blocks, so any fees paid mature
158
- self .generate (self .nodes [3 ], COINBASE_MATURITY + 1 )
158
+ self .generate (self .nodes [3 ], COINBASE_MATURITY_2 + 1 )
159
159
160
160
self .sync_all ()
161
161
@@ -165,9 +165,9 @@ def run_test(self):
165
165
balance3 = self .nodes [3 ].getbalance ()
166
166
total = balance0 + balance1 + balance2 + balance3
167
167
168
- # At this point, there are 214 blocks (8+3 for setup, then 10 rounds, then 8+1 .)
169
- # 22 are mature, so the sum of all wallets should be 22 * 72000 = 1,584 ,000 DGB
170
- assert_equal (total , 1584000 )
168
+ # At this point, there are 214 blocks (103 for setup, then 10 rounds, then 101 .)
169
+ # 114 are mature, so the sum of all wallets should be 114 * 72000 = 82,080 ,000.
170
+ assert_equal (total , 8208000.00000000 )
171
171
172
172
##
173
173
# Test restoring spender wallets from backups
@@ -231,4 +231,4 @@ def run_test(self):
231
231
232
232
233
233
if __name__ == '__main__' :
234
- WalletBackupTest ().main ()
234
+ WalletBackupTest ().main ()
0 commit comments