mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +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
|
|
@ -193,8 +193,9 @@ public:
|
|||
// simply re-use the cached status.
|
||||
interfaces::WalletTxStatus wtx;
|
||||
int numBlocks;
|
||||
if (wallet.tryGetTxStatus(rec->hash, wtx, numBlocks) && rec->statusUpdateNeeded(numBlocks)) {
|
||||
rec->updateStatus(wtx, numBlocks);
|
||||
int64_t block_time;
|
||||
if (wallet.tryGetTxStatus(rec->hash, wtx, numBlocks, block_time) && rec->statusUpdateNeeded(numBlocks)) {
|
||||
rec->updateStatus(wtx, numBlocks, block_time);
|
||||
}
|
||||
return rec;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue