RPC fee command checks open ledger rules (RIPD-1183):

* Matches internal getMetric() to avoid races.
This commit is contained in:
Edward Hennis
2016-05-27 18:33:49 -04:00
committed by Nik Bougalis
parent 05d98f4380
commit 7295d7f4bb
3 changed files with 50 additions and 4 deletions

View File

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