MCPcopy Create free account
hub / github.com/DNAProject/DNA / preExecCheck

Function preExecCheck

txnpool/proc/txnpool_actor.go:77–84  ·  view source on GitHub ↗

preExecCheck checks whether preExec pass

(txn *tx.Transaction)

Source from the content-addressed store, hash-verified

75
76// preExecCheck checks whether preExec pass
77func preExecCheck(txn *tx.Transaction) (bool, string) {
78 _, err := ledger.DefLedger.PreExecuteContract(txn)
79 if err != nil {
80 log.Debugf("preExecCheck: failed to preExecuteContract tx %x err %v",
81 txn.Hash(), err)
82 }
83 return true, ""
84}
85
86// TxnActor: Handle the low priority msg from P2P and API
87type TxActor struct {

Callers 2

cleanTransactionListMethod · 0.85
handleTransactionMethod · 0.85

Calls 3

DebugfFunction · 0.92
PreExecuteContractMethod · 0.65
HashMethod · 0.65

Tested by

no test coverage detected