Skip to content

Commit

Permalink
[BUGFIX] Use 32-byte key in requestData path
Browse files Browse the repository at this point in the history
Addresses the second half of bisq-network#3629 by using the HashMap, not the
protectedDataStore to generate the known keys in the requestData path.

This won't have any bandwidth reduction until all seednodes have the
update and only have the 32-byte key in their HashMap.

fixes bisq-network#3629
  • Loading branch information
julianknutsen committed Nov 19, 2019
1 parent ed99fe0 commit e18d801
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void requestData(NodeAddress nodeAddress, boolean isPreliminaryDataRequest) {
.map(e -> e.bytes)
.collect(Collectors.toSet());

Set<byte[]> excludedKeysFromPersistedEntryMap = dataStorage.getProtectedDataStoreMap().keySet()
Set<byte[]> excludedKeysFromPersistedEntryMap = dataStorage.getMap().keySet()
.stream()
.map(e -> e.bytes)
.collect(Collectors.toSet());
Expand Down

0 comments on commit e18d801

Please sign in to comment.