MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / addTx

Method addTx

blockproducer/chain.go:489–495  ·  view source on GitHub ↗
(req *types.AddTxReq)

Source from the content-addressed store, hash-verified

487}
488
489func (c *Chain) addTx(req *types.AddTxReq) {
490 select {
491 case c.pendingAddTxReqs <- req:
492 case <-c.ctx.Done():
493 log.WithError(c.ctx.Err()).Warn("add transaction aborted")
494 }
495}
496
497func (c *Chain) processAddTxReq(addTxReq *types.AddTxReq) {
498 // Nil check

Callers 3

TestChainFunction · 0.45
storeTxMethod · 0.45
AddTxMethod · 0.45

Calls 2

WithErrorFunction · 0.92
WarnMethod · 0.80

Tested by 1

TestChainFunction · 0.36