From db154a587e006a224f5add5ea42d7aedd8929f44 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Fri, 19 Apr 2024 16:04:37 -0400 Subject: [PATCH] Fixed duplicated system call start/end definitions --- firehose/context.go | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/firehose/context.go b/firehose/context.go index 4da8d1e7b747..40c956c10b9d 100644 --- a/firehose/context.go +++ b/firehose/context.go @@ -263,39 +263,6 @@ func (ctx *Context) EndSystemCall() { ctx.printer.Print("SYSTEM_CALL_END") } -func (ctx *Context) StartSystemCall() { - if ctx == nil { - return - } - - if !ctx.inBlock.Load() { - panic("starting system call while not already within a block scope") - } - - if !ctx.inTransaction.CAS(false, true) { - panic("entering a system call while already in a transaction scope") - } - - ctx.printer.Print("SYSTEM_CALL_START") -} - -func (ctx *Context) EndSystemCall() { - if ctx == nil { - return - } - - if !ctx.inBlock.Load() { - panic("ending system call while not already within a block scope") - } - - if !ctx.inTransaction.CAS(true, false) { - panic("ending a system call while not in a transaction scope") - } - - ctx.resetTransaction() - ctx.printer.Print("SYSTEM_CALL_END") -} - // Transaction methods func (ctx *Context) StartTransaction(tx *types.Transaction, txIndex uint, baseFee *big.Int) {