From 99d6ada69fe2eb4938377f50024d52df2d9f59c5 Mon Sep 17 00:00:00 2001 From: evalir Date: Fri, 11 Jul 2025 12:24:57 +0200 Subject: [PATCH 1/3] chore(tests): Make timestamp divisible by 12 to conform to slot invariant Right now, this timestamp isn't divisible by 12. After fixing the bug we had on blob extraction on the node (https://github.com/init4tech/signet-node/pull/557/files#diff-c630b8329efc76498eaf78bdf3073dcdaefaacb9325e5731b7d1d8cae855d791R262), we now don't conform to an invariant that the calculator has when using `slot_ending_at`: The timestamp must be a slot boundary. We know if it's a slot boundary if it's divisible by 12 in the context of the start timestamp. For tests, this is 0, so any timestamp divisible by 12 will do. --- crates/test-utils/src/chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/test-utils/src/chain.rs b/crates/test-utils/src/chain.rs index 5838a245..49fe0c6c 100644 --- a/crates/test-utils/src/chain.rs +++ b/crates/test-utils/src/chain.rs @@ -58,7 +58,7 @@ pub fn fake_block(number: u64) -> RecoveredBlock { number, mix_hash: B256::repeat_byte(0xed), nonce: B64::repeat_byte(0xbe), - timestamp: 1716555586, // the time when i wrote this function lol + timestamp: 1716555576, // no particular significance other than divisible by 12 excess_blob_gas: Some(0), ..Default::default() }; From d08e01f00e400f3cd9b236272df7206f01f6af55 Mon Sep 17 00:00:00 2001 From: evalir Date: Fri, 11 Jul 2025 12:31:51 +0200 Subject: [PATCH 2/3] chore: v bump --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cc4f95a9..80acb92a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "0.6.0" +version = "0.6.1" edition = "2021" rust-version = "1.81" authors = ["init4"] From c6e4d9c7625763460b4a155725daa24166d0a6f7 Mon Sep 17 00:00:00 2001 From: evalir Date: Fri, 11 Jul 2025 12:33:52 +0200 Subject: [PATCH 3/3] stuff --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 80acb92a..cc4f95a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "0.6.1" +version = "0.6.0" edition = "2021" rust-version = "1.81" authors = ["init4"]