Skip to content

Commit

Permalink
Merge pull request #26 from tonlabs/0.27.2-rc
Browse files Browse the repository at this point in the history
Version 0.27.2
  • Loading branch information
d3p authored Apr 29, 2021
2 parents f579aa6 + a1cfd00 commit 25a80a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release Notes
All notable changes to this project will be documented in this file.

## 0.27.2 Apr 28, 2021
### Fixed
- Transaction could be lost if it was created near the end of block producing interval. Again

## 0.27.1 Apr 28, 2021
### Fixed
- Subscriptions for blocks, transactions and messages do not trigger multiple times any more.
Expand Down
5 changes: 4 additions & 1 deletion ton-node-se/ton_node/src/node_engine/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ let now = Instant::now();
seq_no, prev_ref, 0, Option::None,
required_block_at));

let mut is_empty = true;

while start_time.elapsed() < timeout {

if let Some(msg) = self.queue.dequeue_first_unused() {
Expand Down Expand Up @@ -407,6 +409,7 @@ let now = Instant::now();

pool.execute(th);

is_empty = false;
} else {
thread::sleep(Duration::from_nanos(100));
}
Expand All @@ -419,7 +422,7 @@ let time0 = now.elapsed().as_micros();
self.executors.lock().clear();
self.queue.locks_clear();

if !builder.is_empty() {
if !is_empty {
let new_shard_state = std::mem::take(&mut *new_shard_state.lock());
let (block, count) = builder.finalize_block(shard_state, &new_shard_state)?;
info!(target: "profiler",
Expand Down
2 changes: 1 addition & 1 deletion ton-node-se/ton_node_startup/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
build = "../build/build.rs"
name = "ton_node_startup"
version = "0.27.1"
version = "0.27.2"

[dependencies]
clap = "2.32.0"
Expand Down

0 comments on commit 25a80a8

Please sign in to comment.