File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include " instantx.h"
23
23
24
- #include " llmq/quorums_instantsend.h"
25
-
26
24
#include < stdint.h>
27
25
#include < string>
28
26
@@ -59,8 +57,8 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
59
57
}
60
58
}
61
59
62
- if (llmq::quorumInstantSendManager-> IsLocked ( wtx.GetHash () )) {
63
- strTxStatus += tr (" ( verified via LLMQ based InstantSend) " ) ;
60
+ if (wtx.IsLockedByLLMQInstantSend ( )) {
61
+ strTxStatus += " (" + tr ( " verified via LLMQ based InstantSend" ) + " ) " ;
64
62
return strTxStatus;
65
63
}
66
64
Original file line number Diff line number Diff line change @@ -5405,6 +5405,11 @@ bool CMerkleTx::IsLockedByInstantSend() const
5405
5405
return instantsend.IsLockedInstantSendTransaction (GetHash ()) || llmq::quorumInstantSendManager->IsLocked (GetHash ());
5406
5406
}
5407
5407
5408
+ bool CMerkleTx::IsLockedByLLMQInstantSend () const
5409
+ {
5410
+ return llmq::quorumInstantSendManager->IsLocked (GetHash ());
5411
+ }
5412
+
5408
5413
bool CMerkleTx::IsChainLocked () const
5409
5414
{
5410
5415
AssertLockHeld (cs_main);
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ class CMerkleTx
271
271
int GetDepthInMainChain () const { const CBlockIndex *pindexRet; return GetDepthInMainChain (pindexRet); }
272
272
bool IsInMainChain () const { const CBlockIndex *pindexRet; return GetDepthInMainChain (pindexRet) > 0 ; }
273
273
bool IsLockedByInstantSend () const ;
274
+ bool IsLockedByLLMQInstantSend () const ;
274
275
bool IsChainLocked () const ;
275
276
int GetBlocksToMaturity () const ;
276
277
/* * Pass this transaction to the mempool. Fails if absolute fee exceeds absurd fee. */
You can’t perform that action at this time.
0 commit comments