blockchainer: drop Policer interface

We never use it as a proper interface, so it makes no sense keeping it this
way.
This commit is contained in:
Roman Khimov 2022-01-12 00:58:03 +03:00
parent fcbb0aacc2
commit c942402957
15 changed files with 20 additions and 39 deletions

View file

@ -544,7 +544,7 @@ func signTx(t *testing.T, bc blockchainer.Blockchainer, txs ...*transaction.Tran
require.NoError(t, err)
for _, tx := range txs {
size := io.GetVarSize(tx)
netFee, sizeDelta := fee.Calculate(bc.GetPolicer().GetBaseExecFee(), rawScript)
netFee, sizeDelta := fee.Calculate(bc.GetBaseExecFee(), rawScript)
tx.NetworkFee += +netFee
size += sizeDelta
tx.NetworkFee += int64(size) * bc.FeePerByte()