-
-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: checkpoint file datastore on docker #7525
Conversation
this works on
|
@@ -13,9 +13,10 @@ const CHECKPOINT_FILE_NAME_LENGTH = 82; | |||
export class FileCPStateDatastore implements CPStateDatastore { | |||
private readonly folderPath: string; | |||
|
|||
constructor(parentDir = ".") { | |||
// by default use the beacon folder `/beacon/checkpoint_states` | |||
this.folderPath = path.join(parentDir, CHECKPOINT_STATES_FOLDER); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes, this is definitely wrong, can you re-open this branch against unstable please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this ever merged on unstable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet, we should make sure to merge changes which are definitely bugs and do not do experimental stuff, I will definitely make sure to confirm we got all important changes from holesky-rescue into unstable once the network is more stable. But generally speaking, a lot of the code changes need more review and consideration to be mergable to unstable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Motivation
Got this error on docker if we configure
chain.nHistoricalStatesFileDataStore
on docker deploymentDescription
On Docker, need the cwd is different from data folder, need to pass
dataDir
option to BeaconChain so that we can use it to store checkpoint files