mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
Put->Set
This commit is contained in:
@@ -55,12 +55,12 @@ func (t *IAVLTree) Has(key Key) bool {
|
||||
return t.root.has(t.db, key)
|
||||
}
|
||||
|
||||
func (t *IAVLTree) Put(key Key, value Value) (updated bool) {
|
||||
func (t *IAVLTree) Set(key Key, value Value) (updated bool) {
|
||||
if t.root == nil {
|
||||
t.root = NewIAVLNode(key, value)
|
||||
return false
|
||||
}
|
||||
t.root, updated = t.root.put(t.db, key, value)
|
||||
t.root, updated = t.root.set(t.db, key, value)
|
||||
return updated
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user