Changeset View
Changeset View
Standalone View
Standalone View
src/validationinterface.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | protected: | ||||
virtual void | virtual void | ||||
BlockConnected(const std::shared_ptr<const CBlock> &block, | BlockConnected(const std::shared_ptr<const CBlock> &block, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
const std::vector<CTransactionRef> &txnConflicted) {} | const std::vector<CTransactionRef> &txnConflicted) {} | ||||
/** Notifies listeners of a block being disconnected */ | /** Notifies listeners of a block being disconnected */ | ||||
virtual void BlockDisconnected(const std::shared_ptr<const CBlock> &block) { | virtual void BlockDisconnected(const std::shared_ptr<const CBlock> &block) { | ||||
} | } | ||||
/** Notifies listeners of the new active block chain on-disk. */ | /** Notifies listeners of the new active block chain on-disk. */ | ||||
virtual void SetBestChain(const CBlockLocator &locator) {} | virtual void ChainStateFlushed(const CBlockLocator &locator) {} | ||||
/** Notifies listeners about an inventory item being seen on the network. */ | /** Notifies listeners about an inventory item being seen on the network. */ | ||||
virtual void Inventory(const uint256 &hash) {} | virtual void Inventory(const uint256 &hash) {} | ||||
/** Tells listeners to broadcast their data. */ | /** Tells listeners to broadcast their data. */ | ||||
virtual void ResendWalletTransactions(int64_t nBestBlockTime, | virtual void ResendWalletTransactions(int64_t nBestBlockTime, | ||||
CConnman *connman) {} | CConnman *connman) {} | ||||
/** | /** | ||||
* Notifies listeners of a block validation result. | * Notifies listeners of a block validation result. | ||||
* If the provided CValidationState IsValid, the provided block | * If the provided CValidationState IsValid, the provided block | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | public: | ||||
void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, | void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, | ||||
bool fInitialDownload); | bool fInitialDownload); | ||||
void TransactionAddedToMempool(const CTransactionRef &); | void TransactionAddedToMempool(const CTransactionRef &); | ||||
void BlockConnected(const std::shared_ptr<const CBlock> &, | void BlockConnected(const std::shared_ptr<const CBlock> &, | ||||
const CBlockIndex *pindex, | const CBlockIndex *pindex, | ||||
const std::vector<CTransactionRef> &); | const std::vector<CTransactionRef> &); | ||||
void BlockDisconnected(const std::shared_ptr<const CBlock> &); | void BlockDisconnected(const std::shared_ptr<const CBlock> &); | ||||
void SetBestChain(const CBlockLocator &); | void ChainStateFlushed(const CBlockLocator &); | ||||
void Inventory(const uint256 &); | void Inventory(const uint256 &); | ||||
void Broadcast(int64_t nBestBlockTime, CConnman *connman); | void Broadcast(int64_t nBestBlockTime, CConnman *connman); | ||||
void BlockChecked(const CBlock &, const CValidationState &); | void BlockChecked(const CBlock &, const CValidationState &); | ||||
void NewPoWValidBlock(const CBlockIndex *, | void NewPoWValidBlock(const CBlockIndex *, | ||||
const std::shared_ptr<const CBlock> &); | const std::shared_ptr<const CBlock> &); | ||||
}; | }; | ||||
CMainSignals &GetMainSignals(); | CMainSignals &GetMainSignals(); | ||||
#endif // BITCOIN_VALIDATIONINTERFACE_H | #endif // BITCOIN_VALIDATIONINTERFACE_H |