mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user