mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
Compare commits
2 Commits
893822e5b0
...
f915aba568
| Author | SHA1 | Date | |
|---|---|---|---|
| f915aba568 | |||
| 1fe03bfc41 |
@ -145,8 +145,12 @@ where
|
||||
|
||||
match self.command {
|
||||
Commands::Node(command) => runner.run_command_until_exit(|ctx| {
|
||||
// NOTE: This is for one time migration around Oct 10 upgrade:
|
||||
// It's not necessary anymore, an environment variable gate is added here.
|
||||
if std::env::var("CHECK_DB_MIGRATION").is_ok() {
|
||||
Self::migrate_db(&command.chain, &command.datadir, &command.db)
|
||||
.expect("Failed to migrate database");
|
||||
}
|
||||
command.execute(ctx, FnLauncher::new::<C, Ext>(launcher))
|
||||
}),
|
||||
Commands::Init(command) => {
|
||||
|
||||
Reference in New Issue
Block a user