Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Sep 30, 2024
1 parent a544825 commit 098bf61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/cmd/debug/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"gitlab.com/accumulatenetwork/accumulate/pkg/api/v3/jsonrpc"
"gitlab.com/accumulatenetwork/accumulate/pkg/api/v3/message"
"gitlab.com/accumulatenetwork/accumulate/pkg/api/v3/p2p"
"gitlab.com/accumulatenetwork/accumulate/protocol"
)

var cmdCheckNode = &cobra.Command{
Expand Down Expand Up @@ -86,7 +87,7 @@ func checkNode(_ *cobra.Command, args []string) {
fmt.Printf("Peer ID:\t%v\n", ni.PeerID)
fmt.Printf("Network:\t%v\n", ni.Network)

cs, err := jc.ConsensusStatus(ctx, api.ConsensusStatusOptions{NodeID: peerID})
cs, err := jc.ConsensusStatus(ctx, api.ConsensusStatusOptions{NodeID: peerID, Partition: protocol.Directory})
check(err)
fmt.Printf("Validator:\t%x\n", cs.ValidatorKeyHash)

Expand Down

0 comments on commit 098bf61

Please sign in to comment.