Merge 5c0cd205a1 into merged_master (Bitcoin PR bitcoin/bitcoin#29625)

This commit is contained in:
ivanlele 2026-03-03 15:43:14 +00:00
parent e35c518374
commit 8d69f4b94d
No known key found for this signature in database
44 changed files with 742 additions and 567 deletions

View file

@ -25,6 +25,7 @@
#include <policy/policy.h>
#include <node/warnings.h>
#include <pow.h>
#include <random.h>
#include <rpc/blockchain.h>
#include <rpc/mining.h>
#include <rpc/server.h>
@ -1388,7 +1389,7 @@ static RPCHelpMan getcompactsketch()
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Cannot obtain sketch of empty block.");
}
uint64_t nonce = GetRand<uint64_t>();
uint64_t nonce = FastRandomContext().rand64();
CBlockHeaderAndShortTxIDs cmpctblock(block, nonce);
DataStream ssCompactBlock;