From 08cad3175c110238b060ae8065201aa2f59ba8bf Mon Sep 17 00:00:00 2001 From: evoskuil Date: Tue, 7 Apr 2026 00:36:47 -0400 Subject: [PATCH] Define address_t and chase::spent/received. --- include/bitcoin/node/chase.hpp | 11 +++++++++++ include/bitcoin/node/define.hpp | 1 + 2 files changed, 12 insertions(+) diff --git a/include/bitcoin/node/chase.hpp b/include/bitcoin/node/chase.hpp index 557e3143..ed2e18b6 100644 --- a/include/bitcoin/node/chase.hpp +++ b/include/bitcoin/node/chase.hpp @@ -145,6 +145,17 @@ enum class chase /// Issued by 'confirm' [and handled by 'transaction']. reorganized, + /// Wallet. + /// ----------------------------------------------------------------------- + + /// An input spent|unspent the given address (address_t). + /// Issued by 'confirm' [and handled by services]. + spent, + + /// An address of given address received|unreceived payment (address_t). + /// Issued by 'confirm' [and handled by services]. + received, + /// Mining. /// ----------------------------------------------------------------------- diff --git a/include/bitcoin/node/define.hpp b/include/bitcoin/node/define.hpp index ac433205..3113d8d8 100644 --- a/include/bitcoin/node/define.hpp +++ b/include/bitcoin/node/define.hpp @@ -73,6 +73,7 @@ using peer_t = uint64_t; using object_t = object_key; using header_t = database::header_link::integer; using transaction_t = database::tx_link::integer; +using address_t = database::address_link::integer; /// std::variant types must be distinct, and xcode size_t is neither uint32_t /// nor uint64_t, so this ensures we have the distinct set of necessary types.