Use mockable time everywhere in net_processing

This commit is contained in:
Pieter Wuille committed 2020-10-08 01:04:29 -07:00
1 parent 283a73d7ea
commit ec3916f40a
3 files changed
+33 -38

No files matched your search

@@ -64,6 +64,10 @@ class ResendWalletTransactionsTest(BitcoinTestFramework):
# Transaction should be rebroadcast approximately 24 hours in the future,
# but can range from 12-36. So bump 36 hours to be sure.
node.setmocktime(now + 36 * 60 * 60)
# Tell scheduler to call MaybeResendWalletTxn now.
node.mockscheduler(1)
# Give some time for trickle to occur
node.setmocktime(now + 36 * 60 * 60 + 600)
peer_second.wait_for_broadcast([txid])