Enable Static Peer ID (#12220)

* static peer id

* kasey's review
This commit is contained in:
Nishant Das
2023-04-01 08:00:11 +08:00
committed by GitHub
parent 8d001d49d4
commit 17cfc60bdd
7 changed files with 64 additions and 8 deletions

View File

@@ -144,6 +144,11 @@ var (
Usage: "The file containing the private key to use in communications with other peers.",
Value: "",
}
P2PStaticID = &cli.BoolFlag{
Name: "p2p-static-id",
Usage: "Enables the peer id of the node to be fixed by saving the generated network key to the default key path.",
Value: false,
}
// P2PMetadata defines a flag to specify the location of the peer metadata file.
P2PMetadata = &cli.StringFlag{
Name: "p2p-metadata",