-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Voting Key generation using typescript and multi file support (#177)
feat: Native voting key generation feat: Multi voting file support feat: Improved link to support multi voting keys feat: Added updateVotingKeys command
- Loading branch information
Showing
40 changed files
with
3,308 additions
and
1,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
symbol-bootstrap link -t target/testnet-supernode --useKnownRestGateways $1 $2 $3 $4 $5 $6 $7 | ||
symbol-bootstrap link -t target/testnet-supernode --useKnownRestGateways --password 1111 $1 $2 $3 $4 $5 $6 $7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
# docker rm -f $(docker ps -aq) | ||
symbol-bootstrap stop -t target/testnet-supernode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
set -e | ||
symbol-bootstrap upgradeVotingKeys -t target/testnet-supernode $1 $2 $3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
`symbol-bootstrap updateVotingKeys` | ||
=================================== | ||
|
||
It updates the voting files containing the voting keys when required. | ||
|
||
If the node's current voting file has an end epoch close to the current network epoch, this command will create a new 'private_key_treeX.dat' that continues the current file. | ||
|
||
By default, bootstrap creates a new voting file once the current file reaches its last month. The current network epoch is resolved from the network or you can provide it with the `finalizationEpoch` param. | ||
|
||
When a new voting file is created, Bootstrap will advise running the `link` command again. | ||
|
||
* [`symbol-bootstrap updateVotingKeys`](#symbol-bootstrap-updatevotingkeys) | ||
|
||
## `symbol-bootstrap updateVotingKeys` | ||
|
||
It updates the voting files containing the voting keys when required. | ||
|
||
``` | ||
USAGE | ||
$ symbol-bootstrap updateVotingKeys | ||
OPTIONS | ||
-h, --help It shows the help of this command. | ||
-t, --target=target [default: target] The target folder where the symbol-bootstrap network is | ||
generated | ||
-u, --user=user [default: current] User used to run docker images when creating the the voting | ||
key files. "current" means the current user. | ||
--finalizationEpoch=finalizationEpoch The network's finalization epoch. It can be retrieved from the /chain/info rest | ||
endpoint. If not provided, the bootstrap known epoch is used. | ||
DESCRIPTION | ||
If the node's current voting file has an end epoch close to the current network epoch, this command will create a new | ||
'private_key_treeX.dat' that continues the current file. | ||
By default, bootstrap creates a new voting file once the current file reaches its last month. The current network | ||
epoch is resolved from the network or you can provide it with the `finalizationEpoch` param. | ||
When a new voting file is created, Bootstrap will advise running the `link` command again. | ||
EXAMPLE | ||
$ symbol-bootstrap updateVotingKeys | ||
``` | ||
|
||
_See code: [src/commands/updateVotingKeys.ts](https://github.com/nemtech/symbol-bootstrap/blob/v1.0.7/src/commands/updateVotingKeys.ts)_ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.