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

Method Put

database/leveldb.go:61–63  ·  view source on GitHub ↗

Put puts the given key / value to the queue

(key []byte, value []byte)

Source from the content-addressed store, hash-verified

59
60// Put puts the given key / value to the queue
61func (db *LDBDatabase) Put(key []byte, value []byte) error {
62 return db.db.Put(key, value, nil)
63}
64
65func (db *LDBDatabase) Has(key []byte) (bool, error) {
66 return db.db.Has(key, nil)

Callers

nothing calls this directly

Calls 1

PutMethod · 0.65

Tested by

no test coverage detected