Skip to content

Commit 464e63a

Browse files
committed
fix: log && ci
1 parent af4c1e9 commit 464e63a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/database/migration/src/m20250408_150338_load_header_metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async fn get_file_size(client: &ClientWithMiddleware, url: &str) -> eyre::Result
199199

200200
/// Check the hash of the data.
201201
fn verify_data_hash(expected_data_hash: B256, data: &[u8]) -> eyre::Result<()> {
202-
let hash = B256::try_from(Sha256::digest(data).as_slice())?;
202+
let hash = B256::from_slice(Sha256::digest(data).as_ref());
203203
if hash != expected_data_hash {
204204
bail!("corrupted data, expected data to hash to {expected_data_hash}, got {hash}.")
205205
}

crates/node/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ fn main() {
1010
use rollup_node::{ScrollRollupNode, ScrollRollupNodeConfig};
1111
use tracing::info;
1212

13+
// set default log level to info if RUST_LOG is not set
14+
if std::env::var("RUST_LOG").is_err() {
15+
std::env::set_var("RUST_LOG", "info");
16+
}
1317
// enable tokio-console subscriber
1418
console_subscriber::init();
1519

0 commit comments

Comments
 (0)