Giter VIP home page Giter VIP logo

main.ton.dev's Introduction

README

This HOWTO contains instructions on how to build and configure a RUST validator node in TON blockchain. The instructions and scripts below were verified on Ubuntu 20.04.

Table of Contents

Getting Started

1. System Requirements

Configuration CPU (threads) RAM (GiB) Storage (GiB) Network (Gbit/s)
Minimum 48 128 1000 1

SSD/NVMe disks are obligatory.

2. Prerequisites

2.1 Set the Environment

Adjust (if needed) main.ton.dev/scripts/env.sh:

Set export DEPOOL_ENABLE=yes in env.sh for a depool validator (an elector request is sent to a depool from a validator multisignature wallet).

Set export DEPOOL_ENABLE=no in env.sh for a direct staking validator (an elector request is sent from a multisignature wallet directly to the elector).

cd main.ton.dev/scripts/
. ./env.sh 

Note: Make sure to run the script as . ./env.sh, not ./env.sh

2.2 Install Dependencies

install_deps.sh script supports Ubuntu OS only.

./install_deps.sh 

Install and configure Docker according to the official documentation.

Note: Make sure to add your user to the docker group, or run subsequent command as superuser:

sudo usermod -a -G docker $USER

3. Deploy RUST Validator Node

Do this step when the network is launched. Deploy the node:

./deploy.sh 2>&1 | tee ./deploy.log

Note: the log generated by this command will be located in the main.ton.dev/scripts/ folder and can be useful for troubleshooting.

Wait until the node is synced. Depending on network throughput this step may take significant time (up to several hours).

4. Check Node synchronization

Use the following command to check if the node is synced:

docker exec -it rnode /ton-node/tools/console -C /ton-node/configs/console.json --cmd getstats

Script output example:

tonlabs console 0.1.254
COMMIT_ID: 
BUILD_DATE: 2021-12-24 10:53:20 +0300
COMMIT_DATE: 
GIT_BRANCH: 
{
    "sync_status":    "synchronization finished",
    "masterchainblocktime":    1640343840,
    "masterchainblocknumber":    13393489,
    "timediff":    4,
    "in_current_vset_p34":    true,
    "in_next_vset_p36":    false,
    "last_applied_masterchain_block_id":    {"shard":"-1:8000000000000000","seq_no":13393489,"rh":"e74d505222bbe64617bbd42939cf01334b035990ae4b4e285e67ecbb1b537dd3","fh":"fc0be7c22310389400a7bdbd000b3737b317ce44d92e9a5ed72086c4fa404afa"},
    "processed_workchain":    0,
    "validation_stats":    {
  "-1:8000000000000000": "1 sec ago",
  "0:e800000000000000": "1 sec ago"
},
    "collation_stats":    {
  "-1:8000000000000000": "never",
  "0:e800000000000000": "6 sec ago"
},
    "tps_10":    2,
    "tps_300":    1
}

If the timediff parameter is less than 10 seconds, synchronization with masterchain is complete. "sync_status": "synchronization finished" means synchronization with workchains is complete

Note: The sync process may not start for up to one hour after node deployment, during which this command may result in error messages. If errors persist for more than an hour after deployment, review deployment log for errors and check the network status.

5. Configure validator multisignature wallet

There is a small difference between direct staking and DePool validators on this step:

  • For direct staking validator it is necessary to create and deploy a validator SafeMultisig wallet in -1 chain.
  • For a DePool validator it is necessary to create and deploy a validator SafeMultisig wallet in 0 chain.

You can use TONOS-CLI for this purpose. It should be configured to connect to the main.ton.dev network.

Refer to this document for the detailed wallet creation procedure, or follow the links in the short guide below:

  1. All wallet custodians should create seed phrases and public keys for themselves. At least three custodians are recommended for validator wallet, one of which will be used by the validator node. All seed phrases should be kept secret by their owners and securely backed up.
  2. The wallet deployer (who may or may not be one of the custodians) should gather the public keys from all custodians.
  3. The wallet deployer should obtain SafeMultisig contract code from the repository.
  4. The wallet deployer should generate deployment keys.
  5. The wallet deployer should generate validator wallet address: in -1 chain for direct staking validator or in 0 chain for a DePool validator.
  6. Any user should send at least 1 token to the generated wallet address to create it in the blockchain.
  7. The wallet deployer should deploy the wallet contact to the blockchain and set all gathered public keys as its custodians. At this step the number of custodian signatures required to make transactions from the wallet is also set (>=2 recommended for validator wallets). Deploy to -1 chain for direct staking validator or to 0 chain for a DePool validator.
  8. In case of direct staking, the funds for staking should be transferred to the newly created validator wallet.

Once the wallet is deployed, place 2 files on the validator node:

  • /ton-node/configs/${VALIDATOR_NAME}.addr should contain validator multisignature wallet address in form X:XXX...XXX (the folder on the host is main.ton.dev/docker-compose/ton-node/configs)
  • /ton-node/configs/keys/msig.keys.json should contain validator multisignature custodian's keypair (the folder on the host is main.ton.dev/docker-compose/ton-node/configs/keys/)

The node will use the wallet address and the keys provided to it to generate election requests each validation cycle.

Note: If the validator wallet requires more than 1 custodian signature to make transactions, make sure each transaction sent by the validator node is confirmed by the required amount of custodians.

6. Configure DePool

For a DePool validator it is necessary to deploy a DePool contract to workchain 0.

You can use TONOS-CLI for this purpose. It should be configured to connect to the main.ton.dev network.

Refer to this document for the detailed DePool creation procedure, or follow the links in the short guide below:

  1. Obtain contract code from the repository.
  2. Generate deployment keys.
  3. Calculate contract addresses.
  4. Send tokens to the calculated addresses.
  5. Deploy contracts. Make sure to specify your validator wallet in the DePool contract at this step.
  6. Configure DePool state update method.

Once DePool is successfully deployed and configured to be regularly called to update its state, you can make stakes in it. Note that validator stakes must always exceed validator assurance, otherwise DePool will not participate in elections.

Also note, that DePool and supporting contracts balance should be monitored and kept positive at all times.

Once the validator wallet and the DePool are deployed, place 3 files on the validator node:

  • /ton-node/configs/${VALIDATOR_NAME}.addr should contain validator multisignature wallet address in form 0:XXX...XXX (the folder on the host is main.ton.dev/docker-compose/ton-node/configs)
  • /ton-node/configs/keys/msig.keys.json should contain validator multisignature custodian's keypair (the folder on the host is main.ton.dev/docker-compose/ton-node/configs/keys/)
  • /ton-node/configs/depool.addr should contain DePool address in form 0:XXX...XXX (the folder on the host is main.ton.dev/docker-compose/ton-node/configs)

The script generating validator election requests (directly through multisig wallet, or through DePool, depending on the setting selected on step 2.1) will run regularly, once the necessary addresses and keys are provided.

7. Upgrade RUST Validator Node

Note: You may need to renew your copy of main.ton.dev scripts but do not remove any working files from the previous deployment (for example, configs folder).

Adjust (specify new commit ID) main.ton.dev/scripts/env.sh:

export TON_NODE_GITHUB_REPO="https://github.com/tonlabs/ton-labs-node.git"
export TON_NODE_GITHUB_COMMIT_ID="master"
export TON_NODE_TOOLS_GITHUB_REPO="https://github.com/tonlabs/ton-labs-node-tools.git"
export TON_NODE_TOOLS_GITHUB_COMMIT_ID="master"
export TONOS_CLI_GITHUB_REPO="https://github.com/tonlabs/tonos-cli.git"
export TONOS_CLI_GITHUB_COMMIT_ID="master"

Upgrade the node:

./upgrade.sh 2>&1 | tee ./upgrade.log

Note: the log generated by this command will be located in the main.ton.dev/scripts/ folder and can be useful for troubleshooting.

Wait until the node is synced.

Stopping, restarting the RUST Node

Note: call docker-compose commands from the main.ton.dev/docker-compose/ton-node folder.

To stop the node use the following command:

docker-compose stop

To restart a stopped node use the following command:

docker-compose restart

Logging

During deployment

It is highly recommended to record the full log during node deployment:

./deploy.sh 2>&1 | tee ./deploy.log

The log is saved to the main.ton.dev/scripts/ folder next to the deployment script and can be useful for troubleshooting.

During operation

When operational, the node keeps a number of logs in the main.ton.dev/docker-compose/ton-node/logs folder.

Logs are generated with log4rs framework. For detailed documentation on it refer to https://docs.rs/log4rs/1.0.0/log4rs/.

Logging configuration is determined by the main.ton.dev/docker-compose/ton-node/configs/log_cfg.yml file. By default is contains the recommended configuration for the Rust node.

refresh_rate: 30 seconds

appenders:
  stdout:
    kind: console
    encoder:
      pattern: "{d(%s.%f)} {l} [{h({t})}] {I}: {m}{n}"

  stdout_ref:
    kind: console
    encoder:
      pattern: "{f}:{L} {l} [{h({t})}] {I}: {m}{n}"

  logfile:
    kind: file
    path: "/ton-node/logs/output.log"
    encoder:
      pattern: "{d(%s.%f)} {l} [{h({t})}] {I}: {m}{n}"

  rolling_logfile:
    kind: rolling_file
    encoder:
      pattern: "{d(%Y-%m-%d %H:%M:%S.%f)} {l} [{h({t})}] {I}: {m}{n}"
    path: /ton-node/logs/output.log
    policy:
      kind: compound
      trigger:
        kind: size
        limit: 50 gb
      roller:
        kind: fixed_window
        pattern: '/ton-node/logs/output_{}.log'
        base: 1
        count: 1

  tvm_logfile:
    kind: file
    path: "target/log/tvm.log"
    encoder:
      pattern: "{m}{n}"

root:
  level: info
  appenders:
    - rolling_logfile

loggers:
  # node messages
  ton_node:
    level: trace
  boot:
    level: trace
  sync:
    level: trace

  # adnl messages
  adnl:
    level: info

  overlay:
    level: info

  rldp:
    level: info

  dht:
    level: info

  # block messages
  ton_block:
    level: debug

  # block messages
  executor:
    level: debug

  # tvm messages
  tvm:
    level: info

  librdkafka:
    level: info

  validator:
    level: debug

  catchain:
    level: debug

  validator_session:
    level: debug

The currently configured targets are the following:

ton_node: node-related messages, except initial boot and sync, block exchange with other nodes

boot: initial boot messages, creation of trusted key block chain, loading blockchain state

sync: node synchronization - loading a certain number of most recent blocks

adnl: messages of the ADNL protocol

overlay: messages of the overlay protocol

rldp: messages of the RLDP protocol

dht: messages of the DHT protocol

ton_block: messages of the block structures library, logs are turned on in debug

executor: messages of the smart contract execution library, logs are turned on in debug

tvm: ton virtual machine messages, logs are turned on in debug

librdkafka: kafka client library messages

validator: top level consensus protocol messages

catchain: low level consensus protocol messages

validator_session: mid level consensus protocol messages

Migrating from C++ node

To migrate your validator from legacy C++ node to Rust node, complete the following steps:

  1. Set up a new host for the Rust node, according to steps 1-3 of this document.
  2. Wait for node to sync. Check sync according to step 4 of this document.
  3. Stop the C++ node sending election requests (by default - disable scheduling of the validator script). Do not shut down the C++ validator itself, let it finish the current round.
  4. Configure validator wallet and corresponding keys, optionally - DePool (copy them from C++ node files to Rust Node files). By default:
    1. Copy validator wallet address from ~/ton-keys/$(hostname -s).addr file on the C++ node to /ton-node/configs/${VALIDATOR_NAME}.addr on the Rust Node.
    2. Copy validator wallet keys from /ton-keys/msig.keys.json on the C++ node to /ton-node/configs/keys/msig.keys.json on the Rust Node.
    3. If you have a DePool set up, copy DePool address from ~/ton-keys/depool.addr on the C++ node to /ton-node/configs/depool.addr on the Rust Node. Once this is done, the Rust node validator script will start automatically with the next round.
  5. DO NOT shut down the C++ host. Wait for the C++ node to complete the current round until the validator set is changed.
  6. Check logs/validator.log on the Rust node, and make sure the first election request was successfully sent. There should be no errors in the log.
  7. Only once the validator set changes, the C++ node is no longer a validator and the Rust node starts validating (validation_stats and collation_stats in the console output should not be empty), shut down the C++ node.

Troubleshooting

Here are some solutions to frequently encountered problems.

1. Couldn’t connect to Docker daemon at http+docker://localhost

This error occurs in two cases. Either the docker daemon isn't running, or current user doesn't have rights to access docker.

You can fix the rights issue either by running relevant commands as the superuser or adding the user to the docker group:

sudo usermod -a -G docker $USER

Make sure to restart the system or log out and back in, for the new group settings to take effect.

2. thread 'main' panicked error when checking node synchronization

The following error may occur for a short time immediately after node deployment when attempting to check synchronization:

thread 'main' panicked at 'Can't create client: Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }', bin/console.rs:454:59

Currently this is expected behavior, unless it persists for more than a few minutes. If it does persist, check network status at https://ton.live/, and, if the network is up and running, review deployment logs for errors.

3. Error executing command when checking node synchronization

The following error may occur for up to an hour after node deployment when attempting to check synchronization:

Error executing command: Error receiving answer: early eof bin/console.rs:296

Currently this is expected behavior, unless it persists for more than one hour. If it does persist, check network status at https://ton.live/, and, if the network is up and running, review deployment logs for errors.

4. Cannot stop/restart/remove node container

Make sure you are running all docker-compose commands from the main.ton.dev/docker-compose/ton-node folder.

5. DePool state not updating

It's recommended to send at least two ticktocks while the elections are open. For rust node you can use the provided ticktock script, which sends 5 ticktocks after the elections open.

main.ton.dev's People

Contributors

50c3 avatar anvme avatar ar-tmp avatar aslanin avatar custler avatar depool-live avatar futurizt avatar humungusthelord avatar machfund avatar muhazzz avatar rexagon avatar slavaschmidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

main.ton.dev's Issues

error: ‘OPENSSL_init_crypto’ was not declared in this scope; did you mean ‘OPENSSL_init’

FAILED: tdutils/CMakeFiles/tdutils.dir/td/utils/crypto.cpp.o
ccache /usr/bin/c++  -D_FILE_OFFSET_BITS=64 -D_INTERNAL_COMPILE=1 -D_TONLIB_COMPILE=1 -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I../tdutils -Itdutils -I../third-party/crc32c/include -isystem ../third-party/abseil-cpp -march=corei7-avx -pthread -std=c++14 -fno-omit-frame-pointer -ffunction-sections -fdata-sections -Wall -Wextra -Wimplicit-fallthrough=2 -Wpointer-arith -Wcast-qual -Wsign-compare -Wduplicated-branches -Wduplicated-cond -Walloc-zero -Wlogical-op -Wno-tautological-compare -Wpointer-arith -Wvla -Wnon-virtual-dtor -Wno-unused-parameter -Wconversion -Wno-sign-conversion -Wno-redundant-move -O2 -g -DNDEBUG -fPIC -MD -MT tdutils/CMakeFiles/tdutils.dir/td/utils/crypto.cpp.o -MF tdutils/CMakeFiles/tdutils.dir/td/utils/crypto.cpp.o.d -o tdutils/CMakeFiles/tdutils.dir/td/utils/crypto.cpp.o -c ../tdutils/td/utils/crypto.cpp
../tdutils/td/utils/crypto.cpp: In lambda function:
../tdutils/td/utils/crypto.cpp:147:12: error: ‘OPENSSL_init_crypto’ was not declared in this scope; did you mean ‘OPENSSL_init’?
  147 |     return OPENSSL_init_crypto(0, nullptr) != 0;
      |            ^~~~~~~~~~~~~~~~~~~
      |            OPENSSL_init
../tdutils/td/utils/crypto.cpp: In function ‘void td::init_crypto()’:
../tdutils/td/utils/crypto.cpp:152:4: error: void value not ignored as it ought to be
  145 |   static bool is_inited = [] {
      |                           ~~~~
  146 | #if OPENSSL_VERSION_NUMBER >= 0x10100000L
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  147 |     return OPENSSL_init_crypto(0, nullptr) != 0;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  148 | #else
      | ~~~~~
  149 |     OpenSSL_add_all_algorithms();
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  150 |     return true;
      |     ~~~~~~~~~~~~
  151 | #endif
      | ~~~~~~
  152 |   }();
      |   ~^~

openssl version
OpenSSL 1.1.0f 25 May 2017 (Library: OpenSSL 1.1.1f 31 Mar 2020)
OS Ubuntu 20.04 LTS

problem solved by replacing

return OPENSSL_init_crypto(0, nullptr) != 0;
-- to --
OPENSSL_init();
return true;

Error : 651

I try to get it running. But still getting an error

[ 2][t 4][1638950321.660666704][download-state.cpp:232][!downloadstatereq(-1,8000000000000000,0)] failed to download state : [Error : 651 : no nodes]

firewall is disabled. Can you help me?

Cannot build a node: Linking CXX sta...arty/rocksdb/librocksdb.a ninja: build stopped: subcommand failed.

[504/941] Generate common tl source files
FAILED: ../tl/generate/auto/tl/ton_api.cpp ../tl/generate/auto/tl/ton_api.h ../tl/generate/auto/tl/ton_api.hpp ../tl/generate/auto/tl/ton_api_json.cpp ../tl/generate/auto/tl/ton_api_json.h ../tl/generate/auto/tl/lite_api.cpp ../tl/generate/auto/tl/lite_api.h ../tl/generate/auto/tl/lite_api.hpp ../tl/generate/auto/tl/tonlib_api.cpp ../tl/generate/auto/tl/tonlib_api.h ../tl/generate/auto/tl/tonlib_api.hpp ../tl/generate/auto/tl/tonlib_api_json.cpp ../tl/generate/auto/tl/tonlib_api_json.h
cd /root/main.ton.dev/ton/tl/generate && /root/main.ton.dev/ton/build/tl/generate/generate_common
Illegal instruction
[521/941] Building CXX object tdac...iles/benchmark.dir/benchmark.cpp.o
ninja: build stopped: subcommand failed.

[518/941] Generate common tl source files
FAILED: ../tl/generate/auto/tl/ton_api.cpp ../tl/generate/auto/tl/ton_api.h ../tl/generate/auto/tl/ton_api.hpp ../tl/generate/auto/tl/ton_api_json.cpp ../tl/generate/auto/tl/ton_api_json.h ../tl/generate/auto/tl/lite_api.cpp ../tl/generate/auto/tl/lite_api.h ../tl/generate/auto/tl/lite_api.hpp ../tl/generate/auto/tl/tonlib_api.cpp ../tl/generate/auto/tl/tonlib_api.h ../tl/generate/auto/tl/tonlib_api.hpp ../tl/generate/auto/tl/tonlib_api_json.cpp ../tl/generate/auto/tl/tonlib_api_json.h
cd /root/main.ton.dev/ton/tl/generate && /root/main.ton.dev/ton/build/tl/generate/generate_common
Illegal instruction
[535/941] Building CXX object cryp...s/ton_crypto.dir/vm/stackops.cpp.o
ninja: build stopped: subcommand failed.

   ^

[575/941] Generate common tl source files
FAILED: ../tl/generate/auto/tl/ton_api.cpp ../tl/generate/auto/tl/ton_api.h ../tl/generate/auto/tl/ton_api.hpp ../tl/generate/auto/tl/ton_api_json.cpp ../tl/generate/auto/tl/ton_api_json.h ../tl/generate/auto/tl/lite_api.cpp ../tl/generate/auto/tl/lite_api.h ../tl/generate/auto/tl/lite_api.hpp ../tl/generate/auto/tl/tonlib_api.cpp ../tl/generate/auto/tl/tonlib_api.h ../tl/generate/auto/tl/tonlib_api.hpp ../tl/generate/auto/tl/tonlib_api_json.cpp ../tl/generate/auto/tl/tonlib_api_json.h
cd /root/main.ton.dev/ton/tl/generate && /root/main.ton.dev/ton/build/tl/generate/generate_common
Illegal instruction
[583/941] Linking CXX static library third-party/rocksdb/librocksdb.a
ninja: build stopped: subcommand failed.

In file included from ../crypto/tl/tlbc.cpp:3061:0:
../crypto/tl/tlbc-gen-cpp.cpp: In member function 'bool tlbc::CppTypeCode::output_print_simple_field(std::ostream&, const tlbc::Field&, std::__cxx11::string, const tlbc::TypeExpr*)':
../crypto/tl/tlbc-gen-cpp.cpp:2171:7: warning: unused variable 'l' [-Wunused-variable]
int l = (sz.is_fixed() ? sz.convert_min_size() : -1);
^
[572/941] Generate common tl source files
FAILED: ../tl/generate/auto/tl/ton_api.cpp ../tl/generate/auto/tl/ton_api.h ../tl/generate/auto/tl/ton_api.hpp ../tl/generate/auto/tl/ton_api_json.cpp ../tl/generate/auto/tl/ton_api_json.h ../tl/generate/auto/tl/lite_api.cpp ../tl/generate/auto/tl/lite_api.h ../tl/generate/auto/tl/lite_api.hpp ../tl/generate/auto/tl/tonlib_api.cpp ../tl/generate/auto/tl/tonlib_api.h ../tl/generate/auto/tl/tonlib_api.hpp ../tl/generate/auto/tl/tonlib_api_json.cpp ../tl/generate/auto/tl/tonlib_api_json.h
cd /root/main.ton.dev/ton/tl/generate && /root/main.ton.dev/ton/build/tl/generate/generate_common
Illegal instruction
[577/941] Linking CXX sta...arty/rocksdb/librocksdb.a
ninja: build stopped: subcommand failed.

[575/941] Generate common tl source files
FAILED: ../tl/generate/auto/tl/ton_api.cpp ../tl/generate/auto/tl/ton_api.h ../tl/generate/auto/tl/ton_api.hpp ../tl/generate/auto/tl/ton_api_json.cpp ../tl/generate/auto/tl/ton_api_json.h ../tl/generate/auto/tl/lite_api.cpp ../tl/generate/auto/tl/lite_api.h ../tl/generate/auto/tl/lite_api.hpp ../tl/generate/auto/tl/tonlib_api.cpp ../tl/generate/auto/tl/tonlib_api.h ../tl/generate/auto/tl/tonlib_api.hpp ../tl/generate/auto/tl/tonlib_api_json.cpp ../tl/generate/auto/tl/tonlib_api_json.h
cd /root/main.ton.dev/ton/tl/generate && /root/main.ton.dev/ton/build/tl/generate/generate_common
Illegal instruction
[581/941] Linking CXX sta...arty/rocksdb/librocksdb.a
ninja: build stopped: subcommand failed.

error building ton-labs-assembler on Ubuntu 18.04

Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-147-generic x86_64)
rustc 1.53.0 (53cb7b09b 2021-06-17)

Updating git repository https://github.com/tonlabs/ton-labs-assembler.git
error: failed to download zeroize v1.4.1

Caused by:
unable to get packages from source

Caused by:
failed to parse manifest at /home/ton/.cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-1.4.1/Cargo.toml

Caused by:
cargo-features = ["resolver"] was found in the wrong location, it should be set at the top of Cargo.toml before any tables

INFO: TIME_DIFF​​ not dicrease

According to the document said

If the TIME_DIFF parameter equals a few seconds, synchronization is complete.

But I have ran the node about 24 hours the still high like below:
INFO: TIME_DIFF = -129423

Is there anything to verify please advise.

rust error[E0658] during build the node

Hello, trying to build the node using ./build.sh script
at the end the building got an error:
"
error[E0658] : use of unstable library feature 'alloc' " this library is unlikely to be stabilized in its current form or name (see issue #27783)
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/debug-helper-0.3.8/src/lib.rs:305:1
|
305 | extern crate alloc:
|
error: aborting due previous error
For more information about this error, try 'rustc --explain E0658'

build error

ubuntu 18
[505/941] Generate common tl source files
FAILED: ../tl/generate/auto/tl/ton_api.cpp ../tl/generate/auto/tl/ton_api.h ../tl/generate/auto/tl/ton_api.hpp ../tl/generate/auto/tl/ton_api_json.cpp ../tl/generate/auto/tl/ton_api_json.h ../tl/generate/auto/tl/lite_api.cpp ../tl/generate/auto/tl/lite_api.h ../tl/generate/auto/tl/lite_api.hpp ../tl/generate/auto/tl/tonlib_api.cpp ../tl/generate/auto/tl/tonlib_api.h ../tl/generate/auto/tl/tonlib_api.hpp ../tl/generate/auto/tl/tonlib_api_json.cpp ../tl/generate/auto/tl/tonlib_api_json.h
cd /home/ton/ton/tl/generate && /home/ton/ton/build/tl/generate/generate_common
Illegal instruction (core dumped)
[514/941] Linking CXX static library third-party/rocksdb/librocksdb.a
ninja: build stopped: subcommand failed.

Build error[E0282]: type annotations needed

./build.sh fails with message:

   Compiling ton_sdk v0.1.0 (https://github.com/tonlabs/TON-SDK.git?branch=0.21.200-rc#a60a2dcf)
error[E0282]: type annotations needed
   --> /home/triklozoid/.cargo/git/checkouts/ton-sdk-11823a0ea1fdf592/a60a2dc/ton_sdk/src/contract.rs:561:19
    |
561 |             &mut |ref mut key, ref mut value| -> Result<bool> {
    |                   ^^^^^^^^^^^ consider giving this closure parameter a type
    |
    = note: type must be known at this point

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.
error: could not compile `ton_sdk`.
warning: build failed, waiting for other jobs to finish...
error: build failed

System info:

Linux  4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

Deploy Multisignature wallet error

I got error when deploy Multisignature wallet
command:
"${UTILS_DIR}/tonos-cli" deploy "${CONFIGS_DIR}/SafeMultisigWallet.tvc" '{"owners":["0xPUBLIC_KEY_FROM_msig.keys.json","0xPUBLIC_KEY_FROM_tonos-cli_genphrase" ],"reqConfirms":1}' --abi "${CONFIGS_DIR}/SafeMultisigWallet.abi.json" --sign /root/ton-keys/msig.keys.json

Output command:
Input arguments: tvc: /root/main.ton.dev/configs/SafeMultisigWallet.tvc params: {"owners":["0x212****","0x4df***"],"reqConfirms":1} abi: /root/main.ton.dev/configs/SafeMultisigWallet.abi.json keys: /root/ton-keys/msig.keys.json wc: None Deploying... Error: deploy failed: Inner SDK error. source: client code: 1006 message: Message expired data.phase: null data.transaction_id: null Error: 1

file /root/ton-keys/msig.keys.json:
{ "public": "2*******", "secret": "4*******" }

hostname: validator

file /root/ton-keys/validator.addr
-1:d9*******

validator status:

./check_node_sync_status.sh connecting to [127.0.0.1:3030] local key: 59******* remote key: DEA**** conn ready unixtime 1589039725 masterchainblock (-1,8000000000000000,32318):A7977102491363DFA5BF3DF3645F1C87A44BA1F2FAC09E98B1793C4137607524:67776A8792ED8D273AB5A511327F25A326A56C9B3540CC86A2A784EEFD1BAE57 masterchainblocktime 1589039721 gcmasterchainblock (-1,8000000000000000,27602):FA2447CFE5083606F8F334CA616AEA2E176C0380CEF9425DF1211B48517B0811:4D9D5F140B6672F801F1AC8B25AC0015A64750CDA1A1143213658DBF936F6FFF keymasterchainblock (-1,8000000000000000,28430):091A2E4D4D7DD7A736AC7335428EC4D41C0FC5FDF895CA016D97815EC5654ECC:D0846B3E4E618E5CAA54862E57FA3FB2FEAB16F6C1F11FD17916F8152CB2B3DB knownkeymasterchainblock (-1,8000000000000000,28430):091A2E4D4D7DD7A736AC7335428EC4D41C0FC5FDF895CA016D97815EC5654ECC:D0846B3E4E618E5CAA54862E57FA3FB2FEAB16F6C1F11FD17916F8152CB2B3DB rotatemasterchainblock (-1,8000000000000000,32255):AD5C290D101DCA92BF7FF547C60D149286A6F4858DAC439A709738AABB933BF8:0AADA9354AAFF7110B7376DD593A45BAD4D84DE3E54EF45084AFE4ECFCC83548 stateserializermasterchainseqno 32315 shardclientmasterchainseqno 27602 INFO: TIME_DIFF = -4

Than what do I do

I cant understand anything about this coding. What can I do to help build network and earn tons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.