At the moment there is no way to tell if a send_packet event was forwarded by the middleware or not. The only clue we have is from the recv_packet transaction which contains the forward data. We could try matching it this way using the tx hash and amount. However this is not a unique identifier. For example, there can be multiple transfers of the same amount within the same transaction. I suggest that we could emit a forwarding event that ties the 2 together.
At the moment there is no way to tell if a
send_packetevent was forwarded by the middleware or not. The only clue we have is from the recv_packet transaction which contains theforwarddata. We could try matching it this way using the tx hash and amount. However this is not a unique identifier. For example, there can be multiple transfers of the same amount within the same transaction. I suggest that we could emit a forwarding event that ties the 2 together.