TxReconciliationTracker::RegisterPeer

Step 0. Once the peer agreed to reconcile txs with us, generate the state required to track ongoing reconciliations. Must be called only after pre-registering the peer and only once.

Synopsis

Declared in <node/txreconciliation.h>

ReconciliationRegisterResult
RegisterPeer(
    NodeId peer_id,
    bool is_peer_inbound,
    uint32_t peer_recon_version,
    uint64_t remote_salt);

Return Value

The result of the registration attempt.

Parameters

NameDescription
peer_idThe peer being registered.
is_peer_inboundWhether the peer's connection is inbound.
peer_recon_versionThe reconciliation protocol version advertised by the peer.
remote_saltThe salt supplied by the peer for short-ID computation.