Skip to content

Commit 831086d

Browse files
Different error message
1 parent fe3fd13 commit 831086d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

node/node.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,9 @@ func (node *AlgorandFullNode) InstallParticipationKey(partKeyBinary []byte) (acc
905905
return account.ParticipationID{}, fmt.Errorf("cannot install partkey with missing state proof keys")
906906
}
907907

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

912913
if partkey.Parent == (basics.Address{}) {

0 commit comments

Comments
 (0)