Skip to content

Commit

Permalink
chore: add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Apr 17, 2024
1 parent 4553da6 commit 799b089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class FIFOBlockStateCache implements BlockStateCache {
}

/**
* Get a seed state for state reload.
* Get a seed state for state reload, this could be any states. The goal is to have the same
* base merkle tree for all BeaconState objects across application.
* See packages/state-transition/src/util/loadState/loadState.ts for more detail
*/
getSeedState(): CachedBeaconStateAllForks {
const firstValue = this.cache.values().next();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class StateContextCache implements BlockStateCache {
/**
* Get a seed state for state reload.
* This is to conform to the api only as this cache is not used in n-historical state.
* See ./fifoBlockStateCache.ts for implementation
*/
getSeedState(): CachedBeaconStateAllForks {
throw Error("Not implemented for StateContextCache");
Expand Down

0 comments on commit 799b089

Please sign in to comment.