Skip to content

Commit 9466178

Browse files
authored
Merge pull request #60 from tonlabs/0.28.10-rc
Release 0.28.10
2 parents 5b129aa + 632f6fb commit 9466178

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
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.10 Oct 13, 2021
5+
### Fixed
6+
- Internal fixes in order to fix building.
7+
48
## 0.28.9 Sep 24, 2021
59
### Fixed
610
- Internal fixes in order to fix building.

ton-node-se/ton_node/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ serde_json = {version = "^1.0.41", features = ["preserve_order"]}
2727
sha2 = "^0.8.0"
2828
stream-cancel="0.4.4"
2929
tokio = "0.1.20"
30-
x25519-dalek = "^0.5.2"
30+
x25519-dalek = "1.2"
3131
tokio-io-timeout = "0.3.1"
3232

3333
# Domestic
@@ -55,11 +55,11 @@ iron = "0.6.1"
5555
router = "0.6.0"
5656

5757
[target.'cfg(windows)'.dependencies.rdkafka]
58-
version = "0.23.0"
58+
version = "0.26.0"
5959
features = ["cmake_build"]
6060

6161
[target.'cfg(unix)'.dependencies.rdkafka]
62-
version = "0.23.0"
62+
version = "0.26.0"
6363

6464
[dev-dependencies]
6565
pretty_assertions = "0.6.1"

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

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::io::{ErrorKind, Read, Seek, Write};
99
use std::path::PathBuf;
1010
use ton_block::{InMsg, OutMsg, AccountStatus, ExtOutMessageHeader, MsgEnvelope};
1111
use ton_block::{HashmapAugType, BlkPrevInfo, Deserializable, ShardIdent};
12-
use ton_types::{UInt256, deserialize_tree_of_cells, BagOfCells};
12+
use ton_types::{UInt256, deserialize_tree_of_cells};
1313

1414
#[cfg(test)]
1515
#[path = "../../../tonos-se-tests/unit/test_block_finality.rs"]
@@ -101,9 +101,7 @@ debug!("FINBLK {:?}", hashes);
101101
lt: info.end_lt(),
102102
hash: sb.block_hash.clone(),
103103
};
104-
let mut shard = vec![];
105-
BagOfCells::with_root(&sb.shard_state.serialize()?)
106-
.write_to(&mut shard, false)?;
104+
let shard = sb.shard_state.write_to_bytes()?;
107105
// save shard state
108106
self.shard_state_storage.save_serialized_shardstate_ex(
109107
&ShardStateUnsplit::default(), Some(shard), &sb.block.block().read_state_update()?.new_hash,
@@ -718,10 +716,7 @@ impl ShardBlock {
718716

719717
// Test-lite-client requires hash od unsigned block
720718
// TODO will to think, how to do better
721-
let mut block_data = vec![];
722-
let cell = sblock.block().serialize().unwrap(); // TODO process result
723-
let bag = BagOfCells::with_root(&cell);
724-
bag.write_to(&mut block_data, false).unwrap(); // TODO process result
719+
let block_data = sblock.block().write_to_bytes().unwrap(); // TODO process result
725720

726721
let mut hasher = Sha256::new();
727722
hasher.input(block_data.as_slice());
@@ -742,12 +737,11 @@ impl ShardBlock {
742737
let mut buf = Vec::new();
743738
buf.extend_from_slice(&self.seq_no.to_le_bytes());
744739
buf.extend_from_slice(&(self.serialized_block.len() as u32).to_le_bytes());
745-
buf.append(&mut self.serialized_block.clone());
746-
buf.append(&mut self.block_hash.as_slice().to_vec());
747-
buf.append(&mut self.file_hash.as_slice().to_vec());
740+
buf.extend_from_slice(self.serialized_block.as_slice());
741+
buf.extend_from_slice(self.block_hash.as_slice());
742+
buf.extend_from_slice(self.file_hash.as_slice());
748743

749-
BagOfCells::with_root(&self.shard_state.serialize()?)
750-
.write_to(&mut buf, false)?;
744+
buf.append(&mut self.shard_state.write_to_bytes()?);
751745

752746
let mut block_buf = Vec::new();
753747
self.block.write_to(&mut block_buf)?;

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.9"
4+
version = "0.28.10"
55

66
[dependencies]
77
clap = "2.32.0"

0 commit comments

Comments
 (0)