Skip to content

Commit 0f2ad94

Browse files
committed
Merge branch 'develop' of https://github.com/stacks-network/stacks-core into feat/signer-times-out-end-of-tenure-blocks
2 parents 0fbe07f + d11ed3c commit 0f2ad94

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

stackslib/src/net/api/getattachmentsinv.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ impl HttpRequest for RPCGetAttachmentsInvRequestHandler {
9696
if key == "index_block_hash" {
9797
index_block_hash = StacksBlockId::from_hex(&value).ok();
9898
} else if key == "pages_indexes" {
99-
if let Ok(pages_indexes_value) = value.parse::<String>() {
100-
for entry in pages_indexes_value.split(',') {
101-
if let Ok(page_index) = entry.parse::<u32>() {
102-
page_indexes.insert(page_index);
103-
}
99+
let pages_indexes_value = value.to_string();
100+
for entry in pages_indexes_value.split(',') {
101+
if let Ok(page_index) = entry.parse::<u32>() {
102+
page_indexes.insert(page_index);
104103
}
105104
}
106105
}

testnet/stacks-node/src/nakamoto_node/relayer.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,9 @@ impl RelayerThread {
303303

304304
/// have we waited for the right conditions under which to start mining a block off of our
305305
/// chain tip?
306-
#[allow(clippy::nonminimal_bool)]
307-
#[allow(clippy::eq_op)]
308306
fn has_waited_for_latest_blocks(&self) -> bool {
309307
// a network download pass took place
310-
(self.min_network_download_passes <= self.last_network_download_passes
311-
// a network inv pass took place
312-
&& self.min_network_download_passes <= self.last_network_download_passes)
308+
self.min_network_download_passes <= self.last_network_download_passes
313309
// we waited long enough for a download pass, but timed out waiting
314310
|| self.last_network_block_height_ts + (self.config.node.wait_time_for_blocks as u128) < get_epoch_time_ms()
315311
// we're not supposed to wait at all

testnet/stacks-node/src/neon_node.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,13 +2936,9 @@ impl RelayerThread {
29362936

29372937
/// have we waited for the right conditions under which to start mining a block off of our
29382938
/// chain tip?
2939-
#[allow(clippy::nonminimal_bool)]
2940-
#[allow(clippy::eq_op)]
29412939
pub fn has_waited_for_latest_blocks(&self) -> bool {
29422940
// a network download pass took place
2943-
(self.min_network_download_passes <= self.last_network_download_passes
2944-
// a network inv pass took place
2945-
&& self.min_network_download_passes <= self.last_network_download_passes)
2941+
self.min_network_download_passes <= self.last_network_download_passes
29462942
// we waited long enough for a download pass, but timed out waiting
29472943
|| self.last_network_block_height_ts + (self.config.node.wait_time_for_blocks as u128) < get_epoch_time_ms()
29482944
// we're not supposed to wait at all

0 commit comments

Comments
 (0)