|
|
@ -65,7 +65,7 @@ class EthServer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void handleGetBlockHeaders(final EthMessage message) { |
|
|
|
private void handleGetBlockHeaders(final EthMessage message) { |
|
|
|
LOG.info("Responding to GET_BLOCK_HEADERS request"); |
|
|
|
LOG.trace("Responding to GET_BLOCK_HEADERS request"); |
|
|
|
try { |
|
|
|
try { |
|
|
|
final MessageData response = |
|
|
|
final MessageData response = |
|
|
|
constructGetHeadersResponse(blockchain, message.getData(), requestLimit); |
|
|
|
constructGetHeadersResponse(blockchain, message.getData(), requestLimit); |
|
|
@ -78,7 +78,7 @@ class EthServer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void handleGetBlockBodies(final EthMessage message) { |
|
|
|
private void handleGetBlockBodies(final EthMessage message) { |
|
|
|
LOG.info("Responding to GET_BLOCK_BODIES request"); |
|
|
|
LOG.trace("Responding to GET_BLOCK_BODIES request"); |
|
|
|
try { |
|
|
|
try { |
|
|
|
final MessageData response = |
|
|
|
final MessageData response = |
|
|
|
constructGetBodiesResponse(blockchain, message.getData(), requestLimit); |
|
|
|
constructGetBodiesResponse(blockchain, message.getData(), requestLimit); |
|
|
@ -91,7 +91,7 @@ class EthServer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void handleGetReceipts(final EthMessage message) { |
|
|
|
private void handleGetReceipts(final EthMessage message) { |
|
|
|
LOG.info("Responding to GET_RECEIPTS request"); |
|
|
|
LOG.trace("Responding to GET_RECEIPTS request"); |
|
|
|
try { |
|
|
|
try { |
|
|
|
final MessageData response = |
|
|
|
final MessageData response = |
|
|
|
constructGetReceiptsResponse(blockchain, message.getData(), requestLimit); |
|
|
|
constructGetReceiptsResponse(blockchain, message.getData(), requestLimit); |
|
|
@ -104,7 +104,7 @@ class EthServer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void handleGetNodeData(final EthMessage message) { |
|
|
|
private void handleGetNodeData(final EthMessage message) { |
|
|
|
LOG.info("Responding to GET_NODE_DATA request"); |
|
|
|
LOG.trace("Responding to GET_NODE_DATA request"); |
|
|
|
try { |
|
|
|
try { |
|
|
|
final MessageData response = constructGetNodeDataResponse(message.getData(), requestLimit); |
|
|
|
final MessageData response = constructGetNodeDataResponse(message.getData(), requestLimit); |
|
|
|
message.getPeer().send(response); |
|
|
|
message.getPeer().send(response); |
|
|
|