Skip to content

Commit 1951a27

Browse files
feat: add GetConfirmedHeight method to CoinJoin class
This commit introduces a new method, GetConfirmedHeight, to the CoinJoin class, allowing retrieval of the confirmed height. This addition enhances the functionality of the CoinJoin module, providing better access to transaction state information.
1 parent 0e154f7 commit 1951a27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coinjoin/coinjoin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ class CCoinJoinBroadcastTx
287287
bool Sign(const CActiveMasternodeManager& mn_activeman);
288288
[[nodiscard]] bool CheckSignature(const CBLSPublicKey& blsPubKey) const;
289289

290+
[[nodiscard]] std::optional<int> GetConfirmedHeight() const { return nConfirmedHeight; }
290291
void SetConfirmedHeight(std::optional<int> nConfirmedHeightIn) { assert(nConfirmedHeightIn == std::nullopt || *nConfirmedHeightIn > 0); nConfirmedHeight = nConfirmedHeightIn; }
291292
bool IsExpired(const CBlockIndex* pindex, const llmq::CChainLocksHandler& clhandler) const;
292293
[[nodiscard]] bool IsValidStructure() const;

0 commit comments

Comments
 (0)