Switch some Ledger instances to ReadView instances

* Remove ltCURRENT
* Change getOwnerInfo
* Use ReadView in TransactionSign
* Change AcceptedLedger and ProposedTransaction to use ReadView
* Change RPC::accounts
This commit is contained in:
JoelKatz
2015-07-15 10:42:13 -07:00
committed by Edward Hennis
parent 2d02b46253
commit 36a62f110c
22 changed files with 126 additions and 256 deletions

View File

@@ -2022,10 +2022,6 @@ PeerImp::getLedger (std::shared_ptr<protocol::TMGetLedger> const& m)
if (p_journal_.debug) p_journal_.debug <<
"GetLedger: Don't have " << packet.ledgerseq ();
}
else if (packet.has_ltype () && (packet.ltype () == protocol::ltCURRENT))
{
ledger = getApp().getLedgerMaster ().getCurrentLedger ();
}
else if (packet.has_ltype () && (packet.ltype () == protocol::ltCLOSED) )
{
ledger = getApp().getLedgerMaster ().getClosedLedger ();