MCPcopy Create free account
hub / github.com/33cn/chain33 / SendTx

Method SendTx

client/queueprotocol.go:159–166  ·  view source on GitHub ↗

SendTx send transaction to mempool with forward logic in parachain

(tx *types.Transaction)

Source from the content-addressed store, hash-verified

157
158// SendTx send transaction to mempool with forward logic in parachain
159func (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
169func (q *QueueProtocol) GetTxList(param *types.TxHashList) (*types.ReplyTxList, error) {

Callers

nothing calls this directly

Calls 4

GetConfigMethod · 0.95
send2MainChainMethod · 0.95
Send2MempoolMethod · 0.95
IsForward2MainChainTxFunction · 0.92

Tested by

no test coverage detected