Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CPChain/chain
/ Delete
Method
Delete
database/memdb.go:63–69 ·
view source on GitHub ↗
(key []byte)
Source
from the content-addressed store, hash-verified
61
}
62
63
func
(db *MemDatabase) Delete(key []byte) error {
64
db.rw.Lock()
65
defer
db.rw.Unlock()
66
67
delete(db.db, string(key))
68
return
nil
69
}
70
71
func
(db *MemDatabase) Close() {}
72
Callers
1
TestIncompleteStateSync
Function · 0.95
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.80
Tested by
1
TestIncompleteStateSync
Function · 0.76