Browse Source

update pong encoding

cl-refactor
subtly 10 years ago
parent
commit
c84d5f30bb
  1. 4
      libp2p/NodeTable.h

4
libp2p/NodeTable.h

@ -330,8 +330,8 @@ struct Pong: RLPXDatagram<Pong>
h256 echo; ///< MCD of PingNode
uint32_t ts = 0;
void streamRLP(RLPStream& _s) const { _s.appendList(2); _s << echo << ts; }
void interpretRLP(bytesConstRef _bytes) { RLP r(_bytes); echo = (h256)r[0]; ts = r[1].toInt<uint32_t>(); }
void streamRLP(RLPStream& _s) const { _s.appendList(3); destination.streamRLP(_s); _s << echo << ts; }
void interpretRLP(bytesConstRef _bytes) { RLP r(_bytes); destination.interpretRLP(r[0]); echo = (h256)r[1]; ts = r[2].toInt<uint32_t>(); }
};
/**

Loading…
Cancel
Save