Skip to content

Commit acad82f

Browse files
committed
Add override to functions using CValidationInterface methods
1 parent e6d5e6c commit acad82f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/net_processing.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class PeerLogicValidation : public CValidationInterface {
3030
public:
3131
PeerLogicValidation(CConnman* connmanIn);
3232

33-
virtual void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted);
34-
virtual void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload);
35-
virtual void BlockChecked(const CBlock& block, const CValidationState& state);
36-
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& pblock);
33+
void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted) override;
34+
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
35+
void BlockChecked(const CBlock& block, const CValidationState& state) override;
36+
void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& pblock) override;
3737
};
3838

3939
struct CNodeStateStats {

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ class submitblock_StateCatcher : public CValidationInterface
710710
submitblock_StateCatcher(const uint256 &hashIn) : hash(hashIn), found(false), state() {}
711711

712712
protected:
713-
virtual void BlockChecked(const CBlock& block, const CValidationState& stateIn) {
713+
void BlockChecked(const CBlock& block, const CValidationState& stateIn) override {
714714
if (block.GetHash() != hash)
715715
return;
716716
found = true;

src/zmq/zmqnotificationinterface.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class CZMQNotificationInterface : public CValidationInterface
2525
void Shutdown();
2626

2727
// CValidationInterface
28-
void TransactionAddedToMempool(const CTransactionRef& tx);
29-
void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted);
30-
void BlockDisconnected(const std::shared_ptr<const CBlock>& pblock);
31-
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload);
28+
void TransactionAddedToMempool(const CTransactionRef& tx) override;
29+
void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted) override;
30+
void BlockDisconnected(const std::shared_ptr<const CBlock>& pblock) override;
31+
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
3232

3333
private:
3434
CZMQNotificationInterface();

0 commit comments

Comments
 (0)