github.com/Oyster-zx/tendermint@v0.34.24-fork/mempool/tx.go (about) 1 package mempool 2 3 import ( 4 "github.com/tendermint/tendermint/p2p" 5 ) 6 7 // TxInfo are parameters that get passed when attempting to add a tx to the 8 // mempool. 9 type TxInfo struct { 10 // SenderID is the internal peer ID used in the mempool to identify the 11 // sender, storing two bytes with each transaction instead of 20 bytes for 12 // the types.NodeID. 13 SenderID uint16 14 15 // SenderP2PID is the actual p2p.ID of the sender, used e.g. for logging. 16 SenderP2PID p2p.ID 17 }