debug_backtraceAt (#4232)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Supernovahs.eth
2023-08-18 16:55:37 +05:30
committed by GitHub
parent f53fdd5329
commit 5039b3b582
4 changed files with 12 additions and 0 deletions

View File

@ -123,4 +123,10 @@ pub trait DebugApi {
opts: Option<GethDebugTracingOptions>,
state_override: Option<StateOverride>,
) -> RpcResult<Vec<GethTrace>>;
/// Sets the logging backtrace location. When a backtrace location is set and a log message is
/// emitted at that location, the stack of the goroutine executing the log statement will
/// be printed to stderr.
#[method(name = "backtraceAt")]
async fn debug_backtrace_at(&self, location: &str) -> RpcResult<()>;
}

View File

@ -25,6 +25,7 @@ reth-tasks.workspace = true
reth-metrics.workspace = true
reth-consensus-common = { path = "../../consensus/common" }
reth-rpc-types-compat.workspace = true
lazy_static = "*"
# eth
revm = { workspace = true, features = [

View File

@ -643,6 +643,10 @@ where
Ok(res.into())
}
async fn debug_backtrace_at(&self, _location: &str) -> RpcResult<()> {
Ok(())
}
/// Handler for `debug_getRawBlock`
async fn raw_block(&self, block_id: BlockId) -> RpcResult<Bytes> {
let block = self.inner.provider.block_by_id(block_id).to_rpc_result()?;