core: no longer treat sysfee as claimable

As it's not on Neo 3, it just gets burned and that's it. Only network fee is
being redistributed to CNs.
This commit is contained in:
Roman Khimov 2020-06-04 22:59:34 +03:00
parent 50ed4c5967
commit 39dfebccc4
9 changed files with 31 additions and 77 deletions

View file

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