Skip to content

Commit

Permalink
Fix maxuploadtarget.py (bitcoin#1220)
Browse files Browse the repository at this point in the history
Ever since the May152018 hardfork the minimum EB is set to 32MB, but
for this test to run in a reasonable amount of time we need to
set the EB to 1MB and also lower the mining block size as well.
  • Loading branch information
ptschip authored and gandrewstone committed Jul 27, 2018
1 parent c71e19c commit 09be893
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qa/rpc-tests/maxuploadtarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ def run_test(self):

# Test logic begins here

# Must reset these settings because since the May152018 hardfork the minimum EB is set to 32MB on startup,
# but in order for this test to run properly and in a reasonable amount of time we set these values back
# to something smaller.
self.nodes[0].setminingmaxblock(self.blockmaxsize);
self.nodes[0].setexcessiveblock(EXCESSIVE_BLOCKSIZE, 1)

# Now mine a big block
self.mine_big_block(self.nodes[0], self.nodes[0].getnewaddress())

Expand Down

0 comments on commit 09be893

Please sign in to comment.