Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.4.1

### Bug Fixes

- [BESU-25](https://jira.hyperledger.org/browse/BESU-25) Use v5 Devp2p when pinging [\#392](https://github.com/hyperledger/besu/pull/392)


## 1.4.0 RC-1

### Additions and Improvements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

public class PingPacketData implements PacketData {

/* Fixed value that represents we're using v4 of the P2P discovery protocol. */
private static final int VERSION = 4;
/* Fixed value that represents we're using v5 of the P2P discovery protocol. */
private static final int VERSION = 5;

/* Source. */
private final Endpoint from;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public void serializeDeserialize() {
ping.getTo().getTcpPort().ifPresent(p -> assertThat(p).isPositive());
ping.getFrom().getTcpPort().ifPresent(p -> assertThat(p).isPositive());
assertThat(ping.getExpiration()).isPositive();
break;
// because of the version upgrade the ping packet won't re-serialize, so we're done
return;

case PONG:
assertThat(packet.getPacketData(PongPacketData.class)).isPresent();
Expand Down