use of org.ethereum.net.eth.EthVersion in project rskj by rsksmart.
the class MessageCodesResolver method init.
public void init(List<Capability> caps) {
Collections.sort(caps);
int offset = P2pMessageCodes.USER.asByte() + 1;
for (Capability capability : caps) {
if (capability.getName().equals(Capability.RSK)) {
setEthOffset(offset);
EthVersion v = fromCode(capability.getVersion());
offset += EthMessageCodes.values(v).length;
}
}
}
Aggregations