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:
parent
50ed4c5967
commit
39dfebccc4
9 changed files with 31 additions and 77 deletions
|
@ -194,27 +194,23 @@ func TestGetClaimable(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
|
||||
t.Run("first generation period", func(t *testing.T) {
|
||||
amount, sysfee := bc.CalculateClaimable(util.Fixed8FromInt64(1), 0, 2)
|
||||
amount := bc.CalculateClaimable(util.Fixed8FromInt64(1), 0, 2)
|
||||
require.EqualValues(t, 8, amount)
|
||||
require.EqualValues(t, 0, sysfee)
|
||||
})
|
||||
|
||||
t.Run("a number of full periods", func(t *testing.T) {
|
||||
amount, sysfee := bc.CalculateClaimable(util.Fixed8FromInt64(1), 0, 6)
|
||||
amount := bc.CalculateClaimable(util.Fixed8FromInt64(1), 0, 6)
|
||||
require.EqualValues(t, 4+4+3+3+2+2, amount)
|
||||
require.EqualValues(t, 0, sysfee)
|
||||
})
|
||||
|
||||
t.Run("start from the 2-nd block", func(t *testing.T) {
|
||||
amount, sysfee := bc.CalculateClaimable(util.Fixed8FromInt64(1), 1, 7)
|
||||
amount := bc.CalculateClaimable(util.Fixed8FromInt64(1), 1, 7)
|
||||
require.EqualValues(t, 4+3+3+2+2+1, amount)
|
||||
require.EqualValues(t, 0, sysfee)
|
||||
})
|
||||
|
||||
t.Run("end height after generation has ended", func(t *testing.T) {
|
||||
amount, sysfee := bc.CalculateClaimable(util.Fixed8FromInt64(1), 1, 10)
|
||||
amount := bc.CalculateClaimable(util.Fixed8FromInt64(1), 1, 10)
|
||||
require.EqualValues(t, 4+3+3+2+2+1+1, amount)
|
||||
require.EqualValues(t, 0, sysfee)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue