mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 11:56:31 +02:00
wallet_rpc_server: set confirmations to 0 for pending/pool txes
This commit is contained in:
parent
3b1fa543ca
commit
01efdc6a7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user