mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
eth: remove unused variables in func computeTxEnv, fix XFN-92
This commit is contained in:
parent
ad41e29932
commit
9cfb9b43a9
1 changed files with 0 additions and 4 deletions
|
|
@ -812,8 +812,6 @@ func (api *PrivateDebugAPI) computeTxEnv(blockHash common.Hash, txIndex int, ree
|
|||
statedb.DeleteAddress(common.BlockSignersBinary)
|
||||
}
|
||||
core.InitSignerInTransactions(api.config, block.Header(), block.Transactions())
|
||||
balanceUpdated := map[common.Address]*big.Int{}
|
||||
totalFeeUsed := big.NewInt(0)
|
||||
gp := new(core.GasPool).AddGas(block.GasLimit())
|
||||
usedGas := new(uint64)
|
||||
// Iterate over and process the individual transactions
|
||||
|
|
@ -842,8 +840,6 @@ func (api *PrivateDebugAPI) computeTxEnv(blockHash common.Hash, txIndex int, ree
|
|||
if tokenFeeUsed {
|
||||
fee := common.GetGasFee(block.Header().Number.Uint64(), gas)
|
||||
feeCapacity[*tx.To()] = new(big.Int).Sub(feeCapacity[*tx.To()], fee)
|
||||
balanceUpdated[*tx.To()] = feeCapacity[*tx.To()]
|
||||
totalFeeUsed = totalFeeUsed.Add(totalFeeUsed, fee)
|
||||
}
|
||||
}
|
||||
statedb.DeleteSuicides()
|
||||
|
|
|
|||
Loading…
Reference in a new issue