We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddeac6f commit 7c591c6Copy full SHA for 7c591c6
1 file changed
core/main.go
@@ -478,7 +478,10 @@ func (egu *ExplorerGenesisUploader) extractUnbonds(genesis *api_pb.GenesisRespon
478
egu.logger.WithField("address", data.Address).Error(err)
479
continue
480
}
481
- validatorId, err := egu.validatorRepository.FindIdByPk(helpers.RemovePrefix(data.CandidateKey.Value))
+ if data.CandidateKey.GetValue() == "" {
482
+ continue
483
+ }
484
+ validatorId, err := egu.validatorRepository.FindIdByPk(helpers.RemovePrefix(data.CandidateKey.GetValue()))
485
if err != nil {
486
egu.logger.WithField("validator", data.CandidateKey.Value).Error(err)
487
0 commit comments