Skip to content

Commit f3da7d9

Browse files
committed
Update version. #none
1 parent b621e41 commit f3da7d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1338
-1687
lines changed

CODEOWNERS

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
# @global-owner1 and @global-owner2 will be requested for
4+
# review when someone opens a pull request.
5+
* @bvscd @yaroslavser @Sumrachek @iagen @LenyKholodov @shd @sv-91

Cargo.toml

+15-15
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build = 'common/build/build.rs'
33
edition = '2021'
44
name = 'ton_node'
5-
version = '0.51.14'
5+
version = '0.51.22'
66

77
[workspace]
88
members = [ 'storage' ]
@@ -24,7 +24,7 @@ futures-timer = '3.0.1'
2424
hex = '0.4'
2525
lazy_static = '1.4.0'
2626
log = '0.4'
27-
log4rs = '1'
27+
log4rs = '1.2'
2828
log4rs-rolling-file = '0.2.0'
2929
num-bigint = '0.4'
3030
openssl = '0.10.35'
@@ -37,26 +37,26 @@ sha2 = '0.10'
3737
spin = '0.7.1'
3838
stream-cancel = '0.8.0'
3939
string-builder = '^0.2.0'
40-
adnl = { features = [ 'client', 'node', 'server' ], git = 'https://github.com/tonlabs/ton-labs-adnl', tag = '0.7.92' }
40+
adnl = { features = [ 'client', 'node', 'server' ], git = 'https://github.com/tonlabs/ton-labs-adnl', tag = '0.7.118' }
4141
catchain = { path = 'catchain' }
4242
ctrlc = { features = [ 'termination' ], version = '3.2.1' }
43-
dht = { git = 'https://github.com/tonlabs/ton-labs-dht', tag = '0.5.90' }
44-
ever-crypto = { git = 'https://github.com/tonlabs/ever-labs-crypto', tag = '0.1.55' }
43+
dht = { git = 'https://github.com/tonlabs/ton-labs-dht', tag = '0.5.129' }
44+
ever-crypto = { git = 'https://github.com/tonlabs/ever-labs-crypto', tag = '0.1.79' }
4545
lockfree = { git = 'https://github.com/tonlabs/lockfree.git' }
46-
overlay = { git = 'https://github.com/tonlabs/ton-labs-overlay', tag = '0.6.77' }
47-
rldp = { git = 'https://github.com/tonlabs/ton-labs-rldp', tag = '0.7.86' }
46+
overlay = { git = 'https://github.com/tonlabs/ton-labs-overlay', tag = '0.6.112' }
47+
rldp = { git = 'https://github.com/tonlabs/ton-labs-rldp', tag = '0.7.114' }
4848
rustracing = { optional = true, version = '0.4.0' }
4949
rustracing_jaeger = { optional = true, version = '0.4.1' }
5050
statsd = { optional = true, version = '0.15' }
5151
storage = { path = 'storage' }
5252
tokio = { features = [ 'rt-multi-thread' ], version = '1.5' }
53-
ton_abi = { git = 'https://github.com/tonlabs/ton-labs-abi.git', tag = '2.3.23' }
54-
ton_api = { git = 'https://github.com/tonlabs/ton-labs-tl', package = 'ton_api', tag = '0.2.143' }
55-
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.8.16' }
56-
ton_block_json = { git = 'https://github.com/tonlabs/ton-labs-block-json.git', tag = '0.7.55' }
57-
ton_executor = { git = 'https://github.com/tonlabs/ton-labs-executor', tag = '1.15.113' }
58-
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.11.8' }
59-
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.58' }
53+
ton_abi = { git = 'https://github.com/tonlabs/ton-labs-abi.git', optional = true, tag = '2.3.53' }
54+
ton_api = { git = 'https://github.com/tonlabs/ton-labs-tl', package = 'ton_api', tag = '0.2.166' }
55+
ton_block = { git = 'https://github.com/tonlabs/ton-labs-block', tag = '1.9.17' }
56+
ton_block_json = { git = 'https://github.com/tonlabs/ton-labs-block-json.git', tag = '0.7.82' }
57+
ton_executor = { git = 'https://github.com/tonlabs/ton-labs-executor', tag = '1.15.152' }
58+
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.12.5' }
59+
ton_vm = { git = 'https://github.com/tonlabs/ton-labs-vm', tag = '1.8.95' }
6060
validator_session = { path = 'validator-session' }
6161

6262
[features]
@@ -67,7 +67,7 @@ export_key = [ 'catchain/export_key', 'ever-crypto/export_key' ]
6767
external_db = [ 'rdkafka' ]
6868
gosh = [ 'ton_block/gosh', 'ton_vm/gosh' ]
6969
metrics = [ 'statsd' ]
70-
slashing = [ ]
70+
slashing = [ 'ton_abi' ]
7171
telemetry = [ 'adnl/telemetry', 'dht/telemetry', 'rldp/telemetry', 'overlay/telemetry', 'storage/telemetry' ]
7272
trace_alloc = [ ]
7373
trace_alloc_detail = [ 'trace_alloc' ]

README.md

-12
This file was deleted.

catchain/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ metrics-runtime = '0.13.0'
1919
rand = '0.8'
2020
regex = '1.3.1'
2121
sha2 = '0.10'
22-
adnl = { features = [ 'node' ], git = 'https://github.com/tonlabs/ton-labs-adnl', tag = '0.7.92' }
23-
ever-crypto = { git = 'https://github.com/tonlabs/ever-labs-crypto', tag = '0.1.55' }
24-
overlay = { git = 'https://github.com/tonlabs/ton-labs-overlay', tag = '0.6.77' }
25-
rldp = { git = 'https://github.com/tonlabs/ton-labs-rldp', tag = '0.7.86' }
22+
adnl = { features = [ 'node' ], git = 'https://github.com/tonlabs/ton-labs-adnl', tag = '0.7.118' }
23+
ever-crypto = { git = 'https://github.com/tonlabs/ever-labs-crypto', tag = '0.1.79' }
24+
overlay = { git = 'https://github.com/tonlabs/ton-labs-overlay', tag = '0.6.112' }
25+
rldp = { git = 'https://github.com/tonlabs/ton-labs-rldp', tag = '0.7.114' }
2626
storage = { path = '../storage' }
2727
tokio = { features = [ 'rt-multi-thread' ], version = '1.5' }
28-
ton_api = { git = 'https://github.com/tonlabs/ton-labs-tl', package = 'ton_api', tag = '0.2.143' }
29-
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.11.8' }
28+
ton_api = { git = 'https://github.com/tonlabs/ton-labs-tl', package = 'ton_api', tag = '0.2.166' }
29+
ton_types = { git = 'https://github.com/tonlabs/ton-labs-types', tag = '1.12.5' }
3030

3131
[features]
3232
default = [ ]

commit_hash.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
47e74bdea8c2f8fb933f964b511f094c8454c265
1+
b878eca4ff7fbc6dfe52483430ddedcf69202ed7

common

deps_map.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"adnl":"a9638e86236858ff6fe46ce49b5c4c8210be3247","dht":"d88a499e2e00e42465c1f9f3f7e0c8f5eff5f49c","ever-crypto":"df922b4da9ae4029c872b44db0429984cefab180","overlay":"950385e79e15365ee8b99086e63e85a3be0d6110","rldp":"6f82051763dbffa779f8bd10a740f79db6f47e6e","ton-labs-abi":"12d80a4f4c803a9aa0271218864b1178e6668642","ton-tl":"44a75461704fe30eb1fc8c79785914f15b4f8894","ton-block":"821c95532e4e569dbb1e068f2959d32f47421cbc","ton-block-json":"a7d97122f5c62d4dd49152a58d74a01017a9cf74","ton-executor":"10a340fce77448285f6c9f5cfc9244f4c4d806f2","ton-types":"ce59ecfb5da3611c93c396eb730b8dcee565df7a","ton-vm":"52f13cab4f6773f87f664aa5827f90b91fe5a15f"}
1+
{"adnl":"1136be9ceb274059359d1dd8f648c4497558391f","dht":"4b493d8eed3389e23c19bb6ee32054e8591d659f","ever-crypto":"268cb21e6840a26ea29803ceec5e64351cdd5901","overlay":"c6393e8b44ceee69c01dfe5f5136e2343ad6e6df","rldp":"5b7daa4e2e752514b68209ed55a8677cc0e79aab","ton-labs-abi":"7e7a6a2b4c727e602e516a688cf3fb0e76238174","ton-tl":"cbcd0bee3c5e62c4eae28c0b3f979982eb23ee74","ton-block":"19132fa6357032497ab88743f580223ebcc599ec","ton-block-json":"fb106cc3ac75c81d1b776f4b3b5ad83b6e083f59","ton-executor":"b6208e6fbb717626d2fd0a15346e355f50daf25f","ton-types":"a81a0281d521d5ef013d77eb28a9ad2ed4b4aac1","ton-vm":"a00d2cd91e6bd1b5fa1f549b3aa5fd7ae9281ff1"}

docker/README-configs.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is folder with default configs from the repo.
2+
Applied configs may be located elsewhere. On the working note, check the `--configs` key

docker/build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
export DOCKER_BUILDKIT=1 ; docker build --tag rustnode:local --ssh default .

docker/download_src.py

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import os
2+
import urllib3
3+
import argparse
4+
import requests
5+
import subprocess
6+
7+
build_url = "https://builder.tonlabs.io/jenkins/job/ton-node/job/master/lastSuccessfulBuild/buildNumber"
8+
artifact_url = 'https://builder.tonlabs.io/jenkins/job/ton-node/job/master/{}/artifact/tonlabs.zip'
9+
10+
def main(args):
11+
if not os.path.exists(args.credentials):
12+
print("[-] Invalid path to credentials")
13+
return
14+
15+
if args.source == 'git':
16+
download_github(args.credentials)
17+
else:
18+
download_jenkins(args.credentials)
19+
20+
21+
def download_github(creds):
22+
os.mkdir('/tonlabs')
23+
os.chdir('/tonlabs')
24+
subprocess.run(['ssh-agent', '-s'])
25+
subprocess.run(['ssh-add', creds])
26+
subprocess.run(['git', 'clone', '[email protected]:tonlabs/ton-node.git'])
27+
28+
29+
def download_jenkins(credentials):
30+
def get_creds(filepath):
31+
with open(filepath, "r") as f:
32+
uname_pass = f.readline()
33+
if uname_pass.find(':') != -1:
34+
return uname_pass.split(':')
35+
else:
36+
print("[-] Invalid jenkins credentials file")
37+
return ("","")
38+
39+
username,token = get_creds(credentials)
40+
41+
build_num_req = requests.get(_url_bn, auth=(username, token))
42+
if build_num_req.status_code != 200:
43+
print("Request error")
44+
return
45+
46+
build_num = build_num_req.text
47+
download_url = artifact_url.format(build_num)
48+
zip_req = requests.get(donwload_url, auth=(username, token))
49+
if zip_req.status_code != 200:
50+
print("Request error")
51+
return
52+
53+
with open("tonlabs.zip", "wb") as f:
54+
f.write(zip_req.content)
55+
suprocess.run(['unzip', 'tonlabs.zip', '-d', '/'])
56+
57+
58+
if __name__ == "__main__":
59+
parser = argparse.ArgumentParser(description='download ton-node sources')
60+
parser.add_argument('-c', '--cred', type=str, dest='credentials', help='Path to file with credentials (private key for git and login:pass for jenkins)')
61+
parser.add_argument('source', type=str, choices=['git', 'jenkins'], help='git repository / jenkins artifacts')
62+
args = parser.parse_args()
63+
main(args)

docker/entrypoint.sh

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/bin/bash -eEx
2+
3+
#
4+
# Copyright (C) 2019-2021 TON Labs. All Rights Reserved.
5+
#
6+
# Licensed under the SOFTWARE EVALUATION License (the "License"); you may not use
7+
# this file except in compliance with the License. You may obtain a copy of the
8+
# License at:
9+
#
10+
# https://www.ton.dev/licenses
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific TON DEV software governing permissions and limitations
16+
# under the License.
17+
#
18+
19+
GREEN='\033[0;32m'
20+
NC='\033[0m' # No Color
21+
22+
echo "INFO: R-Node startup..."
23+
24+
echo "INFO: NETWORK_TYPE = ${NETWORK_TYPE}"
25+
echo "INFO: DEPLOY_TYPE = ${DEPLOY_TYPE}"
26+
echo "INFO: CONFIGS_PATH = ${CONFIGS_PATH}"
27+
echo "INFO: \$1 = $1"
28+
echo "INFO: \$2 = $2"
29+
30+
NODE_EXEC='/ton-node/ton_node_kafka'
31+
if [ "${TON_NODE_ENABLE_KAFKA}" -ne 1 ]
32+
then
33+
echo "Kafka disabled"
34+
NODE_EXEC='/ton-node/ton_node_no_kafka'
35+
else
36+
echo "Kafka enabled"
37+
fi
38+
if [ "${TON_NODE_ENABLE_COMPRESSION}" -eq 1 ]
39+
then
40+
echo "Compression enabled"
41+
NODE_EXEC="${NODE_EXEC}_compression"
42+
else
43+
echo "Compression disabled"
44+
fi
45+
46+
function f_get_ton_global_config_json() {
47+
if [ "${NETWORK_TYPE}" = "customnet" ]; then
48+
if [ -f "${CONFIGS_PATH}/ton-global.config.json" ]; then
49+
echo "WARNING: ${CONFIGS_PATH}/ton-global.config.json will be used"
50+
else
51+
echo "WARNING: ${CONFIGS_PATH}/ton-global.config.json does not exist"
52+
exit 1
53+
fi
54+
else
55+
curl -sS "https://builder.tonlabs.io/nodes/${NETWORK_TYPE}/ton-global.config.json" -o "${CONFIGS_PATH}/ton-global.config.json"
56+
fi
57+
}
58+
59+
function f_iscron() {
60+
kill -0 "$(cat /var/run/crond.pid 2>/dev/null)" 2>/dev/null || crond
61+
}
62+
63+
#f_iscron
64+
65+
f_get_ton_global_config_json
66+
67+
68+
# main
69+
70+
if [ "${1}" = "bash" ];then
71+
tail -f /dev/null
72+
else
73+
cd /ton-node
74+
exec $NODE_EXEC --configs "${CONFIGS_PATH}" ${TON_NODE_EXTRA_ARGS} >> /ton-node/logs/output.log 2>&1
75+
fi
76+

0 commit comments

Comments
 (0)