Skip to content

Commit ba32347

Browse files
authored
Merge pull request #1835 from input-output-hk/djo/1785/chain_block_streamer_inclusive_upper_bound
Make upper bound of `ChainReaderBlockStreamer` inclusive
2 parents 4bc87f0 + 2380c63 commit ba32347

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mithril-aggregator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-aggregator"
3-
version = "0.5.43"
3+
version = "0.5.44"
44
description = "A Mithril Aggregator server"
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-common"
3-
version = "0.4.30"
3+
version = "0.4.31"
44
description = "Common types, interfaces, and utilities for Mithril nodes."
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-common/src/cardano_block_scanner/chain_reader_block_streamer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl ChainReaderBlockStreamer {
109109
let mut chain_reader = self.chain_reader.try_lock()?;
110110
match chain_reader.get_next_chain_block().await? {
111111
Some(ChainBlockNextAction::RollForward { parsed_block }) => {
112-
if parsed_block.block_number >= self.until {
112+
if parsed_block.block_number > self.until {
113113
trace!(
114114
self.logger,
115115
"ChainReaderBlockStreamer received a RollForward above threshold block number ({})",
@@ -165,7 +165,7 @@ mod tests {
165165
const MAX_ROLL_FORWARDS_PER_POLL: usize = 100;
166166

167167
#[tokio::test]
168-
async fn test_parse_expected_nothing_above_block_number_threshold() {
168+
async fn test_parse_expected_nothing_strictly_above_block_number_threshold() {
169169
let until_block_number = 10;
170170
let chain_reader = Arc::new(Mutex::new(FakeChainReader::new(vec![
171171
ChainBlockNextAction::RollForward {
@@ -190,7 +190,7 @@ mod tests {
190190
let mut block_streamer = ChainReaderBlockStreamer::try_new(
191191
chain_reader.clone(),
192192
None,
193-
until_block_number,
193+
until_block_number - 1,
194194
MAX_ROLL_FORWARDS_PER_POLL,
195195
TestLogger::stdout(),
196196
)
@@ -203,7 +203,7 @@ mod tests {
203203
let mut block_streamer = ChainReaderBlockStreamer::try_new(
204204
chain_reader,
205205
None,
206-
until_block_number + 1,
206+
until_block_number,
207207
MAX_ROLL_FORWARDS_PER_POLL,
208208
TestLogger::stdout(),
209209
)

mithril-signer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-signer"
3-
version = "0.2.165"
3+
version = "0.2.166"
44
description = "A Mithril Signer"
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-test-lab/mithril-end-to-end/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-end-to-end"
3-
version = "0.4.21"
3+
version = "0.4.22"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
documentation = { workspace = true }

mithril-test-lab/mithril-end-to-end/src/mithril/aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl Aggregator {
8989
("CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE", "5"),
9090
(
9191
"CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER",
92-
"1",
92+
"15",
9393
),
9494
("CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP", "15"),
9595
]);

0 commit comments

Comments
 (0)