Skip to content

Commit 412711a

Browse files
authored
Merge branch 'main' into prestwich/token-channel
2 parents dcaf0b9 + 1f46724 commit 412711a

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ repository = "https://github.com/init4tech/bin-base"
1616
init4-from-env-derive = "0.1.0"
1717

1818
# Signet
19-
signet-constants = { version = "0.4.0" }
20-
signet-tx-cache = { version = "0.4.0", optional = true }
19+
20+
signet-constants = { version = "0.4.2" }
21+
signet-tx-cache = { version = "0.4.2", optional = true }
2122

2223
# Tracing
2324
tracing = "0.1.40"
@@ -45,7 +46,7 @@ tokio = { version = "1.36.0", optional = true }
4546

4647
# Other
4748
thiserror = "2.0.11"
48-
alloy = { version = "1.0.5", optional = true, default-features = false, features = ["std", "signer-aws", "signer-local", "consensus", "network"] }
49+
alloy = { version = "=1.0.11", optional = true, default-features = false, features = ["std", "signer-aws", "signer-local", "consensus", "network"] }
4950
serde = { version = "1", features = ["derive"] }
5051
async-trait = { version = "0.1.80", optional = true }
5152
eyre = { version = "0.6.12", optional = true }

src/perms/config.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ pub struct SlotAuthzConfig {
1010
/// number for a given timestamp.
1111
calc: SlotCalculator,
1212
/// The block query cutoff time in seconds. This is the slot second after
13-
/// which requests will not be serviced. E.g. a value of 1 means that
14-
/// requests will not be serviced for the last second of any given slot.
13+
/// which requests will not be serviced. E.g. For a slot duration of 12,
14+
/// a value of 10 means that requests will not be serviced for the last 2 seconds
15+
/// of any given slot.
1516
///
16-
/// On loading from env, the number will be clamped between 0 and 11, as
17-
/// the slot duration is 12 seconds.
17+
/// On loading from env, the number will be clamped between 0 and slot_duration,
18+
/// which is generally expected to be 12 seconds.
1819
#[from_env(
1920
var = "BLOCK_QUERY_CUTOFF",
2021
desc = "The block query cutoff time in seconds."
@@ -24,8 +25,8 @@ pub struct SlotAuthzConfig {
2425
/// which requests will not be serviced. E.g. a value of 1 means that
2526
/// requests will not be serviced for the first second of any given slot.
2627
///
27-
/// On loading from env, the number will be clamped between 0 and 11, as
28-
/// the slot duration is 12 seconds.
28+
/// On loading from env, the number will be clamped between 0 and slot_duration, as
29+
/// which is generally expected to be 12 seconds.
2930
#[from_env(
3031
var = "BLOCK_QUERY_START",
3132
desc = "The block query start time in seconds."

0 commit comments

Comments
 (0)