mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
debug_backtraceAt (#4232)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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<()>;
|
||||
}
|
||||
|
||||
@ -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 = [
|
||||
|
||||
@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user