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 #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 #3629
  • Loading branch information
julianknutsen committed Nov 21, 2019
1 parent e212240 commit 455f7d2
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 455f7d2

Please sign in to comment.