aboutsummaryrefslogtreecommitdiff
path: root/src/node/txreconciliation.h
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2022-01-11 09:34:19 +0200
committerGleb Naumenko <naumenko.gs@gmail.com>2022-10-17 12:35:44 +0300
commit36cf6bf2168f9f154a652c91bbb96480c2e1d044 (patch)
treeb6864e4421943b520937904dd1231abf9e3f2136 /src/node/txreconciliation.h
parent4470acf076289831ac60bcbafb6b3afa0e98e99d (diff)
Add helper to see if a peer is registered for reconciliations
Diffstat (limited to 'src/node/txreconciliation.h')
-rw-r--r--src/node/txreconciliation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/txreconciliation.h b/src/node/txreconciliation.h
index b8e9b649c0..1bffbea9db 100644
--- a/src/node/txreconciliation.h
+++ b/src/node/txreconciliation.h
@@ -67,6 +67,11 @@ public:
* After this, we won't be able to reconcile transactions with the peer.
*/
void ForgetPeer(NodeId peer_id);
+
+ /**
+ * Check if a peer is registered to reconcile transactions with us.
+ */
+ bool IsPeerRegistered(NodeId peer_id) const;
};
#endif // BITCOIN_NODE_TXRECONCILIATION_H