Skip to content

Commit

Permalink
ETX limit error message should dereference limit pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 committed Aug 11, 2023
1 parent 7dcc980 commit d21729e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ func applyTransaction(msg types.Message, config *params.ChainConfig, bc ChainCon
}
}
if ETXRCount > *etxRLimit {
return nil, fmt.Errorf("tx %032x emits too many cross-region ETXs for block. emitted: %d, limit: %d", tx.Hash(), ETXRCount, etxRLimit)
return nil, fmt.Errorf("tx %032x emits too many cross-region ETXs for block. emitted: %d, limit: %d", tx.Hash(), ETXRCount, *etxRLimit)
}
if ETXPCount > *etxPLimit {
return nil, fmt.Errorf("tx %032x emits too many cross-prime ETXs for block. emitted: %d, limit: %d", tx.Hash(), ETXPCount, etxPLimit)
return nil, fmt.Errorf("tx %032x emits too many cross-prime ETXs for block. emitted: %d, limit: %d", tx.Hash(), ETXPCount, *etxPLimit)
}
*etxRLimit -= ETXRCount
*etxPLimit -= ETXPCount
Expand Down

0 comments on commit d21729e

Please sign in to comment.