Skip to content

Commit

Permalink
Remove block from transition (0xPolygon#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Nov 2, 2022
1 parent a02bf66 commit 13400ab
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions state/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ func (e *Executor) ProcessBlock(
return nil, err
}

txn.block = block

for _, t := range block.Transactions {
if t.ExceedsBlockGasLimit(block.Header.GasLimit) {
if err := txn.WriteFailedReceipt(t); err != nil {
Expand Down Expand Up @@ -181,9 +179,6 @@ type Transition struct {
// dummy
auxState State

// the current block being processed
block *types.Block

r *Executor
config chain.ForksInTime
state *Txn
Expand Down Expand Up @@ -343,10 +338,6 @@ func (t *Transition) Txn() *Txn {
return t.state
}

func (t *Transition) GetTxnHash() types.Hash {
return t.block.Hash()
}

// Apply applies a new transaction
func (t *Transition) Apply(msg *types.Transaction) (*runtime.ExecutionResult, error) {
s := t.state.Snapshot()
Expand Down

0 comments on commit 13400ab

Please sign in to comment.