mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
rpc: don't auto fail RPC needing payment in bootstrap mode
This commit is contained in:
parent
fe3f6a3e6b
commit
81c2658989
1 changed files with 5 additions and 1 deletions
|
@ -1958,7 +1958,11 @@ namespace cryptonote
|
|||
m_was_bootstrap_ever_used = true;
|
||||
}
|
||||
|
||||
r = r && res.status == CORE_RPC_STATUS_OK;
|
||||
if (r && res.status != CORE_RPC_STATUS_PAYMENT_REQUIRED && res.status != CORE_RPC_STATUS_OK)
|
||||
{
|
||||
MINFO("Failing RPC " << command_name << " due to peer return status " << res.status);
|
||||
r = false;
|
||||
}
|
||||
res.untrusted = true;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue