Make Rules available outside of Transactors (RIPD-182):

Allows multisign to be enabled with a Feature.
This commit is contained in:
Scott Schurr
2015-08-13 15:13:23 -07:00
parent f1c29ae20b
commit 9b15c88b0e
2 changed files with 15 additions and 0 deletions

View File

@@ -1376,6 +1376,18 @@ public:
return mValidLedger.get ();
}
Rules getValidatedRules ()
{
// Once we have a guarantee that there's always a last validated
// ledger then we can dispense with the if.
// Return the Rules from the last validated ledger.
if (auto const ledger = getValidatedLedger())
return ledger->rules();
return Rules();
}
// This is the last ledger we published to clients and can lag the validated
// ledger.
Ledger::ref getPublishedLedger ()