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

Method Has

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

Source from the content-addressed store, hash-verified

63}
64
65func (db *LDBDatabase) Has(key []byte) (bool, error) {
66 return db.db.Has(key, nil)
67}
68
69// Get returns the given key if it's present.
70func (db *LDBDatabase) Get(key []byte) ([]byte, error) {

Callers

nothing calls this directly

Calls 1

HasMethod · 0.65

Tested by

no test coverage detected