Skip to content

Commit deadc95

Browse files
committed
wip
1 parent dfa71ea commit deadc95

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

crates/gateway/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ impl Client {
209209
// </head>
210210
// <body text=#000000 bgcolor=#ffffff>
211211
// <h1>Error: Server Error</h1>
212-
// <h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
213-
// <h2></h2>
212+
// <h2>The server encountered a temporary error and could not complete your request.<p>Please try
213+
// again in 30 seconds.</h2> <h2></h2>
214214
// </body></html>
215215

216216
#[derive(Debug, thiserror::Error)]

crates/sync/stage/src/trie.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use katana_rpc_types::class;
88
use katana_trie::CommitId;
99
use starknet::macros::short_string;
1010
use starknet_types_core::hash::{Poseidon, StarkHash};
11-
use tracing::{debug, error, info_span, trace, trace_span};
11+
use tracing::{debug, debug_span, error, trace, trace_span};
1212

1313
use crate::{Stage, StageExecutionInput, StageExecutionOutput, StageResult};
1414

@@ -43,7 +43,7 @@ where
4343
fn execute<'a>(&'a mut self, input: &'a StageExecutionInput) -> BoxFuture<'a, StageResult> {
4444
Box::pin(async move {
4545
for block_number in input.from()..=input.to() {
46-
let span = info_span!("state_trie.compute_state_root", %block_number);
46+
let span = debug_span!("state_trie.compute_state_root", %block_number);
4747
let _enter = span.enter();
4848

4949
let header = self
@@ -58,16 +58,10 @@ where
5858
.state_update(block_number.into())?
5959
.ok_or(Error::MissingStateUpdate(block_number))?;
6060

61-
if header.number >= 12400 {
62-
dbg!(&header);
63-
println!("{:#?}", state_update);
64-
}
65-
6661
let computed_contract_trie_root =
6762
self.provider.trie_insert_contract_updates(block_number, &state_update)?;
6863

6964
debug!(
70-
target: "stage",
7165
contract_trie_root = format!("{computed_contract_trie_root:#x}"),
7266
"Computed contract trie root."
7367
);
@@ -77,7 +71,6 @@ where
7771
.trie_insert_declared_classes(block_number, &state_update.declared_classes)?;
7872

7973
debug!(
80-
target: "stage",
8174
classes_tri_root = format!("{computed_class_trie_root:#x}"),
8275
"Computed classes trie root."
8376
);
@@ -110,7 +103,7 @@ where
110103
.into());
111104
}
112105

113-
debug!(target: "stage", "State root verified successfully.");
106+
debug!("State root verified successfully.");
114107
}
115108

116109
Ok(StageExecutionOutput { last_block_processed: input.to() })

crates/trie/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use bitvec::view::AsBits;
22
pub use bonsai::{BitVec, MultiProof, Path, ProofNode};
3+
pub use bonsai_trie::databases::HashMapDb;
34
use bonsai_trie::BonsaiStorage;
4-
pub use bonsai_trie::{
5-
databases::HashMapDb, BonsaiDatabase, BonsaiPersistentDatabase, BonsaiStorageConfig,
6-
};
5+
pub use bonsai_trie::{BonsaiDatabase, BonsaiPersistentDatabase, BonsaiStorageConfig};
76
use katana_primitives::class::ClassHash;
87
use katana_primitives::Felt;
98
use starknet_types_core::hash::{Pedersen, StarkHash};

0 commit comments

Comments
 (0)