github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/txpool/orgchain/tx_pool_common.go (about)

     1  package orgchain
     2  
     3  import (
     4  	"github.com/sixexorg/magnetic-ring/common"
     5  	"github.com/sixexorg/magnetic-ring/core/orgchain/types"
     6  )
     7  
     8  type TxReq struct {
     9  	Tx       *types.Transaction
    10  	RespChan chan *TxResp
    11  }
    12  
    13  type TxResp struct {
    14  	Hash common.Hash `json:"hash"`
    15  	Desc string `json:"desc"`
    16  }
    17  
    18  type MustPackTxsReq struct {
    19  	Txs []*types.Transaction
    20  }