Skip to content

Commit

Permalink
Merge pull request #98 from tonlabs/0.35.0-rc
Browse files Browse the repository at this point in the history
Version 0.35.0
  • Loading branch information
d3p authored Oct 14, 2022
2 parents 71498d7 + fe8f64a commit ba1c01a
Show file tree
Hide file tree
Showing 10 changed files with 423 additions and 294 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Release Notes
All notable changes to this project will be documented in this file.

## 0.35.0 Oct 13, 2022

### New

- Blockchain API is supported (except `blockchain{ key_blocks }`)

### Fixed

- Incorrect inner message order
- Account with `nonExist` acc_type was created upon a failed deploy

## 0.34.0 Sep 13, 2022

### New
Expand Down
14 changes: 14 additions & 0 deletions docker/arango/initdb.d/upgrade-arango-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ const COLLECTIONS = {
blocks_signatures: {
indexes: [],
},
chain_ranges_verification: {
indexes: [],
data: [{
_key: "summary",
reliable_chain_order_upper_boundary: "z"
}]
},
};

function checkBlockchainDb() {
Expand Down Expand Up @@ -121,6 +128,13 @@ function checkCollection(name, props) {
});
});

if (props.data) {
props.data.forEach((doc) => {
if (!collection.exists(doc)) {
collection.insert(doc)
}
});
}
}

function checkCollections(collections) {
Expand Down
1 change: 1 addition & 0 deletions docker/q-server/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export Q_REQUESTS_SERVER=http://127.0.0.1
export Q_HOST=127.0.0.1
export Q_PORT=4000
export Q_QUERY_WAIT_FOR_PERIOD=10
export Q_CHAIN_RANGES_VERIFICATION=http://127.0.0.1:8529

cd /home/node/ton-q-server
exec node index.js
3 changes: 2 additions & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
edition = '2021'
build = 'build.rs'
name = 'ton_node_startup'
version = '0.34.0'
version = '0.35.0'

[dependencies]
# External
Expand All @@ -15,6 +15,7 @@ hex = '0.4'
http = '0.1'
iron = '0.6'
jsonrpc-http-server = '10.0.1'
lazy_static = '1.4.0'
log = '0.4'
log4rs = '1.1'
num = '0.4'
Expand Down
9 changes: 7 additions & 2 deletions node/src/block/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,17 @@ impl BlockBuilder {
// first import internal messages
let mut block_full = false;
let out_queue = self.out_queue_info.out_queue().clone();
log::debug!(target: "node", "out queue len={}", out_queue.len()?);
let msg_count = out_queue.len()?;
log::debug!(target: "node", "out queue len={}", msg_count);
let mut sorted = Vec::with_capacity(msg_count);
for out in out_queue.iter() {
let (key, mut slice) = out?;
let key = key.into_cell()?;
// key is not matter for one shard
let (enq, _create_lt) = OutMsgQueue::value_aug(&mut slice)?;
sorted.push((key, OutMsgQueue::value_aug(&mut slice)?));
}
sorted.sort_by(|a, b| a.1.1.cmp(&b.1.1));
for (key, (enq, _create_lt)) in sorted {
let env = enq.read_out_msg()?;
let message = env.read_message()?;
if let Some(acc_id) = message.int_dst_account_id() {
Expand Down
Loading

0 comments on commit ba1c01a

Please sign in to comment.