Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 6a09b6e

Browse files
committed
Update docs for checkpointTrie db override
1 parent afce5cb commit 6a09b6e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/checkpointTrie.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export class CheckpointTrie extends BaseTrie {
2929

3030
/**
3131
* Creates a checkpoint that can later be reverted to or committed.
32-
* After this is called, no changes to the trie will be permanently saved
33-
* until `commit` is called. Calling `db.put` overrides the checkpointing
34-
* mechanism and would directly write to db.
32+
* After this is called, no changes to the trie will be permanently saved until `commit` is called.
33+
* To override the checkpointing mechanism use `_maindb.put` to write directly write to db.
3534
*/
3635
checkpoint() {
3736
const wasCheckpoint = this.isCheckpoint

0 commit comments

Comments
 (0)