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
Name |
Description |
peer_id |
The peer being registered. |
is_peer_inbound |
Whether the peer's connection is inbound. |
peer_recon_version |
The reconciliation protocol version advertised by the peer. |
remote_salt |
The salt supplied by the peer for short‐ID computation. |
Created with MrDocs