-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mempool: Accept test mungers for create signed tx.
This modifies CreateSignedTx in the mempool test harness to accept munge functions similar to how NextBlock in chaingen works and updates the callers accordingly. This allows the test code to more easily mutate the transactions as desired prior to them being signed which provides greater flexibility. While here, it also sets the input amount to the proper value in the generated transaction. While there is not currently anything in the tests that relies on that value being accurate, it is more desirable to create transactions in the test code which are fully valid in case they end up being used where it does matter in future tests.
- Loading branch information
Showing
1 changed file
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters