diff options
| author | Hennadii Stepanov <[email protected]> | 2018-10-23 22:02:20 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2019-01-03 00:10:24 +0200 |
| commit | fb3ce75807c50055a97f573fc72bf44d997ea218 (patch) | |
| tree | b45b48afbd769d16037d35cbc25dd6dd66e25342 /src/interfaces/wallet.cpp | |
| parent | Merge #14979: [Qt] Restore < Qt5.6 compatibility for addAction (diff) | |
| download | discoin-fb3ce75807c50055a97f573fc72bf44d997ea218.tar.xz discoin-fb3ce75807c50055a97f573fc72bf44d997ea218.zip | |
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.
Diffstat (limited to 'src/interfaces/wallet.cpp')
| -rw-r--r-- | src/interfaces/wallet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index 672a557d4..8db34ed75 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -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; } |