func (db *cachingDB) CopyTrie(t Trie) Trie {
	switch t := t.(type) {
	case cachedTrie:
		return cachedTrie{t.SecureTrie.Copy(), db}
	case *trie.SecureTrie:
		return t.Copy()
	default:
		panic(fmt.Errorf("unknown trie type %T", t))
	}
}
// CopyTrie returns an independent copy of the given trie.
CopyTrie returns an independent copy of the given trie.
// CopyTrie returns an independent copy of the given trie .
func (db *cachingDB) CopyTrie(t Trie) Trie {
	switch t := t.(type) {
	case cachedTrie:
		return cachedTrie{t.SecureTrie.Copy(), db}
	case *trie.SecureTrie:
		return t.Copy()
	default:
		panic(fmt.Errorf("unknown trie type %T", t))
	}
}
func ( db * cachingDB ) CopyTrie ( t Trie ) Trie { switch t := t . ( type ) { case cachedTrie : return cachedTrie { t . SecureTrie . Copy ( ) , db } case * trie . SecureTrie : return t . Copy ( ) default : panic ( fmt . Errorf ( " " , t ) ) } }
CopyTrie returns an independent copy of the given trie.
CopyTrie returns an independent copy of the given trie .