Snapshots should come from the last published ledger.

This commit is contained in:
David Schwartz
2013-07-25 09:56:03 -07:00
parent 2608b56dc0
commit 6f102853f6

View File

@@ -3321,7 +3321,7 @@ Json::Value RPCHandler::doSubscribe (Json::Value params, LoadType* loadType, App
if (bSnapshot) if (bSnapshot)
{ {
Ledger::pointer lpLedger = getApp().getLedgerMaster ().getClosedLedger (); Ledger::pointer lpLedger = getApp().getLedgerMaster ().getPublishedLedger ();
const Json::Value jvMarker = Json::Value (Json::nullValue); const Json::Value jvMarker = Json::Value (Json::nullValue);
if (bBoth) if (bBoth)