We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc4025 commit bf3be52Copy full SHA for bf3be52
test/functional/feature_block.py
@@ -486,6 +486,14 @@ def run_test(self):
486
tx_last = tx_new
487
b39_outputs += 1
488
489
+ # The accounting in the loop above can be off, because it misses the
490
+ # compact size encoding of the number of transactions in the block.
491
+ # Make sure we didn't accidentally make too big a block. Note that the
492
+ # size of the block has non-determinism due to the ECDSA signature in
493
+ # the first transaction.
494
+ while (len(b39.serialize()) >= MAX_BLOCK_BASE_SIZE):
495
+ del b39.vtx[-1]
496
+
497
b39 = self.update_block(39, [])
498
self.send_blocks([b39], True)
499
self.save_spendable_output()
0 commit comments