Add getRoot/setRoot to interface

This commit is contained in:
Jaco Greeff
2018-09-01 23:42:55 +02:00
parent 333e19ff09
commit 3bcd45cb28
+2
View File
@@ -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;
}