MCPcopy Create free account
hub / github.com/CPChain/chain / Has

Method Has

database/leveldb.go:158–160  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

156}
157
158func (dt *table) Has(key []byte) (bool, error) {
159 return dt.db.Has(append([]byte(dt.prefix), key...))
160}
161
162func (dt *table) Get(key []byte) ([]byte, error) {
163 return dt.db.Get(append([]byte(dt.prefix), key...))

Callers

nothing calls this directly

Calls 1

HasMethod · 0.65

Tested by

no test coverage detected