Skip to content

Commit

Permalink
Merge #2881: [TEST] Fix random fee generation
Browse files Browse the repository at this point in the history
7203d91 Fix random fee generation (panleone)

Pull request description:

  The librustzcash update (PR #2870) made shield txs slightly increase in size, this led the functional test feature_blockindexstats.py to fail when the (random) generated fee is too low. With this PR I simply increase the minimum generated fee in order to avoid the issue.

ACKs for top commit: 7203d91
  Liquid369:
    ACK 7203d91
  Fuzzbawls:
    ACK 7203d91

Tree-SHA512: 2a30271dbe6a72b95aefc5a0fd6bc1a3a03710247a547842f56f9ebc6c3446439ff33d4cef6d909bd0d648e72dd80e2c36e5cb55287573232572fe5024b1aa3c
  • Loading branch information
Fuzzbawls committed Sep 13, 2023
2 parents 0ab665d + 7203d91 commit 6829cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/feature_blockindexstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def run_test(self):
for _ in range(NUM_BLOCKS):
# 1...4=(t->t) 5=(t->z) 6=(z->t) 7=(z->z)
tx_kind = random.randint(1, 7)
fee = round(0.0001 * random.randint(3, 50), 8)
fee = round(0.0001 * random.randint(5, 50), 8)
if tx_kind < 5:
# transparent tx
self.log.info("Sending t->t with fee %.8f" % fee)
Expand Down

0 comments on commit 6829cfd

Please sign in to comment.