mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-27 03:00:28 +00:00
EthereumListener update (addition)
This commit is contained in:
parent
7db4d0892f
commit
9f35988869
@ -344,19 +344,19 @@ public class EthereumProtocolHandler extends ChannelInboundHandlerAdapter {
|
||||
}
|
||||
|
||||
private void sendPing() {
|
||||
msgQueue.sendMessage(PING_MESSAGE);
|
||||
sendMsg(PING_MESSAGE);
|
||||
}
|
||||
|
||||
private void sendPong() {
|
||||
msgQueue.sendMessage(PONG_MESSAGE);
|
||||
sendMsg(PONG_MESSAGE);
|
||||
}
|
||||
|
||||
private void sendGetPeers() {
|
||||
msgQueue.sendMessage(GET_PEERS_MESSAGE);
|
||||
sendMsg(GET_PEERS_MESSAGE);
|
||||
}
|
||||
|
||||
private void sendGetTransactions() {
|
||||
msgQueue.sendMessage(GET_TRANSACTIONS_MESSAGE);
|
||||
sendMsg(GET_TRANSACTIONS_MESSAGE);
|
||||
}
|
||||
|
||||
private void sendGetChain() {
|
||||
@ -370,6 +370,6 @@ public class EthereumProtocolHandler extends ChannelInboundHandlerAdapter {
|
||||
byte[] hash = lastBlock.getHash();
|
||||
GetChainMessage chainMessage =
|
||||
new GetChainMessage( SystemProperties.CONFIG.maxBlocksAsk(), hash);
|
||||
msgQueue.sendMessage(chainMessage);
|
||||
sendMsg(chainMessage);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user