mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-30 15:35:49 +00:00
RPC fee command checks open ledger rules (RIPD-1183):
* Matches internal getMetric() to avoid races.
This commit is contained in:
committed by
Nik Bougalis
parent
05d98f4380
commit
7295d7f4bb
@@ -1151,6 +1151,7 @@ TxQ::doRPC(Application& app) const
|
||||
|
||||
auto const view = app.openLedger().current();
|
||||
auto const metrics = getMetrics(app, *view);
|
||||
assert(metrics);
|
||||
if (!metrics)
|
||||
return{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user