Skip to content

Commit 18c70b4

Browse files
authored
Merge pull request #5258 from stacks-network/chore/master-develop-093024
Chore: Merge master -> develop
2 parents a50f955 + 5327a59 commit 18c70b4

File tree

8 files changed

+54
-21
lines changed

8 files changed

+54
-21
lines changed

.github/ISSUE_TEMPLATE/signer_bug.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Signer Bug
3+
about: Create a report to help us improve the signer
4+
title: "[SIGNER BUG]"
5+
labels: signer
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Steps To Reproduce**
14+
Please provide detailed instructions (e.g. command line invocation with parameters) to reproduce the behavior.
15+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Environment (please complete the following information):**
20+
- OS: [e.g. Ubuntu / Debian]
21+
- Rust version
22+
- Version of the appropriate binary / software packages
23+
- Signer public key
24+
- Relevant log messages
25+
- Tx ID of any transaction you were trying to execute
26+
- Tx ID of `aggregation-commit-indexed` call in registered cycle (if applicable)
27+
28+
29+
**Additional context**
30+
Please include any relevant stack traces, error messages and logs.
31+
32+

.github/ISSUE_TEMPLATE/testnet-bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Testnet Bug
33
about: Use this template to submit Stacks 2.0 testnet bugs
44
title: "[TESTNET BUG]"
55
labels: bug, testnet
6-
assignees: 'timstackblock'
6+
assignees: ''
77

88
---
99

stacks-common/src/address/c32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ fn c32_check_decode(check_data_unsanitized: &str) -> Result<(u8, Vec<u8>), Error
360360
}
361361

362362
pub fn c32_address_decode(c32_address_str: &str) -> Result<(u8, Vec<u8>), Error> {
363-
if c32_address_str.len() <= 5 {
363+
if !c32_address_str.is_ascii() || c32_address_str.len() <= 5 {
364364
Err(Error::InvalidCrockford32)
365365
} else {
366366
c32_check_decode(&c32_address_str[1..])

stacks-common/src/address/c32_old.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ fn c32_check_decode(check_data_unsanitized: &str) -> Result<(u8, Vec<u8>), Error
221221
}
222222

223223
pub fn c32_address_decode(c32_address_str: &str) -> Result<(u8, Vec<u8>), Error> {
224-
if c32_address_str.len() <= 5 {
224+
if !c32_address_str.is_ascii() || c32_address_str.len() <= 5 {
225225
Err(Error::InvalidCrockford32)
226226
} else {
227227
c32_check_decode(&c32_address_str[1..])

stackslib/src/net/chat.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,11 +2426,11 @@ impl ConversationP2P {
24262426
Ok(num_recved) => {
24272427
total_recved += num_recved;
24282428
if num_recved > 0 {
2429-
test_debug!("{:?}: received {} bytes", self, num_recved);
2429+
debug!("{:?}: received {} bytes", self, num_recved);
24302430
self.stats.last_recv_time = get_epoch_time_secs();
24312431
self.stats.bytes_rx += num_recved as u64;
24322432
} else {
2433-
test_debug!("{:?}: received {} bytes, stopping", self, num_recved);
2433+
debug!("{:?}: received {} bytes, stopping", self, num_recved);
24342434
break;
24352435
}
24362436
}
@@ -2447,7 +2447,7 @@ impl ConversationP2P {
24472447
}
24482448
}
24492449
}
2450-
test_debug!("{:?}: received {} bytes", self, total_recved);
2450+
debug!("{:?}: received {} bytes", self, total_recved);
24512451
Ok(total_recved)
24522452
}
24532453

@@ -2475,7 +2475,7 @@ impl ConversationP2P {
24752475
}
24762476
}
24772477
}
2478-
test_debug!("{:?}: sent {} bytes", self, total_sent);
2478+
debug!("{:?}: sent {} bytes", self, total_sent);
24792479
Ok(total_sent)
24802480
}
24812481

stackslib/src/net/connection.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,9 @@ impl<P: ProtocolFamily> NetworkReplyHandle<P> {
233233
None
234234
} else {
235235
// still have data to send, or we will send more.
236-
test_debug!(
236+
debug!(
237237
"Still have data to send, drop_on_success = {}, ret = {}",
238-
drop_on_success,
239-
ret
238+
drop_on_success, ret
240239
);
241240
Some(fd)
242241
}
@@ -1047,7 +1046,7 @@ impl<P: ProtocolFamily> ConnectionInbox<P> {
10471046
total_read += num_read;
10481047

10491048
if num_read > 0 || total_read > 0 {
1050-
test_debug!("read {} bytes; {} total", num_read, total_read);
1049+
debug!("read {} bytes; {} total", num_read, total_read);
10511050
}
10521051

10531052
if num_read > 0 {

stackslib/src/net/mod.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,23 +1041,24 @@ pub struct NackData {
10411041
pub error_code: u32,
10421042
}
10431043
pub mod NackErrorCodes {
1044-
/// A handshake is required before the protocol can proceed
1044+
/// A handshake has not yet been completed with the requester
1045+
/// and it is required before the protocol can proceed
10451046
pub const HandshakeRequired: u32 = 1;
1046-
/// The protocol could not find a required burnchain block
1047+
/// The request depends on a burnchain block that this peer does not recognize
10471048
pub const NoSuchBurnchainBlock: u32 = 2;
1048-
/// The requester is sending too many requests
1049+
/// The remote peer has exceeded local per-peer bandwidth limits
10491050
pub const Throttled: u32 = 3;
1050-
/// The state the requester referenced referrs to a PoX fork we do not recognize
1051+
/// The request depends on a PoX fork that this peer does not recognize as canonical
10511052
pub const InvalidPoxFork: u32 = 4;
1052-
/// The message is inappropriate for this step of the protocol
1053+
/// The message received is not appropriate for the ongoing step in the protocol being executed
10531054
pub const InvalidMessage: u32 = 5;
1054-
/// The referenced StackerDB does not exist on this node
1055+
/// The StackerDB requested is not known or configured on this node
10551056
pub const NoSuchDB: u32 = 6;
1056-
/// The referenced StackerDB chunk is out-of-date with respect to our replica
1057+
/// The StackerDB chunk request referred to an older copy of the chunk than this node has
10571058
pub const StaleVersion: u32 = 7;
1058-
/// The referenced StackerDB state view is out-of-date with respect to our replica
1059+
/// The remote peer's view of the burnchain is too out-of-date for the protocol to continue
10591060
pub const StaleView: u32 = 8;
1060-
/// The referenced StackerDB chunk is stale locally relative to the requested version
1061+
/// The StackerDB chunk request referred to a newer copy of the chunk that this node has
10611062
pub const FutureVersion: u32 = 9;
10621063
/// The referenced StackerDB state view is stale locally relative to the requested version
10631064
pub const FutureView: u32 = 10;

stackslib/src/net/relay.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,8 @@ impl Relayer {
930930
"Handle incoming Nakamoto block {}/{} obtained via {}",
931931
&block.header.consensus_hash,
932932
&block.header.block_hash(),
933-
&obtained_method,
933+
&obtained_method;
934+
"block_id" => %block.header.block_id(),
934935
);
935936

936937
if fault_injection::ignore_block(block.header.chain_length, &burnchain.working_dir) {

0 commit comments

Comments
 (0)