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

Commit

Permalink
Update docs for checkpointTrie db override
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed May 12, 2020
1 parent afce5cb commit 6a09b6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/checkpointTrie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ export class CheckpointTrie extends BaseTrie {

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

0 comments on commit 6a09b6e

Please sign in to comment.