*: switch from fixed8 to int64 in (Blockchain).CalculateClaimable

This commit is contained in:
Anna Shaleva 2020-06-29 16:09:23 +03:00
parent 73b630db9b
commit 0aaaf7f787
5 changed files with 10 additions and 10 deletions

View file

@ -787,7 +787,7 @@ func (s *Server) getUnclaimedGas(ps request.Params) (interface{}, *response.Erro
return "0", nil
}
gas := s.chain.CalculateClaimable(neo, neoHeight, s.chain.BlockHeight()+1) // +1 as in C#, for the next block.
return strconv.FormatInt(int64(gas), 10), nil // It's not represented as Fixed8 in C#.
return strconv.FormatInt(gas, 10), nil
}
// getValidators returns the current NEO consensus nodes information and voting status.