diff options
author | Gleb Naumenko <naumenko.gs@gmail.com> | 2022-09-19 17:31:01 +0300 |
---|---|---|
committer | Gleb Naumenko <naumenko.gs@gmail.com> | 2022-10-17 12:35:43 +0300 |
commit | 3fcf78ee6ab59d1a539fdf54bbae21b5d29caea9 (patch) | |
tree | 0d4160cebca85e9eb323773b42280748cc16985a /src/protocol.h | |
parent | 24e36fac0a86aa371046470dc4f8dfed7a868fb2 (diff) |
p2p: Announce reconciliation support
If we're connecting to the peer which might support
transaction reconciliation, we announce we want to reconcile
with them.
We store the reconciliation salt so that when the peer
responds with their salt, we are able to compute the
full reconciliation salt.
This behavior is enabled with a CLI flag.
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index b85dc0d820..17a363b1d3 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -258,6 +258,14 @@ extern const char* CFCHECKPT; * @since protocol version 70016 as described by BIP 339. */ extern const char* WTXIDRELAY; +/** + * Contains 2 1-byte bools, a 4-byte version number and an 8-byte salt. + * The 2 booleans indicate that a node is willing to participate in transaction + * reconciliation, respectively as an initiator or as a receiver. + * The salt is used to compute short txids needed for efficient + * txreconciliation, as described by BIP 330. + */ +extern const char* SENDTXRCNCL; }; // namespace NetMsgType /* Get a vector of all valid message types (see above) */ |