From f30569baab699fdbd53438e542be613e0d82225c Mon Sep 17 00:00:00 2001 From: David Schwartz Date: Thu, 25 Jul 2013 09:56:03 -0700 Subject: [PATCH] Snapshots should come from the last published ledger. --- src/cpp/ripple/RPCHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index 6149e80c74..5abb2b6241 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -3300,7 +3300,7 @@ Json::Value RPCHandler::doSubscribe (Json::Value params, LoadType* loadType, Sco if (bSnapshot) { - Ledger::pointer lpLedger = getApp().getLedgerMaster ().getClosedLedger (); + Ledger::pointer lpLedger = getApp().getLedgerMaster ().getPublishedLedger (); const Json::Value jvMarker = Json::Value (Json::nullValue); if (bBoth)