Skip to content

Commit

Permalink
Different error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgoStephenAkiki committed May 17, 2022
1 parent fe3fd13 commit 94f3036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,9 @@ func (node *AlgorandFullNode) InstallParticipationKey(partKeyBinary []byte) (acc
return account.ParticipationID{}, fmt.Errorf("cannot install partkey with missing state proof keys")
}

// A slightly different error message to help with debugging
if len(partkey.StateProofSecrets.GetAllKeys()) == 0 {
return account.ParticipationID{}, fmt.Errorf("cannot install partkey with missing state proof keys")
return account.ParticipationID{}, fmt.Errorf("cannot install partkey with no state proof keys")
}

if partkey.Parent == (basics.Address{}) {
Expand Down

0 comments on commit 94f3036

Please sign in to comment.