File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/tron/core/net/node Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ void sendInv() {
180
180
send .forEach ((peer , ids ) ->
181
181
ids .forEach ((key , value ) -> {
182
182
if (key .equals (InventoryType .BLOCK )) {
183
- value .sort (Comparator .comparingDouble (value1 -> new BlockId (value1 ).getNum ()));
183
+ value .sort (Comparator .comparingLong (value1 -> new BlockId (value1 ).getNum ()));
184
184
}
185
185
peer .sendMessage (new InventoryMessage (value , key ));
186
186
}));
@@ -190,7 +190,7 @@ void sendFetch() {
190
190
send .forEach ((peer , ids ) ->
191
191
ids .forEach ((key , value ) -> {
192
192
if (key .equals (InventoryType .BLOCK )) {
193
- value .sort (Comparator .comparingDouble (value1 -> new BlockId (value1 ).getNum ()));
193
+ value .sort (Comparator .comparingLong (value1 -> new BlockId (value1 ).getNum ()));
194
194
}
195
195
peer .sendMessage (new FetchInvDataMessage (value , key ));
196
196
}));
You can’t perform that action at this time.
0 commit comments