File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ const DEFAULT_REEXEC: usize = 128;
1313/// Default max amount of time to spend tracing a transaction (doesn't take into account state rebuild time)
1414const DEFAULT_TIMEOUT : Duration = Duration :: from_secs ( 5 ) ;
1515
16- pub struct TraceBlockByNumberRequest {
17- number : BlockNumber ,
18- tracer_config : TracerConfig ,
19- }
20-
2116pub struct TraceTransactionRequest {
2217 tx_hash : H256 ,
18+ trace_config : TracerConfig ,
19+ }
20+
21+ pub struct TraceBlockByNumberRequest {
22+ number : BlockNumber ,
2323 trace_config : TraceConfig ,
2424}
2525
@@ -128,15 +128,15 @@ impl RpcHandler for TraceBlockByNumberRequest {
128128 if params. len ( ) != 1 && params. len ( ) != 2 {
129129 return Err ( RpcErr :: BadParams ( "Expected 1 or 2 params" . to_owned ( ) ) ) ;
130130 } ;
131- let tracer_config = if params. len ( ) == 2 {
131+ let trace_config = if params. len ( ) == 2 {
132132 serde_json:: from_value ( params[ 1 ] . clone ( ) ) ?
133133 } else {
134134 TracerConfig :: default ( )
135135 } ;
136136
137137 Ok ( TraceBlockByNumberRequest {
138138 number : serde_json:: from_value ( params[ 0 ] . clone ( ) ) ?,
139- tracer_config ,
139+ trace_config ,
140140 } )
141141 }
142142
You can’t perform that action at this time.
0 commit comments