Skip to content

Commit

Permalink
add a comment so the checking of encoding the zero value might be ena…
Browse files Browse the repository at this point in the history
…bled again when ticket hyperledger#4284 is worked on

Signed-off-by: Stefan <stefan.pingel@consensys.net>
  • Loading branch information
pinges committed Aug 23, 2022
1 parent f2537f7 commit 2a6745d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public void deserializeHello() {
}

private static void assertSedesWorks(final byte[] data, final boolean encEqualsInput) {
// TODO: the boolean was added because we do encode the version number 0 as 0x00, not as 0x80
// Ticket #4284 to address the broader issue of encoding/decoding zero
final Bytes input = Bytes.wrap(data);

final PeerInfo peerInfo = PeerInfo.readFrom(RLP.input(input));
Expand Down

0 comments on commit 2a6745d

Please sign in to comment.