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