aboutsummaryrefslogtreecommitdiff
path: root/src/script/script_error.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2018-08-01 13:38:45 -0400
committerRussell Yanofsky <[email protected]>2020-01-09 16:05:35 -0400
commit96cb597325f64cadb3cf43e2cdb3d7c1e2e49891 (patch)
tree8541d0f8d1c98dfaf761382f1c1379533a108040 /src/script/script_error.cpp
parentMerge #16688: log: Add validation interface logging (diff)
downloaddiscoin-96cb597325f64cadb3cf43e2cdb3d7c1e2e49891.tar.xz
discoin-96cb597325f64cadb3cf43e2cdb3d7c1e2e49891.zip
gui: Avoid redundant tx status updates
In TransactionTablePriv::index, avoid calling interfaces::Wallet::tryGetTxStatus if the status is up to date as of the most recent NotifyBlockTip notification. Store height from the most recent notification in a new ClientModel::cachedNumBlocks variable in order to check this. This avoids floods of IPC traffic from tryGetTxStatus with #10102 when there are a lot of transactions. It might also make the GUI a little more efficient even when there is no IPC.
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions