Skip to content

Commit

Permalink
write lock
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Aug 20, 2024
1 parent 2f6ec67 commit 33f7a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ helixbridge
--group=mainnet
--datadir=/path/to/config
--accept
--write-lock
encrypt encrypt a private key
helixbridge encrypt
Expand Down
3 changes: 2 additions & 1 deletion src/register/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ async function handle(options) {
break;
}

await ensureLock(ensureLockOptions, accepted);
const ensureLock = arg.option('write-lock');
await ensureLock(ensureLockOptions, ensureLock === undefined);
console.log(chalk.green(`the bridge ${_identifyRegisterName(register)} registered`));
}

Expand Down

0 comments on commit 33f7a0b

Please sign in to comment.