core: use Application trigger in CalculateClaimable()
It doesn't need a System one.
This commit is contained in:
parent
2522271161
commit
044786b995
1 changed files with 1 additions and 1 deletions
|
@ -1143,7 +1143,7 @@ func (bc *Blockchain) UnsubscribeFromExecutions(ch chan<- *state.AppExecResult)
|
||||||
// CalculateClaimable calculates the amount of GAS generated by owning specified
|
// CalculateClaimable calculates the amount of GAS generated by owning specified
|
||||||
// amount of NEO between specified blocks.
|
// amount of NEO between specified blocks.
|
||||||
func (bc *Blockchain) CalculateClaimable(value *big.Int, startHeight, endHeight uint32) *big.Int {
|
func (bc *Blockchain) CalculateClaimable(value *big.Int, startHeight, endHeight uint32) *big.Int {
|
||||||
ic := bc.newInteropContext(trigger.System, bc.dao, nil, nil)
|
ic := bc.newInteropContext(trigger.Application, bc.dao, nil, nil)
|
||||||
res, _ := bc.contracts.NEO.CalculateBonus(ic, value, startHeight, endHeight)
|
res, _ := bc.contracts.NEO.CalculateBonus(ic, value, startHeight, endHeight)
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue