Skip to content

Commit 9e78a00

Browse files
committed
just use default states fork for encryption fork
1 parent ad385f2 commit 9e78a00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/session-state.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ module.exports = class SessionState {
2727
this.atomized = null
2828
this.mutex = new Mutex()
2929

30-
this.treeFork = -1 // only updated if truncated below dependency
31-
3230
// merkle state
3331
this.roots = treeInfo.roots.length ? treeInfo.roots : []
3432
this.fork = treeInfo.fork || 0
@@ -111,7 +109,7 @@ module.exports = class SessionState {
111109
}
112110

113111
get encryptionFork () {
114-
return this.treeFork === -1 ? this.core.header.tree.fork : this.treeFork
112+
return this.core.header.tree.fork
115113
}
116114

117115
async updateSnapshotStorage (storage) {

0 commit comments

Comments
 (0)