@Test void nodeId() { HelloMessage msg = HelloMessage.create(Bytes.fromHexString("deadbeef"), 10000, 3, "blah", Collections.emptyList()); HelloMessage msgRead = HelloMessage.read(msg.toBytes()); assertEquals(Bytes.fromHexString("deadbeef"), msgRead.nodeId()); }
Bytes nodeId() { return nodeId; }
HelloMessage implements WireProtocolMessage { Bytes nodeId() { return nodeId; } }
HelloMessage implements WireProtocolMessage { Bytes nodeId() { return nodeId; } private  HelloMessage(Bytes nodeId, int listenPort, String clientId, int p2pVersion, List<Capability> capabilities); }
HelloMessage implements WireProtocolMessage { Bytes nodeId() { return nodeId; } private  HelloMessage(Bytes nodeId, int listenPort, String clientId, int p2pVersion, List<Capability> capabilities); @Override Bytes toBytes(); @Override int messageType(); int p2pVersion(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
HelloMessage implements WireProtocolMessage { Bytes nodeId() { return nodeId; } private  HelloMessage(Bytes nodeId, int listenPort, String clientId, int p2pVersion, List<Capability> capabilities); @Override Bytes toBytes(); @Override int messageType(); int p2pVersion(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }