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:
Hennadii Stepanov
2018-10-23 22:02:20 +03:00
parent bfd7e54097
commit fb3ce75807
7 changed files with 27 additions and 14 deletions

View File

@@ -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;
}