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

Method ContainTransaction

validator/db/store.go:132–135  ·  view source on GitHub ↗

implement TransactionProvider interface

(hash common.Uint256)

Source from the content-addressed store, hash-verified

130
131// implement TransactionProvider interface
132func (self *Store) ContainTransaction(hash common.Uint256) bool {
133 _, err := self.GetTransactionBytes(hash)
134 return err == nil
135}
136
137func (self *Store) GetTransactionBytes(hash common.Uint256) ([]byte, error) {
138 key := GenDataTransactionKey(hash)

Callers

nothing calls this directly

Calls 1

GetTransactionBytesMethod · 0.95

Tested by

no test coverage detected