|
|
|
@ -28,13 +28,13 @@ void SyncWithWallets(const CTransaction& tx, const CBlock* pblock = NULL);
|
|
|
|
|
|
|
|
|
|
class CValidationInterface {
|
|
|
|
|
protected:
|
|
|
|
|
virtual void SyncTransaction(const CTransaction &tx, const CBlock *pblock) {};
|
|
|
|
|
virtual void EraseFromWallet(const uint256 &hash) {};
|
|
|
|
|
virtual void SetBestChain(const CBlockLocator &locator) {};
|
|
|
|
|
virtual void UpdatedTransaction(const uint256 &hash) {};
|
|
|
|
|
virtual void Inventory(const uint256 &hash) {};
|
|
|
|
|
virtual void ResendWalletTransactions(int64_t nBestBlockTime) {};
|
|
|
|
|
virtual void BlockChecked(const CBlock&, const CValidationState&) {};
|
|
|
|
|
virtual void SyncTransaction(const CTransaction &tx, const CBlock *pblock) {}
|
|
|
|
|
virtual void EraseFromWallet(const uint256 &hash) {}
|
|
|
|
|
virtual void SetBestChain(const CBlockLocator &locator) {}
|
|
|
|
|
virtual void UpdatedTransaction(const uint256 &hash) {}
|
|
|
|
|
virtual void Inventory(const uint256 &hash) {}
|
|
|
|
|
virtual void ResendWalletTransactions(int64_t nBestBlockTime) {}
|
|
|
|
|
virtual void BlockChecked(const CBlock&, const CValidationState&) {}
|
|
|
|
|
friend void ::RegisterValidationInterface(CValidationInterface*);
|
|
|
|
|
friend void ::UnregisterValidationInterface(CValidationInterface*);
|
|
|
|
|
friend void ::UnregisterAllValidationInterfaces();
|
|
|
|
|