Add getRoot/setRoot to interface
This commit is contained in:
@@ -34,4 +34,6 @@ export type NodeNotEmpty = NodeKv | NodeBranch;
|
||||
export type Node = NodeEmpty | NodeNotEmpty;
|
||||
|
||||
export interface TrieDb extends TxDb<Uint8Array> {
|
||||
getRoot (): Uint8Array;
|
||||
setRoot (rootHash: Uint8Array): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user