Add check isWasTruncated

This commit is contained in:
chimp1984 2022-09-20 19:25:19 -05:00
parent 5a7714786c
commit 42e8e511da
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -515,9 +515,8 @@ public class P2PDataStorage implements MessageListener, ConnectionListener, Pers
// trade stats stats and all account age witness data.
// We only apply it once from first response
if (!initialRequestApplied) {
if (!initialRequestApplied || getDataResponse.isWasTruncated()) {
addPersistableNetworkPayloadFromInitialRequest(e);
}
} else {
// We don't broadcast here as we are only connected to the seed node and would be pointless