From 8ff9e6bc3219692f3f24ca3b0d84daa94872bbc3 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 27 Oct 2019 10:59:31 +0000 Subject: wallet: do not warn if the rpc cost was free --- src/wallet/wallet_rpc_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet_rpc_helpers.h b/src/wallet/wallet_rpc_helpers.h index 91803ff77..4291a112d 100644 --- a/src/wallet/wallet_rpc_helpers.h +++ b/src/wallet/wallet_rpc_helpers.h @@ -65,7 +65,7 @@ namespace tools rpc_payment_state.credits = post_call_credits; rpc_payment_state.expected_spent += expected_credits; - if (pre_call_credits < post_call_credits) + if (pre_call_credits <= post_call_credits) return; uint64_t cost = pre_call_credits - post_call_credits; -- cgit v1.2.3