aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/wallet.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-07-26 23:33:16 +0200
committerpracticalswift <[email protected]>2018-07-26 23:33:16 +0200
commitaecd615ad7b78b953e91feb4d6fee696cad8e53c (patch)
tree121f36902c3046abd35365e9cf1709334d74a0c5 /src/interfaces/wallet.cpp
parentMerge #13423: [net] Thread safety annotations in net_processing (diff)
downloaddiscoin-aecd615ad7b78b953e91feb4d6fee696cad8e53c.tar.xz
discoin-aecd615ad7b78b953e91feb4d6fee696cad8e53c.zip
wallet: Fix accidental use of the comma operator
Diffstat (limited to 'src/interfaces/wallet.cpp')
-rw-r--r--src/interfaces/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp
index 28081c7c2..55a6f771e 100644
--- a/src/interfaces/wallet.cpp
+++ b/src/interfaces/wallet.cpp
@@ -90,7 +90,7 @@ WalletTxStatus MakeWalletTxStatus(const CWalletTx& wtx)
WalletTxStatus result;
auto mi = ::mapBlockIndex.find(wtx.hashBlock);
CBlockIndex* block = mi != ::mapBlockIndex.end() ? mi->second : nullptr;
- result.block_height = (block ? block->nHeight : std::numeric_limits<int>::max()),
+ result.block_height = (block ? block->nHeight : std::numeric_limits<int>::max());
result.blocks_to_maturity = wtx.GetBlocksToMaturity();
result.depth_in_main_chain = wtx.GetDepthInMainChain();
result.time_received = wtx.nTimeReceived;