Skip to content

Commit

Permalink
feat: bsc v1.2.12 compatible modification
Browse files Browse the repository at this point in the history
  • Loading branch information
barryz committed Sep 12, 2023
1 parent b4664a7 commit 42bd62b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/txtracev1/trace_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,12 @@ func (ot *OeTracer) CaptureTxEnd(restGas uint64) {

}

// CaptureSystemTxEnd bsc vm.EVMLogger exclusive
// https://github.com/bnb-chain/bsc/commit/a0cb4d0377b36c143dc7f974387f416d51de3597
func (ot *OeTracer) CaptureSystemTxEnd(intrinsicGas uint64) {
ot.gasUsed -= intrinsicGas
}

// Reset function to be able to reuse logger
func (ot *OeTracer) reset() {
ot.to = nil
Expand Down

0 comments on commit 42bd62b

Please sign in to comment.