mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 5c0cd205a1 into merged_master (Bitcoin PR bitcoin/bitcoin#29625)
This commit is contained in:
parent
e35c518374
commit
8d69f4b94d
44 changed files with 742 additions and 567 deletions
|
|
@ -720,7 +720,7 @@ void CTxMemPool::check(const CBlockIndex* active_chain_tip, const CCoinsViewCach
|
|||
{
|
||||
if (m_opts.check_ratio == 0) return;
|
||||
|
||||
if (GetRand(m_opts.check_ratio) >= 1) return;
|
||||
if (FastRandomContext().randrange(m_opts.check_ratio) >= 1) return;
|
||||
|
||||
AssertLockHeld(::cs_main);
|
||||
LOCK(cs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue