aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-16 11:48:05 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-01 16:03:17 +0000
commit01efdc6a7e5fb541a779a06e0158c2c8b8f811b3 (patch)
tree13ac1bb8b4483c86429d8607a21a671973a2471a /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #5329 (diff)
downloadmonero-01efdc6a7e5fb541a779a06e0158c2c8b8f811b3.tar.xz
wallet_rpc_server: set confirmations to 0 for pending/pool txes
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index f80263007..5c95d94bb 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -85,7 +85,7 @@ namespace
//------------------------------------------------------------------------------------------------------------------------------
void set_confirmations(tools::wallet_rpc::transfer_entry &entry, uint64_t blockchain_height, uint64_t block_reward)
{
- if (entry.height >= blockchain_height)
+ if (entry.height >= blockchain_height || (entry.height == 0 && (!strcmp(entry.type.c_str(), "pending") || !strcmp(entry.type.c_str(), "pool"))))
{
entry.confirmations = 0;
entry.suggested_confirmations_threshold = 0;