diff options
author | fanquake <fanquake@gmail.com> | 2023-03-08 08:40:21 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-03-08 08:48:41 +0100 |
commit | 2de0559f2cb3e02881c0b1a132481fce51a18448 (patch) | |
tree | cc8e2cf1f7deb796a30a153ce7847660fee71ebe /ci/test | |
parent | d5e4f9a43952f294e165381116773d2aab00100d (diff) | |
parent | fa1b4e5c3294fc9aec033892a4a4d7b5cfc015aa (diff) |
Merge bitcoin/bitcoin#27189: util: Use steady clock in SeedStrengthen, FindBestImplementation, FlushStateToDisk
fa1b4e5c3294fc9aec033892a4a4d7b5cfc015aa Use steady clock in FlushStateToDisk (MarcoFalke)
1111e2f8b43cd9ed62dcf6b571a224b84fc421fd Use steady clock in SeedStrengthen and FindBestImplementation (MarcoFalke)
Pull request description:
There may be a theoretical deadlock for the duration of the offset when the system clock is adjusted into a past time while executing `SeedStrengthen`.
Fix this by using steady clock.
Do the same in `FindBestImplementation`, which shouldn't be affected, because it discards outlier measurements. However, doing the same there for consistency seems fine.
Do the same in `FlushStateToDisk`, which should make the flushes more steady, if the system clock is adjusted by a large offset.
ACKs for top commit:
john-moffett:
ACK fa1b4e5c3294fc9aec033892a4a4d7b5cfc015aa
willcl-ark:
ACK fa1b4e5c3
Tree-SHA512: cc625e796b186accd53222bd64eb57d0512bc7e588312d254349b542bbc5e5daac348ff2b3b3f7dc5ae0bbbae2ec11fdbf3022cf2164211633765a4b0108e83e
Diffstat (limited to 'ci/test')
-rwxr-xr-x | ci/test/06_script_b.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/test/06_script_b.sh b/ci/test/06_script_b.sh index e73ba6d31d..7d47f6651c 100755 --- a/ci/test/06_script_b.sh +++ b/ci/test/06_script_b.sh @@ -51,12 +51,14 @@ if [ "${RUN_TIDY}" = "true" ]; then " src/node/chainstate.cpp"\ " src/node/chainstatemanager_args.cpp"\ " src/node/mempool_args.cpp"\ + " src/node/minisketchwrapper.cpp"\ " src/node/utxo_snapshot.cpp"\ " src/node/validation_cache_args.cpp"\ " src/policy/feerate.cpp"\ " src/policy/packages.cpp"\ " src/policy/settings.cpp"\ " src/primitives/transaction.cpp"\ + " src/random.cpp"\ " src/rpc/fees.cpp"\ " src/rpc/signmessage.cpp"\ " src/test/fuzz/txorphan.cpp"\ |