From 9e0d7241ebc5a3eebdca756c51c6fa571b3391ef Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 29 Sep 2013 11:42:25 -0700 Subject: [PATCH] Don't try to put transaction information in a fetch pack if there are no transactions in the target ledger. --- src/ripple_app/misc/NetworkOPs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple_app/misc/NetworkOPs.cpp b/src/ripple_app/misc/NetworkOPs.cpp index 5584a3287..cb2ff2128 100644 --- a/src/ripple_app/misc/NetworkOPs.cpp +++ b/src/ripple_app/misc/NetworkOPs.cpp @@ -3004,7 +3004,7 @@ void NetworkOPsImp::makeFetchPack (Job&, boost::weak_ptr wPeer, wantLedger->peekAccountStateMap ()->getFetchPack (haveLedger->peekAccountStateMap ().get (), true, 1024, BIND_TYPE (fpAppender, &reply, lSeq, P_1, P_2)); - if (wantLedger->getAccountHash ().isNonZero ()) + if (wantLedger->getTransHash ().isNonZero ()) wantLedger->peekTransactionMap ()->getFetchPack (NULL, true, 256, BIND_TYPE (fpAppender, &reply, lSeq, P_1, P_2));