File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ import (
1414 "github.com/pokt-network/pocket/shared/modules"
1515)
1616
17+ // TODO_THIS_COMMIT: add godoc comment explaining what this **is** and **is not**
18+ // intended to be used for.
19+ const debugPrivKey = "09fc8ee114e678e665d09179acb9a30060f680df44ba06b51434ee47940a8613be19b2b886e743eb1ff7880968d6ce1a46350315e569243e747a227ee8faec3d"
20+
1721// P2PDependenciesPreRunE initializes peerstore & current height providers, and a
1822// p2p module which consumes them. Everything is registered to the bus.
1923func P2PDependenciesPreRunE (cmd * cobra.Command , _ []string ) error {
@@ -28,7 +32,7 @@ func P2PDependenciesPreRunE(cmd *cobra.Command, _ []string) error {
2832 runtimeMgr := runtime .NewManagerFromFiles (
2933 flags .ConfigPath , genesisPath ,
3034 runtime .WithClientDebugMode (),
31- runtime .WithRandomPK ( ),
35+ runtime .WithPK ( debugPrivKey ),
3236 )
3337
3438 bus := runtimeMgr .GetBus ()
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ func WithRandomPK() func(*Manager) {
104104 return WithPK (privateKey .String ())
105105}
106106
107+ // TECHDEBT(#750): separate conseneus and P2P keys.
107108func WithPK (pk string ) func (* Manager ) {
108109 return func (b * Manager ) {
109110 if b .config .Consensus == nil {
You can’t perform that action at this time.
0 commit comments