mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Add enough blob gas for block building (EIP-4844) (#8001)
This commit is contained in:
parent
03927d3e27
commit
f854a73185
@ -331,7 +331,7 @@ func (rw *ReconWorker) runTxTask(txTask *exec22.TxTask) error {
|
||||
|
||||
rw.engine.Initialize(rw.chainConfig, rw.chain, txTask.Header, ibs, syscall)
|
||||
} else {
|
||||
gp := new(core.GasPool).AddGas(txTask.Tx.GetGas())
|
||||
gp := new(core.GasPool).AddGas(txTask.Tx.GetGas()).AddBlobGas(txTask.Tx.GetBlobGas())
|
||||
vmConfig := vm.Config{NoReceipts: true, SkipAnalysis: txTask.SkipAnalysis}
|
||||
ibs.SetTxContext(txTask.Tx.Hash(), txTask.BlockHash, txTask.TxIndex)
|
||||
msg := txTask.TxAsMessage
|
||||
|
@ -367,6 +367,9 @@ func addTransactionsToMiningBlock(logPrefix string, current *MiningBlock, chainC
|
||||
header := current.Header
|
||||
tcount := 0
|
||||
gasPool := new(core.GasPool).AddGas(header.GasLimit - header.GasUsed)
|
||||
if header.BlobGasUsed != nil {
|
||||
gasPool.AddBlobGas(fixedgas.MaxBlobGasPerBlock - *header.BlobGasUsed)
|
||||
}
|
||||
signer := types.MakeSigner(&chainConfig, header.Number.Uint64(), header.Time)
|
||||
|
||||
var coalescedLogs types.Logs
|
||||
|
Loading…
Reference in New Issue
Block a user