Skip to content

Commit 3108785

Browse files
authored
Merge pull request #69 from tonlabs/copyleft
Account with init code hash
2 parents 33f220b + 7cb0c74 commit 3108785

File tree

7 files changed

+27
-14
lines changed

7 files changed

+27
-14
lines changed

CHANGELOG.md

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

4+
## 0.30.0 Feb 17, 2022
5+
### New
6+
- Account has new field `init_code_hash`
7+
- `q-server` 0.47.0 with `X-Evernode-Expected-Account-Boc-Version` header support
8+
49
## 0.29.1 Feb 17, 2022
510
### Fixed
611
- Build with new version q-server 0.46.0

docker/ton-node/blockchain.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"p8": {
1616
"version": 5,
17-
"capabilities": "1070"
17+
"capabilities": "1326"
1818
},
1919
"p9": [
2020
0,

ton-node-se/create_msg/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ hex = "0.4.2"
1111
serde_json = "1.0.62"
1212
tokio = { version = "0.2.13", features = ["macros"] }
1313

14-
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.38' }
14+
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.39' }
1515
ton_client = { git = 'https://github.com/tonlabs/TON-SDK.git', package = "ton_client", tag = '1.28.0' }
1616
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.10.12' }
17-
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.31' }
17+
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.32' }
1818

1919
ton_node_old = { path = "../ton_node" }
2020

ton-node-se/poa/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ rustc-hex = "1.0"
3232
unexpected = { path = "parity/util/unexpected" }
3333

3434
# In-house
35-
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', default-features = false, tag = '1.8.31' }
36-
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.38' }
35+
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', default-features = false, tag = '1.8.32' }
36+
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.39' }
3737
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.10.12' }
3838

3939

ton-node-se/ton_node/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ tokio-io-timeout = "0.3.1"
3333
# Domestic
3434
poa = { path = "../poa" }
3535
ton_api = { git = 'https://github.com/tonlabs/ton-labs-tl', package = 'ton_api', tag = '0.2.110' }
36-
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.38' }
37-
ton_executor = { git = 'https://github.com/tonlabs/ton-labs-executor', tag = '1.15.54' }
36+
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.39' }
37+
ton_executor = { git = 'https://github.com/tonlabs/ton-labs-executor', tag = '1.15.56' }
3838
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.10.12' }
39-
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.31' }
40-
ton_labs_assembler = { git = "https://github.com/tonlabs/ton-labs-assembler.git", tag = '1.2.30' }
39+
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.32' }
40+
ton_labs_assembler = { git = "https://github.com/tonlabs/ton-labs-assembler.git", tag = '1.2.31' }
4141

4242
# TBD
4343
#ethcore-network = { git = "https://github.com/paritytech/parity-ethereum.git", package = "ethcore-network" }

ton-node-se/ton_node_startup/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ clap = "2.32.0"
88
log = "0.4.6"
99
log4rs = "0.8.3"
1010
ton_node = { path = "../ton_node", features = ["startup_node"], package = "ton_node_old" }
11-
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.38' }
12-
ton_block_json = { git = "https://github.com/tonlabs/ton-labs-block-json.git", tag = '0.7.3' }
13-
ton_executor = { git = 'https://github.com/tonlabs/ton-labs-executor', tag = '1.15.54' }
11+
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.7.39' }
12+
ton_block_json = { git = "https://github.com/tonlabs/ton-labs-block-json.git", tag = '0.7.5' }
13+
ton_executor = { git = 'https://github.com/tonlabs/ton-labs-executor', tag = '1.15.56' }
1414
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.10.12' }
15-
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.31' }
15+
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.32' }
1616
ed25519-dalek = "1.0.0-pre.4"
1717
reqwest = "0.9.7"
1818
http = "0.1.17"

ton-node-se/ton_node_startup/src/types.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use ton_node::node_engine::{DocumentsDb, MessagesReceiver};
2121
use ton_node::error::{NodeResult, NodeErrorKind, NodeError};
2222
use ton_node::node_engine::messages::{InMessagesQueue, QueuedMessage};
2323
use serde::Deserialize;
24-
use ton_types::{AccountId, SliceData};
24+
use ton_types::{AccountId, SliceData, BuilderData};
2525
use ton_types::cells_serialization::serialize_toc;
2626
use ton_types::types::UInt256;
2727
use std::io::Cursor;
@@ -405,9 +405,17 @@ impl DocumentsDb for ArangoHelper {
405405
let account_addr = account.get_id().unwrap_or_default();
406406
let cell = account.serialize()?;
407407
let boc = serialize_toc(&cell)?;
408+
let mut boc1 = None;
409+
if account.init_code_hash().is_some() {
410+
// new format
411+
let mut builder = BuilderData::new();
412+
account.write_original_format(&mut builder)?;
413+
boc1 = Some(serialize_toc(&builder.into_cell()?)?);
414+
}
408415
let set = AccountSerializationSet {
409416
account,
410417
boc,
418+
boc1,
411419
proof: None,
412420
..Default::default()
413421
};

0 commit comments

Comments
 (0)