|
|
|
@ -47,7 +47,7 @@ func (s *PublicHarmonyAPI) GasPrice(ctx context.Context) (*hexutil.Big, error) { |
|
|
|
|
|
|
|
|
|
// NodeMetadata captures select metadata of the RPC answering node
|
|
|
|
|
type NodeMetadata struct { |
|
|
|
|
BLSPublicKey string `json:"blskey"` |
|
|
|
|
BLSPublicKey []string `json:"blskey"` |
|
|
|
|
Version string `json:"version"` |
|
|
|
|
NetworkType string `json:"network"` |
|
|
|
|
ChainConfig params.ChainConfig `json:"chain-config"` |
|
|
|
@ -72,8 +72,13 @@ func (s *PublicHarmonyAPI) GetNodeMetadata() NodeMetadata { |
|
|
|
|
blockEpoch = &b |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var blsKeys []string |
|
|
|
|
for _, key := range cfg.ConsensusPubKey.PublicKey { |
|
|
|
|
blsKeys = append(blsKeys, key.SerializeToHexStr()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return NodeMetadata{ |
|
|
|
|
cfg.ConsensusPubKey.SerializeToHexStr(), |
|
|
|
|
blsKeys, |
|
|
|
|
nodeconfig.GetVersion(), |
|
|
|
|
string(cfg.GetNetworkType()), |
|
|
|
|
*s.b.ChainConfig(), |
|
|
|
|