aboutsummaryrefslogtreecommitdiff
path: root/src/node/txreconciliation.h
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2022-11-14 11:37:28 +0200
committerGleb Naumenko <naumenko.gs@gmail.com>2022-11-14 11:37:28 +0200
commitbc84e24a4f0736919ea4a76f7d45085587625aba (patch)
tree6c76f7863275491bf8ab758222df8f194b1838d2 /src/node/txreconciliation.h
parenta60f729e293dcd11ca077b7c1c72b06119437faa (diff)
downloadbitcoin-bc84e24a4f0736919ea4a76f7d45085587625aba.tar.xz
p2p, refactor: Switch to enum class for ReconciliationRegisterResult
While doing this, add a new value: ALREADY_REGISTERED.
Diffstat (limited to 'src/node/txreconciliation.h')
-rw-r--r--src/node/txreconciliation.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/node/txreconciliation.h b/src/node/txreconciliation.h
index caaf1777e9..4591dd5df7 100644
--- a/src/node/txreconciliation.h
+++ b/src/node/txreconciliation.h
@@ -16,10 +16,11 @@ static constexpr bool DEFAULT_TXRECONCILIATION_ENABLE{false};
/** Supported transaction reconciliation protocol version */
static constexpr uint32_t TXRECONCILIATION_VERSION{1};
-enum ReconciliationRegisterResult {
- NOT_FOUND = 0,
- SUCCESS = 1,
- PROTOCOL_VIOLATION = 2,
+enum class ReconciliationRegisterResult {
+ NOT_FOUND,
+ SUCCESS,
+ ALREADY_REGISTERED,
+ PROTOCOL_VIOLATION,
};
/**