Skip to content

Commit 5b129aa

Browse files
authored
Merge pull request #58 from tonlabs/0.28.9-rc
Release 0.28.9
2 parents 47bbda3 + 13aa576 commit 5b129aa

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Release Notes
22
All notable changes to this project will be documented in this file.
33

4+
## 0.28.9 Sep 24, 2021
5+
### Fixed
6+
- Internal fixes in order to fix building.
7+
48
## 0.28.8 Sep 22, 2021
59
### Fixed
610
- Build with new version q-server 0.43.0

ton-node-se/poa/parity/ethkey/src/crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub mod ecies {
160160
hasher.update(secret);
161161
hasher.update(s1);
162162
let d = hasher.finish();
163-
&mut dest[written..(written + 32)].copy_from_slice(&d);
163+
dest[written..(written + 32)].copy_from_slice(&d);
164164
written += 32;
165165
ctr += 1;
166166
}

ton-node-se/ton_node/src/node_engine/ton_node_engine.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub struct TonNodeEngine {
7575
timers: Arc<Mutex<HashMap<TimerToken, TimerHandler>>>,
7676
requests: Arc<Mutex<HashMap<PeerId, HashMap<u32, RequestCallback>>>>,
7777

78-
responses: Arc<Mutex<HashMap<NetworkProtocol, ResponseCallback>>>,
78+
responses: Arc<Mutex<Vec<(NetworkProtocol, ResponseCallback)>>>,
7979
is_network_enabled: bool,
8080
service: Arc<NetworkService>,
8181
#[cfg(test)]
@@ -250,7 +250,7 @@ impl TonNodeEngine {
250250
peer_list: Arc::new(Mutex::new(vec![])),
251251
timers_count: AtomicUsize::new(0),
252252
timers: Arc::new(Mutex::new(HashMap::new())),
253-
responses: Arc::new(Mutex::new(HashMap::new())),
253+
responses: Arc::new(Mutex::new(Vec::new())),
254254
requests: Arc::new(Mutex::new(HashMap::new())),
255255
#[cfg(test)]
256256
test_counter_out: Arc::new(Mutex::new(0)),
@@ -412,7 +412,7 @@ impl TonNodeEngine {
412412
let request = deserialize::<NetworkProtocol>(&mut &data[4..]);
413413

414414
let funcs = self.responses.lock().iter()
415-
.filter(|(key, _val)| variant_eq(key.clone(), &request))
415+
.filter(|(key, _val)| variant_eq(key, &request))
416416
.map(|(_key, val)| val.clone()).collect::<Vec<ResponseCallback>>();
417417

418418
if funcs.len() == 1 {
@@ -509,7 +509,7 @@ impl TonNodeEngine {
509509
responce: NetworkProtocol,
510510
callback: ResponseCallback)
511511
{
512-
self.responses.lock().insert(responce, callback);
512+
self.responses.lock().push((responce, callback));
513513
}
514514

515515
fn disconnected_internal(&self, io: &dyn NetworkContext, peer: &PeerId ) -> NodeResult<()> {

ton-node-se/ton_node_startup/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
build = "../build/build.rs"
33
name = "ton_node_startup"
4-
version = "0.28.8"
4+
version = "0.28.9"
55

66
[dependencies]
77
clap = "2.32.0"

0 commit comments

Comments
 (0)