Review feedback

pull/2169/head
flicker-harmony 5 years ago
parent e4d56a16d2
commit 8fdb4c4803
  1. 2
      internal/hmyapi/apiv1/blockchain.go
  2. 2
      internal/hmyapi/apiv2/blockchain.go

@ -502,7 +502,7 @@ func (s *PublicBlockChainAPI) GetMedianRawStakeSnapshot() (*big.Int, error) {
if s.b.IsBeaconChainExplorerNode() {
return s.b.GetMedianRawStakeSnapshot(), nil
}
return big.NewInt(0), errNotExplorerNode
return nil, errNotExplorerNode
}
// GetAllValidatorAddresses returns all validator addresses.

@ -464,7 +464,7 @@ func (s *PublicBlockChainAPI) GetMedianRawStakeSnapshot() (*big.Int, error) {
if s.b.IsBeaconChainExplorerNode() {
return s.b.GetMedianRawStakeSnapshot(), nil
}
return big.NewInt(0), errNotExplorerNode
return nil, errNotExplorerNode
}
// GetAllValidatorAddresses returns all validator addresses.

Loading…
Cancel
Save