SendTx send transaction to mempool with forward logic in parachain
(tx *types.Transaction)
| 157 | |
| 158 | // SendTx send transaction to mempool with forward logic in parachain |
| 159 | func (q *QueueProtocol) SendTx(tx *types.Transaction) (*types.Reply, error) { |
| 160 | |
| 161 | cfg := q.GetConfig() |
| 162 | if types.IsForward2MainChainTx(cfg, tx) { |
| 163 | return q.send2MainChain(cfg, tx) |
| 164 | } |
| 165 | return q.Send2Mempool(tx) |
| 166 | } |
| 167 | |
| 168 | // GetTxList get transactions from mempool |
| 169 | func (q *QueueProtocol) GetTxList(param *types.TxHashList) (*types.ReplyTxList, error) { |
nothing calls this directly
no test coverage detected