@ -72,10 +72,12 @@ func (s *PublicHarmonyAPI) GetNodeMetadata() NodeMetadata {
blockEpoch = &b
}
var blsKeys []string
blsKeys := []string{}
if cfg.ConsensusPubKey != nil {
for _, key := range cfg.ConsensusPubKey.PublicKey {
blsKeys = append(blsKeys, key.SerializeToHexStr())
return NodeMetadata{
blsKeys,
@ -71,10 +71,12 @@ func (s *PublicHarmonyAPI) GetNodeMetadata() NodeMetadata {