Skip to content

Commit

Permalink
increase accumulated sponsor fee (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelliumnt authored and Tri-stone committed Apr 28, 2024
1 parent e1c72d5 commit 6088e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1508,9 +1508,9 @@ func (pool *TxPool) validateMetaTxList(list *list) ([]*types.Transaction, *big.I
sponsorAmountAccumulated = big.NewInt(0)
}
sponsorAmountAccumulated = big.NewInt(0).Add(sponsorAmountAccumulated, sponsorAmount)
sponsorCostSumPerSponsor[metaTxParams.GasFeeSponsor] = sponsorAmountAccumulated
if pool.currentState.GetBalance(metaTxParams.GasFeeSponsor).Cmp(sponsorAmountAccumulated) >= 0 {
sponsorCostSum = new(big.Int).Add(sponsorCostSum, sponsorAmount)
sponsorCostSumPerSponsor[metaTxParams.GasFeeSponsor] = sponsorAmountAccumulated
} else {
invalidMetaTxs = append(invalidMetaTxs, tx)
continue
Expand Down

0 comments on commit 6088e0b

Please sign in to comment.