mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Don't label transactions "Open" while catching up
Since the default `nSequence` is `0xFFFFFFFE` and locktime is enabled, the checking `wtx.is_final` is meaningless until the syncing has completed.
This commit is contained in:
parent
bfd7e54097
commit
fb3ce75807
7 changed files with 27 additions and 14 deletions
|
|
@ -318,7 +318,8 @@ public:
|
|||
}
|
||||
bool tryGetTxStatus(const uint256& txid,
|
||||
interfaces::WalletTxStatus& tx_status,
|
||||
int& num_blocks) override
|
||||
int& num_blocks,
|
||||
int64_t& block_time) override
|
||||
{
|
||||
auto locked_chain = m_wallet.chain().lock(true /* try_lock */);
|
||||
if (!locked_chain) {
|
||||
|
|
@ -333,6 +334,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
num_blocks = ::chainActive.Height();
|
||||
block_time = ::chainActive.Tip()->GetBlockTime();
|
||||
tx_status = MakeWalletTxStatus(*locked_chain, mi->second);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue