Skip to content

Commit

Permalink
Remove unused public method from world state interface
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Aug 6, 2024
1 parent 941762b commit 6b64d52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ServerWorldStateSynchronizer implements WorldStateSynchronizer {
return new MerkleTreeSnapshotOperationsFacade(this.merkleTreeDb, blockNumber);
}

public async getFork(includeUncommitted: boolean): Promise<MerkleTreeOperationsFacade> {
private async getFork(includeUncommitted: boolean): Promise<MerkleTreeOperationsFacade> {
this.log.verbose(`Forking world state at ${this.blockNumber.get()}`);
return new MerkleTreeOperationsFacade(await this.merkleTreeDb.fork(), includeUncommitted);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,4 @@ export interface WorldStateSynchronizer {
* @returns An instance of MerkleTreeOperations
*/
getSnapshot(block: number): MerkleTreeOperations;

/**
* Returns a writeable fork of the MerkleTreeOperations from the current state.
* @param includeUncommitted - Whether to include uncommitted data.
*/
getFork(includeUncommitted: boolean): Promise<MerkleTreeOperations>;
}

0 comments on commit 6b64d52

Please sign in to comment.