mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Refactor NetworkOPs:
* Reduce public API * Use LedgerMaster interface from RPC * Remove fetch pack management to LedgerMaster
This commit is contained in:
@@ -109,7 +109,7 @@ void TxnSignApiFacade::snapshotAccountState (AccountID const& accountID)
|
||||
if (!netOPs_) // Unit testing.
|
||||
return;
|
||||
|
||||
ledger_ = netOPs_->getCurrentLedger ();
|
||||
ledger_ = getApp().getLedgerMaster ().getCurrentLedger ();
|
||||
accountID_ = accountID;
|
||||
sle_ = cachedRead(*ledger_,
|
||||
keylet::account(accountID_).key, ltACCOUNT_ROOT);
|
||||
@@ -266,7 +266,7 @@ int TxnSignApiFacade::getValidatedLedgerAge () const
|
||||
if (!netOPs_) // Unit testing.
|
||||
return 0;
|
||||
|
||||
return getApp( ).getLedgerMaster ().getValidatedLedgerAge ();
|
||||
return getApp().getLedgerMaster ().getValidatedLedgerAge ();
|
||||
}
|
||||
|
||||
bool TxnSignApiFacade::isLoadedCluster () const
|
||||
|
||||
Reference in New Issue
Block a user