TxReconciliationTracker::PreRegisterPeer

Step 0. Generates initial part of the state (salt) required to reconcile txs with the peer. The salt is used for short ID computation required for txreconciliation. The function returns the salt. A peer can't participate in future txreconciliations without this call. This function must be called only once per peer.

Synopsis

Declared in <node/txreconciliation.h>

uint64_t
PreRegisterPeer(NodeId peer_id);

Return Value

The locally generated salt for short-ID computation with this peer.

Parameters

NameDescription
peer_idThe peer being pre-registered.