mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 19:46:39 +00:00
trie: fixed tests
This commit is contained in:
parent
c590b505ed
commit
a40a91d60f
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import (
|
||||||
type Db map[string][]byte
|
type Db map[string][]byte
|
||||||
|
|
||||||
func (self Db) Get(k []byte) ([]byte, error) { return self[string(k)], nil }
|
func (self Db) Get(k []byte) ([]byte, error) { return self[string(k)], nil }
|
||||||
func (self Db) Put(k, v []byte) { self[string(k)] = v }
|
func (self Db) Put(k, v []byte) error { self[string(k)] = v; return nil }
|
||||||
|
|
||||||
// Used for testing
|
// Used for testing
|
||||||
func NewEmpty() *Trie {
|
func NewEmpty() *Trie {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue