wallet: do not warn if the rpc cost was free

This commit is contained in:
moneromooo-monero 2019-10-27 10:59:31 +00:00
parent b928ead30e
commit e8964c26cc
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -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;