You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
457 B

  1. package mempool
  2. import (
  3. "github.com/tendermint/tendermint/types"
  4. )
  5. // TxInfo are parameters that get passed when attempting to add a tx to the
  6. // mempool.
  7. type TxInfo struct {
  8. // SenderID is the internal peer ID used in the mempool to identify the
  9. // sender, storing two bytes with each transaction instead of 20 bytes for
  10. // the types.NodeID.
  11. SenderID uint16
  12. // SenderNodeID is the actual types.NodeID of the sender.
  13. SenderNodeID types.NodeID
  14. }