Skip to content

Commit f341ef5

Browse files
committed
chore: add nodiscard attrib to MessageProcessingResult ret functions
1 parent fb87a5a commit f341ef5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chainlock/signing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ChainLockSignerParent
3030
virtual bool HasConflictingChainLock(int nHeight, const uint256& blockHash) const = 0;
3131
virtual bool IsEnabled() const = 0;
3232
virtual bool IsTxSafeForMining(const uint256& txid) const = 0;
33-
virtual MessageProcessingResult ProcessNewChainLock(NodeId from, const ChainLockSig& clsig, const uint256& hash) = 0;
33+
[[nodiscard]] virtual MessageProcessingResult ProcessNewChainLock(NodeId from, const ChainLockSig& clsig, const uint256& hash) = 0;
3434
virtual void UpdateTxFirstSeenMap(const std::unordered_set<uint256, StaticSaltedHasher>& tx, const int64_t& time) = 0;
3535
};
3636

src/llmq/blockprocessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CQuorumBlockProcessor
5353
explicit CQuorumBlockProcessor(CChainState& chainstate, CDeterministicMNManager& dmnman, CEvoDB& evoDb,
5454
CQuorumSnapshotManager& qsnapman);
5555

56-
MessageProcessingResult ProcessMessage(const CNode& peer, std::string_view msg_type, CDataStream& vRecv);
56+
[[nodiscard]] MessageProcessingResult ProcessMessage(const CNode& peer, std::string_view msg_type, CDataStream& vRecv);
5757

5858
bool ProcessBlock(const CBlock& block, gsl::not_null<const CBlockIndex*> pindex, BlockValidationState& state, bool fJustCheck, bool fBLSChecks) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
5959
bool UndoBlock(const CBlock& block, gsl::not_null<const CBlockIndex*> pindex) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);

0 commit comments

Comments
 (0)