[#TxReconciliationTracker-RegisterPeer]
= xref:TxReconciliationTracker.adoc[TxReconciliationTracker]::RegisterPeer
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;node&sol;txreconciliation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ReconciliationRegisterResult.adoc[ReconciliationRegisterResult]
RegisterPeer(
    xref:NodeId-08.adoc[NodeId] peer&lowbar;id,
    bool is&lowbar;peer&lowbar;inbound,
    uint32&lowbar;t peer&lowbar;recon&lowbar;version,
    uint64&lowbar;t remote&lowbar;salt);
----

== Return Value

The result of the registration attempt&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer&lowbar;id*
| The peer being registered&period;
| *is&lowbar;peer&lowbar;inbound*
| Whether the peer&apos;s connection is inbound&period;
| *peer&lowbar;recon&lowbar;version*
| The reconciliation protocol version advertised by the peer&period;
| *remote&lowbar;salt*
| The salt supplied by the peer for short&hyphen;ID computation&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
