Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug_backtraceAt #4232

Merged
merged 4 commits into from
Aug 18, 2023
Merged

Conversation

@supernovahs supernovahs marked this pull request as ready for review August 16, 2023 15:31
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #4232 (6036274) into main (7cd7859) will decrease coverage by 0.38%.
Report is 21 commits behind head on main.
The diff coverage is 0.00%.

Impacted file tree graph

Files Changed Coverage Δ
crates/rpc/rpc-api/src/debug.rs 100.00% <ø> (ø)
crates/rpc/rpc/src/debug.rs 9.02% <0.00%> (-0.06%) ⬇️

... and 40 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.89% <0.00%> (+0.03%) ⬆️
unit-tests 63.75% <0.00%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 26.13% <ø> (-0.01%) ⬇️
blockchain tree 82.56% <ø> (ø)
pipeline 90.07% <ø> (ø)
storage (db) 74.71% <ø> (-0.08%) ⬇️
trie 94.71% <ø> (ø)
txpool 49.17% <ø> (-2.27%) ⬇️
networking 77.48% <ø> (-0.27%) ⬇️
rpc 58.64% <0.00%> (-0.02%) ⬇️
consensus 63.53% <ø> (ø)
revm 32.15% <ø> (ø)
payload builder 6.82% <ø> (ø)
primitives 86.30% <ø> (-1.56%) ⬇️

@mattsse mattsse added the A-rpc Related to the RPC implementation label Aug 16, 2023
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty,

I'd like to keep it unimplemented atm

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
///Sets the logging backtrace location. When a backtrace location is set and a log message is
/// Sets the logging backtrace location. When a backtrace location is set and a log message is

Comment on lines 48 to 53
use lazy_static::lazy_static;
use std::sync::Mutex;
lazy_static! {
static ref LOCATION: Mutex<String> = Mutex::new(String::new());
static ref BACKTRACE_ENABLED: Mutex<bool> = Mutex::new(false);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to support this atm

so this function should just return unimplemented

Comment on lines 653 to 657
let mut parts: Vec<&str> = location.split(':').collect();
if parts.len() != 2 {
return Err(internal_rpc_err("Invalid location format".to_string()))
}
parts[0] = parts[0].trim();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

@supernovahs
Copy link
Contributor Author

So I will leave the rest of the functions unimplemented for now. We can then implement them one by one as you plan it

@mattsse mattsse enabled auto-merge August 18, 2023 11:16
@mattsse mattsse added this pull request to the merge queue Aug 18, 2023
Merged via the queue into paradigmxyz:main with commit 5039b3b Aug 18, 2023
24 checks passed
@@ -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 = "*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

PlamenHristov pushed a commit to PlamenHristov/reth that referenced this pull request Aug 19, 2023
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
alessandromazza98 pushed a commit to alessandromazza98/reth that referenced this pull request Aug 19, 2023
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants