Don't try to put transaction information in a fetch pack if there are no transactions in the target ledger.

This commit is contained in:
JoelKatz
2013-09-29 11:42:25 -07:00
parent 191e76a558
commit 9e0d7241eb

View File

@@ -3004,7 +3004,7 @@ void NetworkOPsImp::makeFetchPack (Job&, boost::weak_ptr<Peer> 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));