Skip to content

Commit 76863f3

Browse files
committed
chore: bump secio and multiaddr
1 parent aed85ae commit 76863f3

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## multiaddr 0.3.5 secio 0.6.5
2+
3+
### Features
4+
- multiaddr support onion3(#396)
5+
- p2p message use `unsigned_varint::decode::u64`(#395)
6+
17
## tentacle 0.6.7
28

39
### Features

multiaddr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-multiaddr"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
authors = ["driftluo <driftluo@foxmail.com>"]
55
edition = "2021"
66
repository = "https://github.com/nervosnetwork/tentacle"

multiaddr/src/protocol.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,6 @@ impl<'a> Protocol<'a> {
112112
Ok(input.split_at(n))
113113
}
114114

115-
fn split_at(n: usize, input: &[u8]) -> Result<(&[u8], &[u8]), Error> {
116-
if input.len() < n {
117-
return Err(Error::DataLessThanLen);
118-
}
119-
Ok(input.split_at(n))
120-
}
121-
122115
let (id, input) = decode::u32(input)?;
123116
match id {
124117
DNS4 => {
@@ -179,7 +172,7 @@ impl<'a> Protocol<'a> {
179172
Ok((Protocol::Memory(num), rest))
180173
}
181174
ONION3 => {
182-
let (data, rest) = split_at(37, input)?;
175+
let (data, rest) = split_header(37, input)?;
183176
let port = BigEndian::read_u16(&data[35..]);
184177
Ok((
185178
Protocol::Onion3((array_ref!(data, 0, 35), port).into()),

secio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tentacle-secio"
3-
version = "0.6.4"
3+
version = "0.6.5"
44
license = "MIT"
55
description = "Secio encryption protocol for p2p"
66
authors = ["piaoliu <driftluo@foxmail.com>", "Nervos Core Dev <dev@nervos.org>"]

0 commit comments

Comments
 (0)