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 Mar 11, 2024
1 parent 8ae3d1f commit 468d164
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 468d164

Please sign in to comment.