mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 43bb106613 into merged_master (Bitcoin PR bitcoin/bitcoin#24213)
This commit is contained in:
commit
f86857195f
16 changed files with 33 additions and 31 deletions
|
|
@ -4536,7 +4536,7 @@ void PeerManagerImpl::MaybeSendPing(CNode& node_to, Peer& peer, std::chrono::mic
|
|||
if (pingSend) {
|
||||
uint64_t nonce = 0;
|
||||
while (nonce == 0) {
|
||||
GetRandBytes((unsigned char*)&nonce, sizeof(nonce));
|
||||
GetRandBytes({(unsigned char*)&nonce, sizeof(nonce)});
|
||||
}
|
||||
peer.m_ping_queued = false;
|
||||
peer.m_ping_start = now;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue