diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-09-23 13:54:21 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-09-30 06:38:47 -0400 |
commit | 4d8f4dcb450d31e4847804e62bf91545b949fa14 (patch) | |
tree | 969db62e4210a1fdf9eeceeb39e4c2755cad051d /src/interfaces | |
parent | 1e59acdf17309f567c370885f0cf02605e2baa58 (diff) | |
download | bitcoin-4d8f4dcb450d31e4847804e62bf91545b949fa14.tar.xz |
validation: pass ChainstateRole for validationinterface calls
This allows consumers to decide how to handle events from background or
assumedvalid chainstates.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/chain.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index b5243725ad..dea868f844 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -27,6 +27,7 @@ class Coin; class uint256; enum class MemPoolRemovalReason; enum class RBFTransactionState; +enum class ChainstateRole; struct bilingual_str; struct CBlockLocator; struct FeeCalculation; @@ -310,10 +311,10 @@ public: virtual ~Notifications() {} virtual void transactionAddedToMempool(const CTransactionRef& tx) {} virtual void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason) {} - virtual void blockConnected(const BlockInfo& block) {} + virtual void blockConnected(ChainstateRole role, const BlockInfo& block) {} virtual void blockDisconnected(const BlockInfo& block) {} virtual void updatedBlockTip() {} - virtual void chainStateFlushed(const CBlockLocator& locator) {} + virtual void chainStateFlushed(ChainstateRole role, const CBlockLocator& locator) {} }; //! Register handler for notifications. |