Browse Source

Don't remove from the relay map after a file is requested, as it may be needed by other peers.

It will be cleaned up automatically after 60 seconds, so it is best to keep the data intact until then.
block-minter-updates
CalDescent 3 years ago
parent
commit
cd5ce6dd5e
  1. 3
      src/main/java/org/qortal/controller/arbitrary/ArbitraryDataFileManager.java

3
src/main/java/org/qortal/controller/arbitrary/ArbitraryDataFileManager.java

@ -432,9 +432,6 @@ public class ArbitraryDataFileManager extends Thread {
// Forward the message to this peer
LOGGER.debug("Asking peer {} for hash {}", peerToAsk, hash58);
this.fetchArbitraryDataFile(peerToAsk, peer, signature, hash, message);
// Remove from the map regardless of outcome, as the relay attempt is now considered complete
arbitraryRelayMap.remove(hash58);
}
else {
LOGGER.debug("Peer {} not found in relay info", peer);

Loading…
Cancel
Save