-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
System information
Java-tron version: v4.7.2
OS & Version: Linux & macOS
Expected behavior
The FETCH_INV_DATA message from the peer should be successfully processed.
Actual behavior
When processing the FETCH_INV_DATA message, it was found that the transaction hash requested by the Peer was not in the broadcast list cache of the Peer, so a not spread inv exception was reported.
The log is as follows:
==============
服务器IP: 3.0.79.203
log-time: 2023-07-05T02:22:30.343Z
-------------------------------------
02:22:29.770 ERROR [nioEventLoopGroup-6-4] [net](P2pEventHandlerImpl.java:253) Message from /170.187.189.31:53284 process failed, type: FETCH_INV_DATA
invType: TRX, size: 3, First hash: 1ec914af1d51a99ddb628a7e154dd0bf603ce8c6c9d81b68c1773b67130f85be, End hash: 5df9ac23f764232779628eb993d7cd515cf3d1ca3b2edd471cee7e3a1aa6bfdf
type: (4, bad message)
org.tron.core.exception.P2pException: not spread inv: 1ec914af1d51a99ddb628a7e154dd0bf603ce8c6c9d81b68c1773b67130f85be
at org.tron.core.net.messagehandler.FetchInvDataMsgHandler.check(FetchInvDataMsgHandler.java:136)
at org.tron.core.net.messagehandler.FetchInvDataMsgHandler.processMessage(FetchInvDataMsgHandler.java:58)
at org.tron.core.net.P2pEventHandlerImpl.processMessage(P2pEventHandlerImpl.java:193)
at org.tron.core.net.P2pEventHandlerImpl.onMessage(P2pEventHandlerImpl.java:139)
at org.tron.p2p.connection.ChannelManager.handMessage(ChannelManager.java:216)
at org.tron.p2p.connection.ChannelManager.processMessage(ChannelManager.java:173)
at org.tron.p2p.connection.socket.MessageHandler.decode(MessageHandler.java:49)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
Is Peer a normal node?
The node interaction process was normal. It took 449s from establishment to disconnection. The log is as follows.
Is the transaction normal?
The transaction 1ec914af1d51a99ddb628a7e154dd0bf603ce8c6c9d81b68c1773b67130f85be requested by Peer was a normal transaction, the transaction had been packaged in the block at 10:20:12, and the time requested by Peer was 10:22:29, which was delayed by 2 minutes and 15 seconds.
