Updated some wording.

This commit is contained in:
CalDescent 2021-12-15 12:16:11 +00:00
parent d6479c1390
commit 22cf870555

View File

@ -1061,18 +1061,18 @@ public class ArbitraryDataManager extends Thread {
repository.getArbitraryRepository().save(arbitraryPeerData);
repository.saveChanges();
// Remember that this data is new, so that it can be re-broadcast later
// Remember that this data is new, so that it can be rebroadcast later
containsNewEntry = true;
}
}
// If at least one signature in this batch was new to us, we should re-broadcast the message to the
// If at least one signature in this batch was new to us, we should rebroadcast the message to the
// network in case some peers haven't received it yet
if (containsNewEntry) {
LOGGER.info("Rebroadcasting arbitrary signature list for peer {}", peerAddress);
Network.getInstance().broadcast(broadcastPeer -> arbitrarySignaturesMessage);
} else {
// Don't re-broadcast as otherwise we could get into a loop
// Don't rebroadcast as otherwise we could get into a loop
}
// If anything needed saving, it would already have called saveChanges() above