Skip to content

Commit def32d3

Browse files
chore: consistent debug CLI identity
1 parent 764fc78 commit def32d3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/client/cli/helpers/setup.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
1923
func 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()

runtime/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.
107108
func WithPK(pk string) func(*Manager) {
108109
return func(b *Manager) {
109110
if b.config.Consensus == nil {

0 commit comments

Comments
 (0)