mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue