Merge pull request #6039

8ff9e6b wallet: do not warn if the rpc cost was free (moneromooo-monero)
This commit is contained in:
luigi1111 2019-10-27 16:25:03 -05:00
commit e59639addc
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

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;