Giter VIP home page Giter VIP logo

ton's Introduction

TON logo

Reference implementation of TON Node and tools


Ton Research Telegram Community Group Telegram Foundation Group Telegram Community Chat

Twitter Group TON Overflow Group Stack Overflow Group

Main TON monorepo, which includes the code of the node/validator, lite-client, tonlib, FunC compiler, etc.

The Open Network

The Open Network (TON) is a fast, secure, scalable blockchain focused on handling millions of transactions per second (TPS) with the goal of reaching hundreds of millions of blockchain users.

Updates flow

  • master branch - mainnet is running on this stable branch.

    Only emergency updates, urgent updates, or updates that do not affect the main codebase (GitHub workflows / docker images / documentation) are committed directly to this branch.

  • testnet branch - testnet is running on this branch. The branch contains a set of new updates. After testing, the testnet branch is merged into the master branch and then a new set of updates is added to testnet branch.

  • backlog - other branches that are candidates to getting into the testnet branch in the next iteration.

Usually, the response to your pull request will indicate which section it falls into.

"Soft" Pull Request rules

  • Thou shall not merge your own PRs, at least one person should review the PR and merge it (4-eyes rule)
  • Thou shall make sure that workflows are cleanly completed for your PR before considering merge

Build TON blockchain

Ubuntu 20.4, 22.04 (x86-64, aarch64)

Install additional system libraries

  sudo apt-get update
  sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev
          
  wget https://apt.llvm.org/llvm.sh
  chmod +x llvm.sh
  sudo ./llvm.sh 16 all

Compile TON binaries

  cp assembly/native/build-ubuntu-shared.sh .
  chmod +x build-ubuntu-shared.sh
  ./build-ubuntu-shared.sh  

MacOS 11, 12 (x86-64, aarch64)

  cp assembly/native/build-macos-shared.sh .
  chmod +x build-macos-shared.sh
  ./build-macos-shared.sh

Windows 10, 11, Server (x86-64)

You need to install MS Visual Studio 2022 first. Go to https://www.visualstudio.com/downloads/ and download MS Visual Studio 2022 Community.

Launch installer and select Desktop development with C++. After installation, also make sure that cmake is globally available by adding C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin to the system PATH (adjust the path per your needs).

Open an elevated (Run as Administrator) x86-64 Native Tools Command Prompt for VS 2022, go to the root folder and execute:

  copy assembly\native\build-windows.bat .
  build-windows.bat

Building TON to WebAssembly

Install additional system libraries on Ubuntu

  sudo apt-get update
  sudo apt-get install -y build-essential git cmake ninja-build zlib1g-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev
          
  wget https://apt.llvm.org/llvm.sh
  chmod +x llvm.sh
  sudo ./llvm.sh 16 all

Compile TON binaries with emscripten

  cd assembly/wasm
  chmod +x fift-func-wasm-build-ubuntu.sh
  ./fift-func-wasm-build-ubuntu.sh

Building TON tonlib library for Android (arm64-v8a, armeabi-v7a, x86, x86-64)

Install additional system libraries on Ubuntu

  sudo apt-get update
  sudo apt-get install -y build-essential git cmake ninja-build automake libtool texinfo autoconf libgflags-dev \
  zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev \
  libtool autoconf libsodium-dev libsecp256k1-dev

Compile TON tonlib library

  cp assembly/android/build-android-tonlib.sh .
  chmod +x build-android-tonlib.sh
  ./build-android-tonlib.sh

Build TON portable binaries with Nix package manager

You need to install Nix first.

   sh <(curl -L https://nixos.org/nix/install) --daemon

Then compile TON with Nix by executing below command from the root folder:

  cp -r assembly/nix/* .
  export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz
  nix-build linux-x86-64-static.nix

More examples for other platforms can be found under assembly/nix.

Running tests

Tests are executed by running ctest in the build directory. See doc/Tests.md for more information.

ton's People

Contributors

akifoq avatar akme avatar aleksej-paschenko avatar andreypfau avatar awesome-doge avatar behrang avatar dungeon-master-666 avatar elderorb avatar emelyanenkok avatar esultanik avatar iliavy avatar ilyar avatar kirill-xx avatar krigga avatar legaii avatar neodix42 avatar omahs avatar omicrontau avatar psydvl avatar rec00rsiff avatar sapientisatus avatar sonofmom avatar spycheese avatar starlightduck avatar tolya-yanot avatar trinketer22 avatar tvorogme avatar vtamara avatar xssnick avatar yungwine 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  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

ton's Issues

A node runs with a lot of log errors 651, 652

My node is running on the VM. It utilizes 100-150% of the 2 CPU core and up to 20-30 Mbps of the network. I can see 10-20 network peers with traffic. So I consider it is working somehow for a quick look.

Anyway there a bunch of errors in logs files ( I have 7 in parallels) with the following errors:

[ 2][t 1][1568044048.543319702][validate-broadcast.cpp:31][!broadcast][&VALIDATOR_WARNING] aborting validate broadcast query for [ w=0 s=4323455642275676160 seq=138434 JwZ0/mxYvjnsyQJ0Gd4OwM7I82BtJ8YTS3g6Epw0tNg=ofTfUWkPBbr8fcPvkmkgYzPKnuHMnd7DXroE1BBhcss= ]: [Error : 621 : bad signature set]
[ 2][t 1][1568044049.387357950][validate-broadcast.cpp:31][!broadcast][&VALIDATOR_WARNING] aborting validate broadcast query for [ w=0 s=3701958893698547712 seq=144595 z2qSLNClXH7G80o0vTrpk9itD283uvmllFvP4dn18HE=8X8HsyN54EGrOSWQlk8ZmEXmFVvU+2uQRmXB2tJ2xCg= ]: [Error : 621 : bad signature set]
[ 2][t 1][1568044076.846911669][wait-block-data.cpp:103][!waitdata] failed to get block [ w=0 s=3679440895561695232 seq=120721 bt98i8Qj26eZhOoC9gyYYHNjxpqEEK+Gkf2J3vG6b3Q= naVcyN96hS8Vl2gT12enePcTG02zGnv6DNp1KsaQYEQ= ] data from net: [Error : 652 : net error: adnl query timeout]
[ 2][t 1][1568044097.352007627][wait-block-data.cpp:103][!waitdata] failed to get block [ w=0 s=16140901064495857664 seq=142724 P+SW1G23vQlXDVsFpwJjRqM1v8nwsXnFuznCQI8kAT4= 1ihT5TZZQuJ01lQJdsmtckb4YaM3T82cRF+lx5sWPHI= ] data from net: [Error : 652 : net error: adnl querytimeout]

failed to download state: no nodes and missing file

Running in Ubuntu 16
2 Processors, 8gb RAM

Got this error log after running
./validator-engine --db /var/ton-work/db -C /var/ton-work/etc/ton-global.config.json -l /var/ton-work/log

[ 2][t 7][1568102046.292000294][download-state.cpp:227][!downloadstatereq]	failed to download state : [Error : 651 : no nodes]
[ 1][t 7][1568102184.351877928][files-async.hpp:90][!read file]	missing file /var/ton-work/db/static//E5BE87B69929738BB805BCC7386B57852B8167E7A12580D4ED3E1BB4A5ED29AA

Wrong "now" value in transaction raw data

For example, if check the testgiver account that we will see the value for now:1569426502 always the same.
https://test.ton.org/testnet/transaction?account=Ef_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYDJ4&lt=223985000005&hash=2F9644B4AE4FE4155632E2ED8E48F3DE8ED0CBEC0A237CD022BFB8797A79F9CF
https://test.ton.org/testnet/transaction?account=Ef_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYDJ4&lt=223985000002&hash=1727F05C2489762729AAE35970A4CD56DF9D6E1C39F68D730B5AAAD4177195B0

For all transactions, the value for "now" is 1569426502. it is "now" for the last transaction.

Additional note: Only hash and lt are changing. Raw data is the same for all transactions.

Node crushes with the error "state extra information is invalid"

My test node runs less than 24 hours then crashes. I do not restart it automatically. Here is the latest log messages for the 2 from running threads.

[ 1][t 4][1568831409.163114309][shard.cpp:375][!waitstate]      cannot extract masterchain-specific state data from newly-computed state for block (-1,8000000000000000,354408) : [Error : 0 : state extra information is invalid]
[ 2][t 4][1568831409.163192749][wait-block-state.cpp:35][!waitstate]    aborting wait block state query for [ w=-1 s=9223372036854775808 seq=354408 ygsp1cX07BbJddSDzmvWdWHOAQGuVLyviiTJke6zn9M= wQJrX+CGWafexBTfMVIY6d+T/nu6WzA64JMhji2U3bs= ] priority=2: [Error : 0 : apply error: state extra information is invalid]
[ 2][t 4][1568831409.163258314][Timer.cpp:57][!waitstate][&duration > max_duration_]    SLOW: [name:applyblocktostate][duration:58.1s]

[ 2][t 1][1568831409.163405895][apply-block.cpp:32][!apply [ w=-1 s=9223372036854775808 seq=354408 ygsp1cX07BbJddSDzmvWdWHOAQGuVLyviiTJke6zn9M= wQJrX+CGWafexBTfMVIY6d+T/nu6WzA64JMhji2U3bs= ]][&VALIDATOR_WARNING]       aborting apply block query for [ w=-1 s=9223372036854775808 seq=354408 ygsp1cX07BbJddSDzmvWdWHOAQGuVLyviiTJke6zn9M= wQJrX+CGWafexBTfMVIY6d+T/nu6WzA64JMhji2U3bs= ]: [Error : 0 : failed to download state [ w=-1 s=9223372036854775808 seq=354408 ygsp1cX07BbJddSDzmvWdWHOAQGuVLyviiTJke6zn9M= wQJrX+CGWafexBTfMVIY6d+T/nu6WzA64JMhji2U3bs= ]: apply error: state extra information is invalid]
[ 2][t 1][1568831409.163533211][Timer.cpp:57][!apply [ w=-1 s=9223372036854775808 seq=354408 ygsp1cX07BbJddSDzmvWdWHOAQGuVLyviiTJke6zn9M= wQJrX+CGWafexBTfMVIY6d+T/nu6WzA64JMhji2U3bs= ]][&duration > max_duration_]      SLOW: [name:applyblock][duration:5572.9ms]
[ 0][t 1][1568831409.163630247][Status.h:241][!tonnode] Unexpected Status [Error : 0 : failed to download state [ w=-1 s=9223372036854775808 seq=354408 ygsp1cX07BbJddSDzmvWdWHOAQGuVLyviiTJke6zn9M= wQJrX+CGWafexBTfMVIY6d+T/nu6WzA64JMhji2U3bs= ]: apply error: state extra information is invalid] in file /root/ton/validator/full-node-shard.cpp at line 93

I can not provides build version because no such flag in daemon. My build is about 3 days old.

can't setup on windows: error with gperf

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.10586.
CMake Warning (dev) at CMakeLists.txt:26 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.

Add abseil-cpp
-- No CMAKE_CXX_STANDARD set, assuming 11
Add wingetopt
-- Use wingetopt
Add crc32c
Add rocksdb
CMake Error at third-party/rocksdb/cmake/modules/ReadVersion.cmake:4 (file):
file failed to open for reading (No such file or directory):

D:/workinprogress/lite-client/include/rocksdb/version.h

Call Stack (most recent call first):
third-party/rocksdb/CMakeLists.txt:39 (get_rocksdb_version)

CMake Warning at third-party/rocksdb/CMakeLists.txt:40 (project):
VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.

-- GFLAGS library is disabled
-- SNAPPY library is disabled
-- LZ4 library is disabled
-- ZLIB library is disabled
-- XPRESS is disabled
-- ZSTD library is disabled
-- JEMALLOC library is disabled
-- Enabling RTTI in Debug builds only (default)
-- JNI library is disabled
Add ton
-- Could NOT find ccache
-- Could NOT find LATEX (missing: LATEX_COMPILER)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
CMake Error at tdutils/generate/CMakeLists.txt:22 (message):
Could NOT find gperf. Add path to gperf executable to PATH environment
variable or specify it manually using GPERF_EXECUTABLE option, i. e.
'cmake -DGPERF_EXECUTABLE:FILEPATH=""'.

-- Configuring incomplete, errors occurred!
See also "D:/workinprogress/liteclient-build/CMakeFiles/CMakeOutput.log".
See also "D:/workinprogress/liteclient-build/CMakeFiles/CMakeError.log".

third-party/rocksdb d6f2ecf49c28fee225477d39e2a1535a87919afe

git submodule init or git submodule update takes state d6f2ecf49c28fee225477d39e2a1535a87919afe

CMake Warning (dev) at third-party/rocksdb/CMakeLists.txt:36 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
  The following variable(s) would be set to empty:
    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR

Something seems to have changed here https://github.com/facebook/rocksdb/blob/master/CMakeLists.txt

Building failed (tlb_generate_block.dir/build.make:62)

Building ton gives an error. Commands I'm using to build:

    git submodule update --init --recursive
    mkdir build && cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    cmake --build .

The last command gives the following output:

    [  0%] Built target crc32c_arm64
    [  0%] Built target crc32c_sse42
    [  0%] Built target crc32c
    [  0%] Built target absl_dynamic_annotations
    [  0%] Built target absl_log_severity
    [  0%] Built target absl_spinlock_wait
    [  1%] Built target absl_raw_logging_internal
    [  2%] Built target absl_base
    [  2%] Built target absl_malloc_internal
    [  2%] Built target absl_throw_delegate
    [  2%] Built target absl_bad_optional_access
    [  2%] Built target absl_civil_time
    [  2%] Built target absl_debugging_internal
    [  4%] Built target absl_demangle_internal
    [  4%] Built target absl_symbolize
    [  4%] Built target absl_stacktrace
    [  5%] Built target absl_int128
    [  5%] Built target absl_strings_internal
    [  6%] Built target absl_strings
    [  6%] Built target absl_graphcycles_internal
    [  8%] Built target absl_time_zone
    [  9%] Built target absl_time
    [ 11%] Built target absl_synchronization
    [ 11%] Built target absl_hashtablez_sampler
    [ 11%] Built target absl_raw_hash_set
    [ 11%] Built target absl_city
    [ 11%] Built target absl_bad_variant_access
    [ 11%] Built target absl_hash
    [ 18%] Built target tdutils
    [ 23%] Built target ton_crypto
    [ 23%] Built target common
    [ 23%] Built target tdactor
    [ 25%] Built target tdtl
    [ 25%] Built target generate_common
    [ 25%] Generate common tl source files
    [ 25%] Built target tl_generate_common
    [ 25%] Built target tl_api
    [ 25%] Built target keyring
    [ 25%] Built target build_version
    [ 51%] Built target rocksdb
    [ 51%] Built target tdnet
    [ 52%] Built target tddb
    [ 52%] Built target tl-utils
    [ 52%] Built target keys
    [ 54%] Built target adnl
    [ 55%] Built target dht
    [ 58%] Built target tdfec
    [ 58%] Built target fec
    [ 58%] Built target overlay
    [ 59%] Built target catchain
    [ 61%] Built target rldp
    [ 62%] Built target validatorsession
    [ 62%] Built target test-validator-session-state
    [ 62%] Built target adnltest
    [ 62%] Built target test-rldp
    [ 62%] Built target test-hello-world
    [ 62%] Built target test-fec
    [ 62%] Built target test-dht
    [ 62%] Built target src_parser
    [ 62%] Built target tlbc
    [ 62%] Generate block tlb source files
    block.tlb:1:15: error: constructor name lowercase identifier expected
      unit$_ = Unit;
                    ^

    crypto/CMakeFiles/tlb_generate_block.dir/build.make:62: recipe for target '../crypto/block/block-auto.cpp' failed
    make[2]: *** [../crypto/block/block-auto.cpp] Error 1
    CMakeFiles/Makefile2:7727: recipe for target 'crypto/CMakeFiles/tlb_generate_block.dir/all' failed
    make[1]: *** [crypto/CMakeFiles/tlb_generate_block.dir/all] Error 2
    Makefile:140: recipe for target 'all' failed
    make: *** [all] Error 2

Tonlib init wallet onLiteServerQueryResult error

Hi. I use tonlib from Golang. When I was trying to init wallet with wallet.init method I saw
[ 1][t 1][1569847823.922829151][TonlibClient.cpp:368][!Tonlib] wallet_init { private_key = inputKey { key = key { public_key = "PuaZ_zcK185H2beiHhYcBqsodIw5hBTkhFVmmdL5hFyJ9G_G" secret = <secret> } local_password = <secret> } } [ 1][t 1][1569847823.922928333][EncryptedKey.cpp:28][!Tonlib] decrypt [ 1][t 1][1569847823.996538162][ExtClient.h:58][!Tonlib] send query to liteserver: liteServer_sendMessage { body = bytes [251] { B5 EE 9C 72 01 04 03 01 00 00 00 00 ED 00 02 D7 88 00 E8 9C B5 95 C7 85 CD F4 6D 37 28 68 D5 16 31 18 46 D2 31 28 40 7F 98 52 CE 19 4B A1 84 7C 09 B2 11 8E 1E DA ED 5A 93 2C C5 96 A1 07 7C 81 ...} }
in the console and
{"@type":"updateSendLiteServerQuery","id":"1","data":"3waMef4AAQCC1App+7XunHIBBAMBAAAAAO0AAteIAOictZXHhc30bTcoaNUWMRhG0jEoQH+YUs4ZS6GEfAmyEY4e2u1akyzFlqEHfIEd6+iLlC2CIoKGWkufE2emyMJt+KH9hkVWZ09sn2dQtwNRN19r2OxWzFhct0o2DqZ/iKHgAAAAH/////ABAgCq/wAg3SCCAUyXupcw7UTQ1wsf4KTyYIMI1xgg0x/THwH4I7vyY+1E0NMf0//RUTG68qED+QFUEEL5EPKi+AACkyDXSpbTB9QC+wDo0aTIyx/L/8ntVABIAAAAAJn/NwrXzkfZt6IeFhwGqyh0jDmEFOSEVWaZ0vmEXIn0"} in the response.

So I was trying to run updateSendLiteServerQuery with needed struct.
Finaly I saw
[ 1][t 1][1569847823.996713877][TonlibClient.cpp:368][!Tonlib] onLiteServerQueryResult { id = 1 bytes = bytes [352] { 33 77 61 4D 65 66 34 41 41 51 43 43 31 41 70 70 2B 37 58 75 6E 48 49 42 42 41 4D 42 41 41 41 41 41 4F 30 41 41 74 65 49 41 4F 69 63 74 5A 58 48 68 63 33 30 62 54 63 6F 61 4E 55 57 4D 52 68 47 ...} } [ 1][t 1][1569847823.996734619][common-utils.hpp:186][!Tonlib] Can't parse: 4d617733 41346665 43435141 70704131 7558372b 4249486e 424d4142 41414141 41304f41 49657441 63694f41 48585a74 30336368 6f635462 57554e61 4768524d 6f456a30 592b4851 5a347355 45473653 796d4166 65345945 61317532 467a796b 4845716c 64454966 4c692b36 4332436c 474b6f49 66756b57 6d653245 744a4d79 39484b2b 57566b68 7339305a 5164326e 524e7774 7239314e 57784f32 6368467a 326f3074 2f5a7144 67484b69 41414141 2f2f2f48 42412f2f 71436741 6741772f 43435333 58795541 77637075 51545537 66737731 79544b34 494d4959 67677831 542f7830 34487748 79763749 45312b59 664d4e30 522f2f30 36475455 44457138 5546512b 354c4545 694b5045 4341412b 5844796b 54627053 43513942 6f44772b 49546130 4c2f7879 746e382f 49424156 41414141 2f6e4a41 5872774e 5a666b7a 65493674 47776846 30687971 456d446a 45534f46 5a615756 456d7630 306e4958 [ 4][t 0][1569847823.996793509][Client.cpp:82][&tonlib_requests] End to wait for updates, returning object 3 0x7f65ec004cb0 in console and
{"@type":"error","code":500,"message":"Wrong constructor found"} in response.

I run all requests with asynchronously mode.
I have some questions:

  1. Why I have to run onLiteServerQueryResult after most requests like raw.getAccountState, raw.getTransactions.?
  2. What was wrong with this attempt, what does it mean, "wrong constructor found"?

new-wallet smart contract `FunC` source

Hi!
Sorry in advance if issues of this repo are not suitable for such questions, but I could not find any another place where I can ask it.

In new-wallet.fif exists Fift assembler code for "Create new simple wallet"
https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/new-wallet.fif#L16

// Create new simple wallet
<{ SETCP0 DUP IFNOTRET // return if recv_internal
   DUP 85143 INT EQUAL IFJMP:<{ // "seqno" get-method
     DROP c4 PUSHCTR CTOS 32 PLDU  // cnt
   }>
   INC 32 THROWIF  // fail unless recv_external
   512 INT LDSLICEX DUP 32 PLDU   // sign cs cnt
   c4 PUSHCTR CTOS 32 LDU 256 LDU ENDS  // sign cs cnt cnt' pubk
   s1 s2 XCPU            // sign cs cnt pubk cnt' cnt
   EQUAL 33 THROWIFNOT   // ( seqno mismatch? )
   s2 PUSH HASHSU        // sign cs cnt pubk hash
   s0 s4 s4 XC2PU        // pubk cs cnt hash sign pubk
   CHKSIGNU              // pubk cs cnt ?
   34 THROWIFNOT         // signature mismatch
   ACCEPT
   SWAP 32 LDU NIP 
   DUP SREFS IF:<{
     // 3 INT 35 LSHIFT# 3 INT RAWRESERVE    // reserve all but 103 Grams from the balance
     8 LDU LDREF         // pubk cnt mode msg cs
     s0 s2 XCHG SENDRAWMSG  // pubk cnt cs ; ( message sent )
   }>
   ENDS
   INC NEWC 32 STU 256 STU ENDC c4 POPCTR
}>c // >libref

I'm struggling to understand, this FunC contracts are the same thing?
https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/simple-wallet-code.fc
https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/wallet-code.fc

Lite client: command `quit` does nothing

Command quit writes to log:

> quit
[ 3][t 2][1569256186.159413099][lite-client.cpp:938][!testnode]	Exiting
>

and does nothing. Is it expected behavior?

The only way to quit lite client is to type Control+C.

Config is:

{
    "liteservers": [
        {
            "ip": 1137658550,
            "port": 4924,
            "id": {
                "@type": "pub.ed25519",
                "key": "peJTw/arlRfssgTuf9BMypJzqOi7SXEqSPSWiEw2U1M="
            }
        }
    ]
}

I'm using code at commit 87ccb27b7029987aca6abdf949a871fc509fbdc3

Код просто убогий

Как так можно писать, вы хоть знаете что такое ООП или оптимизация, этот код читать невозможно, это просто пиз.. мусор.

Multiply log files in parallel.

After lunch of the validator-engine there are several log files in the log directory.
All logs are updating in parallel, it is a bit confusing. Is it expected behavior?

/var/ton-work/log# ls -l
total 484
-rw------- 1 root root     0 Sep  9 16:22 log
-rw------- 1 root root 69630 Sep  9 16:46 log.1
-rw------- 1 root root 65155 Sep  9 16:47 log.2
-rw------- 1 root root 68615 Sep  9 16:47 log.3
-rw------- 1 root root 58461 Sep  9 16:47 log.4
-rw------- 1 root root 59660 Sep  9 16:47 log.5
-rw------- 1 root root 70844 Sep  9 16:47 log.6
-rw------- 1 root root 62622 Sep  9 16:46 log.7

tddb/test/binlog.cpp:682

...
[ 70%] Building CXX object crypto/CMakeFiles/func.dir/func/asmops.cpp.o
ton/tddb/test/binlog.cpp: In member function ‘virtual void Test_Buffers_CyclicBufferSimple::run()’:
/home/user/proj/ton/tddb/test/binlog.cpp:682:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘td::size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
for (size_t i = 1; (int)i < options.count; i++) {
[ 70%] Linking CXX executable test-tddb
...

Cannot request test Grams

Form the request to the  "test giver" account -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260 presented in testgiver.fif.

fift -s testgiver.fif 0f8kw-auPstYvQc120QjFoyLz1_MkwU8i6wbarPNfIBH3UWN 0x11C5 6.666 wm-gift                           
Test giver address = -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260 
kf_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYIny
Requesting GR$6.666 to account 0f8kw-auPstYvQc120QjFoyLz1_MkwU8i6wbarPNfIBH3UWN = -1:24c3e6ae3ecb58bd0735db4423168c8bcf5fcc93053c8bac1b6ab3cd7
c8047dd seqno=0x11c5 bounce=0 
enveloping message: x{000011C501}
 x{427F9261F3571F65AC5E839AEDA2118B4645E7AFE649829E45D60DB559E6BE4023EEA80C6A98B4000000000000000000000000000047494654}

resulting external message: x{89FFF9723474702DA1EF71858EC211715378B4D6F4AB7AF3F1562038A5B6524644C00000008E280C_}
 x{427F9261F3571F65AC5E839AEDA2118B4645E7AFE649829E45D60DB559E6BE4023EEA80C6A98B4000000000000000000000000000047494654}

B5EE9C7241040201000000006600014F89FFF9723474702DA1EF71858EC211715378B4D6F4AB7AF3F1562038A5B6524644C00000008E280C010072427F9261F3571F65AC5E839A
EDA2118B4645E7AFE649829E45D60DB559E6BE4023EEA80C6A98B4000000000000000000000000000047494654CE35B59E
(Saved to file wm-gift.boc)

Sending wm-gift.boc to the testnet.

> sendfile /root/ton/wallets/wm-gift.boc                                                               
[ 1][t 1][1569336703.901948214][lite-client.cpp:971][!testnode] sending query from file /root/ton/walle
ts/wm-gift.boc
[ 3][t 1][1569336703.902453423][lite-client.cpp:981][!query]    external message status is 1           
>  

Seqno x{000011C5} does not change for a long time.

Is test giver account correct? What could be the problem?

Not Complete JNI Interface generation

Looks like that for some entities from TL don't generated special objects in tonlib_api.cpp, and this cause warns:

  • [tonlib_api.cpp:67] Unknown constructor found: -722616727
  • [tonlib_api.cpp:67] Unknown constructor found: 860930426
  • [tonlib_api.cpp:67] Unknown constructor found: -1041955397
  • ....

In tonlib_api_json.cpp I'll found next:

  • {"ok", -722616727}
  • {"testGiver.accountState", 860930426}
  • {"generic.accountStateTestWallet", -1041955397}

How exactly I can fix it, or better just wait solution?

Node crushes with the message " No space left on device : 28 : Can't create temporary file"

After 3 days of the run, my node has stopped to work. Here are the log messages:

[ 2][t 1][1568254354.870851755][check-proof.cpp:46][!checkproof][&VALIDATOR_WARNING]    aborting check proof for [ w=-1 s=9223372036854775808 seq=181459 WuEW/fhVUp1f2xS2J5iZVzkK5J1q0aaL6No48/rjLEU= 6xdgUDLg691ayMEW++Ld0WK/nXmTUQhNm3ydB1E1FVs= ] query: [PosixError : No space left on device : 28 : Can't create temporary file "/var/ton-work/db/files/tmp/tmpXXXX7pNrZj"]
[ 3][t 1][1568254354.871072054][download-block.cpp:78][!downloadnext][&FULL_NODE_NOTICE]        failed to download block [ w=-1 s=9223372036854775808 seq=181459 WuEW/fhVUp1f2xS2J5iZVzkK5J1q0aaL6No48/rjLEU= 6xdgUDLg691ayMEW++Ld0WK/nXmTUQhNm3ydB1E1FVs= ] from T+dQck1Slc+Nyz7LxSpCxgIDGYilPtp5Is8gi7k1oeY=: [PosixError : No space left on device : 28 : Can't create temporary file "/var/ton-work/db/files/tmp/tmpXXXX7pNrZj"]
[ 2][t 1][1568254354.871119976][full-node-shard.cpp:121][!downloadnext][&FULL_NODE_WARNING]     failed to download next block after [ w=-1 s=9223372036854775808 seq=181458 /fi5NXrPIVCd4xjnauas2ekUGq2uVl9D/RY5CL9swG4= qdJQvKjDtJGLQEv2wcyWU3NIm8JPgsbgdg3hO2we9R8= ]: [PosixError : No space left on device : 28 : Can't create temporary file "/var/ton-work/db/files/tmp/tmpXXXX7pNrZj"]
[ 0][t 1][1568254354.871142864][block-handle.hpp:483][!downloadnext][&!need_flush()]    flags=188579

Here is the disk state:

/var/ton-work/log# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           385M  672K  385M   1% /run
/dev/sda1        38G   26G   11G  72% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           385M     0  385M   0% /run/user/0

May it be an OS limit for the number of the files, open files and so on?

At the moment I see about 131.000 subdirectories in db directories. Most of the directories are empty. Indexing of such amount of the file structures is not efficient I guess.

The system is run out of inodes because of a lot amount of the directories

 df -i
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
udev            488900     405 488495    1% /dev
tmpfs           492643     583 492060    1% /run
/dev/sda1      2448000 2448000      0  100% /
tmpfs           492643       1 492642    1% /dev/shm
tmpfs           492643       3 492640    1% /run/lock
tmpfs           492643      18 492625    1% /sys/fs/cgroup
tmpfs           492643       1 492642    1% /run/user/0

/var/ton-work/db# ls -1 -R | wc
2649022 2517418 149932828

There are more tnan 2.6 millions of files and directories at the moment, so system run out of the inodes. Unfortunately, it is not possible to change the inodes configuration after creating ext4 filesystem.

Blockchain contest - lack of the feedback

Hello,

Is there a communication channel or mailing list, whatever, regarding the blockchain contest? Something that is monitored by the TON team regularly?

Is this issues tracker such a place or its not?

You can't carry out such a contest w/o communication with the participants can't you?

Thank you.

validator-engine-console > getstats is empty

After the commit: 13140dd and Testnet reset the validator-engine-console shows no statistic:

validator-engine-console -k client -p server.pub -a localhost:6000
connecting to [127.0.0.1:6000]
local key:  ***
remote key: ***
conn ready
> getstats
unixtime                        1568906765

So there is no progress indicator for the blockchain synchronization

Cannot build, ninja.build missing

Here's output:

~ 
➜ git clone https://github.com/ton-blockchain/ton.git telegram-node
Cloning into 'telegram-node'...
remote: Enumerating objects: 1450, done.
remote: Counting objects: 100% (1450/1450), done.
remote: Compressing objects: 100% (1051/1051), done.
remote: Total 1450 (delta 378), reused 1441 (delta 369), pack-reused 0
Receiving objects: 100% (1450/1450), 10.29 MiB | 952.00 KiB/s, done.
Resolving deltas: 100% (378/378), done.

~ 
➜ cd telegram-node/

telegram-node on  master 
➜ cd telegram-node
  mkdir build
  cd build
  cmake -G "Ninja" ..
telegram-node on  master 
➜ cd ..

~ 
➜ cd telegram-node
  mkdir build
  cd build
  cmake -G "Ninja" ..
  ninja
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CRC32C_HAVE_SSE42
-- Performing Test CRC32C_HAVE_SSE42 - Success
-- Performing Test ROCKSDB_HAVE_SSE42
-- Performing Test ROCKSDB_HAVE_SSE42 - Success
Add abseil-cpp
CMake Error at CMakeLists.txt:86 (add_subdirectory):
  The source directory

    /home/v1rtl/telegram-node/third-party/abseil-cpp

  does not contain a CMakeLists.txt file.


Add crc32c
CMake Error at CMakeLists.txt:105 (add_subdirectory):
  The source directory

    /home/v1rtl/telegram-node/third-party/crc32c

  does not contain a CMakeLists.txt file.


Add rocksdb
CMake Error at CMakeLists.txt:116 (add_subdirectory):
  The source directory

    /home/v1rtl/telegram-node/third-party/rocksdb

  does not contain a CMakeLists.txt file.


Add ton
-- Could NOT find ccache
-- Performing Test HAVE_STD14
-- Performing Test HAVE_STD14 - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WIMPLICIT_FALLTHROUGH_2
-- Performing Test HAVE_CXX_FLAG_WIMPLICIT_FALLTHROUGH_2 - Success
-- Performing Test HAVE_CXX_FLAG_WPOINTER_ARITH
-- Performing Test HAVE_CXX_FLAG_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_FLAG_WCAST_QUAL
-- Performing Test HAVE_CXX_FLAG_WCAST_QUAL - Success
-- Performing Test HAVE_CXX_FLAG_WSIGN_COMPARE
-- Performing Test HAVE_CXX_FLAG_WSIGN_COMPARE - Success
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_BRANCHES
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_BRANCHES - Success
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_COND
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_COND - Success
-- Performing Test HAVE_CXX_FLAG_WALLOC_ZERO
-- Performing Test HAVE_CXX_FLAG_WALLOC_ZERO - Success
-- Performing Test HAVE_CXX_FLAG_WLOGICAL_OP
-- Performing Test HAVE_CXX_FLAG_WLOGICAL_OP - Success
-- Performing Test HAVE_CXX_FLAG_WTAUTOLOGICAL_COMPARE
-- Performing Test HAVE_CXX_FLAG_WTAUTOLOGICAL_COMPARE - Success
-- Performing Test HAVE_CXX_FLAG_WVLA
-- Performing Test HAVE_CXX_FLAG_WVLA - Success
-- Performing Test HAVE_CXX_FLAG_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_FLAG_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PARAMETER
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_FLAG_WCONVERSION
-- Performing Test HAVE_CXX_FLAG_WCONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_WSIGN_CONVERSION
-- Performing Test HAVE_CXX_FLAG_WSIGN_CONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS - Failed
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PRIVATE_FIELD - Failed
-- Performing Test HAVE_CXX_FLAG_WREDUNDANT_MOVE
-- Performing Test HAVE_CXX_FLAG_WREDUNDANT_MOVE - Failed
-- Could NOT find LATEX (missing: LATEX_COMPILER) 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found ZLIB: /usr/include /usr/lib/x86_64-linux-gnu/libz.so
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1") 
CMake Error at CMakeLists.txt:325 (get_target_property):
  get_target_property() called with non-existent target
  "absl::flat_hash_map".
Call Stack (most recent call first):
  tdutils/CMakeLists.txt:310 (target_link_libraries_system)


CMake Error at CMakeLists.txt:325 (get_target_property):
  get_target_property() called with non-existent target
  "absl::flat_hash_set".
Call Stack (most recent call first):
  tdutils/CMakeLists.txt:310 (target_link_libraries_system)


CMake Error at CMakeLists.txt:325 (get_target_property):
  get_target_property() called with non-existent target "absl::hash".
Call Stack (most recent call first):
  tdutils/CMakeLists.txt:310 (target_link_libraries_system)


-- Performing Test GNU_READLINE_FOUND
-- Performing Test GNU_READLINE_FOUND - Success
-- Found Readline: /usr/include  
-- Found Readline: /usr/include /usr/lib/x86_64-linux-gnu/libreadline.so
-- Performing Test USABLE_READLINE_FOUND
-- Performing Test USABLE_READLINE_FOUND - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found mhd: /usr/include  
-- Configuring incomplete, errors occurred!
See also "/home/v1rtl/telegram-node/build/CMakeFiles/CMakeOutput.log".
See also "/home/v1rtl/telegram-node/build/CMakeFiles/CMakeError.log".
ninja: error: loading 'build.ninja': No such file or directory

When I look to error logs of CMake, I see this:

telegram-node/build/CMakeFiles on  master 
➜ cat CMakeError.log 
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/v1rtl/telegram-node/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_392ca"
[1/2] Building C object CMakeFiles/cmTC_392ca.dir/CheckSymbolExists.c.o
[2/2] Linking C executable cmTC_392ca
FAILED: cmTC_392ca 
: && /usr/bin/cc   -rdynamic CMakeFiles/cmTC_392ca.dir/CheckSymbolExists.c.o  -o cmTC_392ca   && :
CMakeFiles/cmTC_392ca.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

File /home/v1rtl/telegram-node/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS failed with the following output:
Change Dir: /home/v1rtl/telegram-node/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_6c520"
[1/2] Building CXX object CMakeFiles/cmTC_6c520.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_6c520.dir/src.cxx.o 
/usr/bin/c++    -march=native -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 -DHAVE_CXX_FLAG_QUNUSED_ARGUMENTS -Qunused-arguments -fPIE   -Qunused-arguments -o CMakeFiles/cmTC_6c520.dir/src.cxx.o -c src.cxx
c++: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
c++: error: unrecognized command line option '-Qunused-arguments'; did you mean '-Wunused-parameter'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WUNUSED_PRIVATE_FIELD failed with the following output:
Change Dir: /home/v1rtl/telegram-node/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_2f7e5"
[1/2] Building CXX object CMakeFiles/cmTC_2f7e5.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_2f7e5.dir/src.cxx.o 
/usr/bin/c++    -march=native -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 -DHAVE_CXX_FLAG_WUNUSED_PRIVATE_FIELD -Wno-unused-private-field -fPIE   -Wunused-private-field -o CMakeFiles/cmTC_2f7e5.dir/src.cxx.o -c src.cxx
c++: error: unrecognized command line option '-Wunused-private-field'; did you mean '-Wunused-parameter'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WREDUNDANT_MOVE failed with the following output:
Change Dir: /home/v1rtl/telegram-node/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/ninja" "cmTC_8a786"
[1/2] Building CXX object CMakeFiles/cmTC_8a786.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_8a786.dir/src.cxx.o 
/usr/bin/c++    -march=native -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 -DHAVE_CXX_FLAG_WREDUNDANT_MOVE -Wno-redundant-move -fPIE   -Wredundant-move -o CMakeFiles/cmTC_8a786.dir/src.cxx.o -c src.cxx
c++: error: unrecognized command line option '-Wredundant-move'; did you mean '-Wredundant-decls'?
ninja: build stopped: subcommand failed.

Maybe this is the issue? c++: error: unrecognized command line option '-Wredundant-move'; did you mean '-Wredundant-decls'?

lite-client: command `dumptrans` doesn't work

The command dumptrans can't find the transaction and returns the error:
[lite-client.cpp:1334][!testnode] error in transaction block header proof : [Error : 0 : error while processing Merkle proof: prunned branch]

Here's the full output of a session:

> getaccount kQBAxTKa1l-eVg5zr-evheZzLitHv2prEGSNcAH41cFRbcel
[ 3][t 1][1569755259.590054035][lite-client.cpp:1005][!testnode]        requesting account state for 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D with respect to (-1,8000000000000000,201793):D68ECF91664D7A4A11AB43C4676C5BA32818E64BD7AA22B99D063F63D4473100:F8BAE98F3A86862B8A932A475E30773DBA90F8966066EA64FC46E706BC5BCE80 with savefile `` and mode -1
[ 3][t 1][1569755259.659346819][lite-client.cpp:1131][!testnode]        got account state for 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D with respect to blocks (-1,8000000000000000,201793):D68ECF91664D7A4A11AB43C4676C5BA32818E64BD7AA22B99D063F63D4473100:F8BAE98F3A86862B8A932A475E30773DBA90F8966066EA64FC46E706BC5BCE80 and (0,6000000000000000,343382):A112AE4683EBF5C5011BC3F33A7052F3C52FD9EF27E577ECA42F22CABF20775A:D753D0834443B503FB281E97862E1BA23EB37C03D8F6777FEFA63E1A082404AE
[ 3][t 1][1569755259.659430981][check-proof.cpp:217][!testnode] got account state for 0 : 40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D with respect to blocks (-1,8000000000000000,201793):D68ECF91664D7A4A11AB43C4676C5BA32818E64BD7AA22B99D063F63D4473100:F8BAE98F3A86862B8A932A475E30773DBA90F8966066EA64FC46E706BC5BCE80 and (0,6000000000000000,343382):A112AE4683EBF5C5011BC3F33A7052F3C52FD9EF27E577ECA42F22CABF20775A:D753D0834443B503FB281E97862E1BA23EB37C03D8F6777FEFA63E1A082404AE
account state is (account
  addr:(addr_std
    anycast:nothing workchain_id:0 address:x40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D)
  storage_stat:(storage_info
    used:(storage_used
      cells:(var_uint len:1 value:1)
      bits:(var_uint len:1 value:111)
      public_cells:(var_uint len:0 value:0)) last_paid:1569750227
    due_payment:nothing)
  storage:(account_storage last_trans_lt:361039000002
    balance:(currencies
      grams:(nanograms
        amount:(var_uint len:5 value:29999999999))
      other:(extra_currencies
        dict:hme_empty))
    state:account_uninit))
x{C0040C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D2025BC2EC83E698000001503E67C70941BF08EAFFC4_}
last transaction lt = 361039000001 hash = 2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991

> listblocktrans (0,6000000000000000,342047) 5 2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991 361039000001
[ 3][t 1][1569755277.748506784][lite-client.cpp:1550][!testnode]        requesting 5 transactions from block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37 starting from account 2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991 lt 361039000001
[ 3][t 1][1569755277.811263561][lite-client.cpp:1573][!testnode]        got up to 5 transactions from block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37
transaction #1: account 40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D lt 361039000001 hash 2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991
(end of block transaction list)

> lasttrans kQBAxTKa1l-eVg5zr-evheZzLitHv2prEGSNcAH41cFRbcel 361039000001 2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991
[ 3][t 1][1569755315.756125212][lite-client.cpp:1106][!testnode]        requesting 10 last transactions from 361039000001:2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991 of 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D
[ 3][t 2][1569755315.819247007][lite-client.cpp:1479][!testnode]        got up to 10 transactions for 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D from last transaction 361039000001:2AC89A7F8A49F60DC1C7217CDA0F0B2FFACA013DC58D4A4825C4D86ED5E8C991
transaction #0 from block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37
  time=1569750227 outmsg_cnt=0
  inbound message: INT-MSG FROM: 0:D086ED304A2C576EA148154C2833335D29484C4ED64CBD017C4130657F587044 TO: 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D LT:361034000002 UTIME:1569750216 VALUE:10000000000
transaction #0 from block (0,6000000000000000,342042):7A78301F0821885F7D665B823ECA18DB7E2C667B0F09FF54A392EF5618174F4E:669E061D477C509140FF7BD4DCA182E26FF91AFACE6468AB1090666016C96CCD
  time=1569750212 outmsg_cnt=0
  inbound message: INT-MSG FROM: 0:81CC51838E292BC0D48205DA1F956CDD22B8143D9CD313D75B68EAF936D50278 TO: 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D LT:361028000002 UTIME:1569750202 VALUE:20000000000
no preceding transactions (list complete)

> dumptrans (0,6000000000000000,342047) kQBAxTKa1l-eVg5zr-evheZzLitHv2prEGSNcAH41cFRbcel 361039000001
[ 3][t 1][1569755301.208352804][lite-client.cpp:1080][!testnode]        requesting transaction 361039000001 of 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D from block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37
[ 3][t 2][1569755301.272421122][lite-client.cpp:1298][!testnode]        got transaction 361039000001 for 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D with respect to block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37
[ 1][t 2][1569755301.272570372][lite-client.cpp:1334][!testnode]        error in transaction block header proof : [Error : 0 : error while processing Merkle proof: prunned branch]

> dumptrans (0,6000000000000000,342047) kQBAxTKa1l-eVg5zr-evheZzLitHv2prEGSNcAH41cFRbcel 361034000002
[ 3][t 1][1569755346.862546444][lite-client.cpp:1080][!testnode]        requesting transaction 361034000002 of 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D from block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37
[ 3][t 2][1569755346.925580025][lite-client.cpp:1298][!testnode]        got transaction 361034000002 for 0:40C5329AD65F9E560E73AFE7AF85E6732E2B47BF6A6B10648D7001F8D5C1516D with respect to block (0,6000000000000000,342047):6D894EFA0D944FB94BC4C20411B57E21D35CBCFBA967CEF785911C2DA403CB8A:B8ED268C15BC63CF6D40742BB62FE1AA50B0E348F2B428C3F77EC47B396A7F37
[ 1][t 2][1569755346.925678968][lite-client.cpp:1334][!testnode]        error in transaction block header proof : [Error : 0 : error while processing Merkle proof: prunned branch]

Test giver empty

Test giver seems to be empty again. Actually its not, it seems to have 15253916 nanograms, however, when requesting a transfer to this, or lesser amount, nothing happens. Is this behavior correct?

Built target rocksdb *** [all] Error 2

I get an error while building the application:
[ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/optimistic_transaction.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/pessimistic_transaction.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/pessimistic_transaction_db.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/snapshot_checker.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/transaction_base.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/transaction_db_mutex_impl.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/transaction_lock_mgr.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/transaction_util.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/write_prepared_txn.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/write_prepared_txn_db.cc.o [ 57%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/write_unprepared_txn.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/transactions/write_unprepared_txn_db.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/ttl/db_ttl_impl.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/write_batch_with_index/write_batch_with_index.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/utilities/write_batch_with_index/write_batch_with_index_internal.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/port/port_posix.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/env/env_posix.cc.o [ 59%] Building CXX object third-party/rocksdb/CMakeFiles/rocksdb.dir/env/io_posix.cc.o [ 59%] Linking CXX static library librocksdb.a [ 59%] Built target rocksdb Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 ~/ton/ton-node

Test giver account is empty

Test giver smart contract with the address -1:8156775b79325e5d62e742d9b96c30b6515a5cd2f1f64c5da4b193c03f070e0d is empty in the test network.

image

getaccount -1:8156775b79325e5d62e742d9b96c30b6515a5cd2f1f64c5da4b193c03f070e0d
[ 3][t 1][1569363259.357934475][lite-client.cpp:1005][!testnode] requesting account state for -1:8156775B79325E5D62E742D9B96C30B6515A5CD2F1F64C5DA4B193C03F070E0D with respect to (-1,8000000000000000,121452):27397D3595BC322BEF8FE62C7786A580FD2884776D0BE55997C1094A0E59F806:8AC924E050B10DFDB9DE3503FD198DE8E35889FFCECD2E4B74017AA7782E1520 with savefile `` and mode -1
[ 3][t 2][1569363259.703080654][lite-client.cpp:1131][!testnode] got account state for -1:8156775B79325E5D62E742D9B96C30B6515A5CD2F1F64C5DA4B193C03F070E0D with respect to blocks (-1,8000000000000000,121452):27397D3595BC322BEF8FE62C7786A580FD2884776D0BE55997C1094A0E59F806:8AC924E050B10DFDB9DE3503FD198DE8E35889FFCECD2E4B74017AA7782E1520
[ 3][t 2][1569363259.703128815][check-proof.cpp:217][!testnode] got account state for -1 : 8156775B79325E5D62E742D9B96C30B6515A5CD2F1F64C5DA4B193C03F070E0D with respect to blocks (-1,8000000000000000,121452):27397D3595BC322BEF8FE62C7786A580FD2884776D0BE55997C1094A0E59F806:8AC924E050B10DFDB9DE3503FD198DE8E35889FFCECD2E4B74017AA7782E1520
account state is empty

Test giver sequence number does not change after sending a funding request

I'm following the steps in the HOWTO guide to upload a sample wallet to the network.

Everything seems to work fine, except that the sequence number of the test giver account does not change after sending a funding request to it. Thus, the new wallet account remains empty.

fift -s /home/nickolay/workspace/Ton/ton/crypto/smartcont/testgiver.fif 0QAcZap7f1C_-d2Dy21dq0FzzmKuwMF4jEwhNNs6dCpMbvu0 0x11C5 10.10 xx
Test giver address = (**)-1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260
kf_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYIny
Requesting GR$10.1 to account 0QAcZap7f1C_-d2Dy21dq0FzzmKuwMF4jEwhNNs6dCpMbvu0 = 0:1c65aa7b7f50bff9dd83cb6d5dab4173ce62aec0c1788c4c2134db3a742a4c6e seqno=0x11c5 bounce=0 
enveloping message: x{000011C501}
 x{42000E32D53DBFA85FFCEEC1E5B6AED5A0B9E731576060BC4626109A6D9D3A1526372812D00E2800000000000000000000000000000000000047494654}

resulting external message: x{89FFF9723474702DA1EF71858EC211715378B4D6F4AB7AF3F1562038A5B6524644C00000008E280C_}
 x{42000E32D53DBFA85FFCEEC1E5B6AED5A0B9E731576060BC4626109A6D9D3A1526372812D00E2800000000000000000000000000000000000047494654}

B5EE9C7241040201000000006A00014F89FFF9723474702DA1EF71858EC211715378B4D6F4AB7AF3F1562038A5B6524644C00000008E280C01007A42000E32D53DBFA85FFCEEC1E5B6AED5A0B9E731576060BC4626109A6D9D3A1526372812D00E2800000000000000000000000000000000000047494654EC463E9F
(Saved to file xx.boc)
sendfile xx.boc
[ 1][t 2][1569419953.681479216][lite-client.cpp:971][!testnode] sending query from file xx.boc
[ 3][t 1][1569419953.742431879][lite-client.cpp:981][!query]    external message status is 1 (**)
last (**)
[ 3][t 2][1569419982.374335527][lite-client.cpp:322][!query]    last masterchain block is (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6
[ 3][t 2][1569419982.374528170][lite-client.cpp:283][!testnode] server time is 1569419982 (delta 0)
latest masterchain block known to server is (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 created at 1569419976 (6 seconds ago)
BLK#7 = (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6
(**)
getaccount -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260
[ 3][t 2][1569419997.204904079][lite-client.cpp:1005][!testnode]        requesting account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 with savefile `` and mode -1
[ 3][t 1][1569419997.271012545][lite-client.cpp:1131][!testnode]        got account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6
[ 3][t 1][1569419997.271226883][check-proof.cpp:217][!testnode] got account state for -1 : FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6
account state is (account
  addr:(addr_std
    anycast:nothing workchain_id:-1 address:xFCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260)
  storage_stat:(storage_info
    used:(storage_used
      cells:(var_uint len:1 value:3)
      bits:(var_uint len:2 value:691)
      public_cells:(var_uint len:0 value:0)) last_paid:1569166359
    due_payment:nothing)
  storage:(account_storage last_trans_lt:113377000002
    balance:(currencies
      grams:(nanograms
        amount:(var_uint len:4 value:16997643))
      other:(extra_currencies
        dict:hme_empty))
    state:(account_active
      (
        split_depth:nothing
        special:nothing
        code:(just
          value:(raw@^Cell 
            x{}
             x{FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260D31F01ED44D0D31FD166BAF2A1F8000120D74A8E11D307D459821804A817C80073FB0201FB00DED1A4C8CB1FC9ED54}
            ))
        data:(just
          value:(raw@^Cell 
            x{}
             x{000011C5}
            ))
        library:hme_empty))))
x{CFFFCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB2923226020680ACC2EC3CA0B800000069972EE9090040D742D34_}
 x{FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260D31F01ED44D0D31FD166BAF2A1F8000120D74A8E11D307D459821804A817C80073FB0201FB00DED1A4C8CB1FC9ED54}
 x{000011C5}
last transaction lt = 113377000001 hash = BB88B2FF66AF063C24636D210957F0B5813F8B6114820BAA5D2DCA82BC82195C
getaccount 0:1c65aa7b7f50bff9dd83cb6d5dab4173ce62aec0c1788c4c2134db3a742a4c6e
[ 3][t 1][1569420235.572588921][lite-client.cpp:1005][!testnode]        requesting account state for 0:1C65AA7B7F50BFF9DD83CB6D5DAB4173CE62AEC0C1788C4C2134DB3A742A4C6E with respect to (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 with savefile `` and mode -1
[ 3][t 2][1569420235.639447689][lite-client.cpp:1131][!testnode]        got account state for 0:1C65AA7B7F50BFF9DD83CB6D5DAB4173CE62AEC0C1788C4C2134DB3A742A4C6E with respect to blocks (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 and (0,2000000000000000,208717):7EE812CA256E8200CF1A85FD3D428E6627D2245EF342086E39C0100C53D4AB0A:41FB3DC8641614FFEE081D5FDED67943A28E085381AC99B2F309ED562401A94C
[ 3][t 2][1569420235.639591455][check-proof.cpp:217][!testnode] got account state for 0 : 1C65AA7B7F50BFF9DD83CB6D5DAB4173CE62AEC0C1788C4C2134DB3A742A4C6E with respect to blocks (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 and (0,2000000000000000,208717):7EE812CA256E8200CF1A85FD3D428E6627D2245EF342086E39C0100C53D4AB0A:41FB3DC8641614FFEE081D5FDED67943A28E085381AC99B2F309ED562401A94C
account state is empty
getaccount 0QAcZap7f1C_-d2Dy21dq0FzzmKuwMF4jEwhNNs6dCpMbvu0
[ 3][t 1][1569420258.913865566][lite-client.cpp:1005][!testnode]        requesting account state for 0:1C65AA7B7F50BFF9DD83CB6D5DAB4173CE62AEC0C1788C4C2134DB3A742A4C6E with respect to (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 with savefile `` and mode -1
[ 3][t 1][1569420258.981986761][lite-client.cpp:1131][!testnode]        got account state for 0:1C65AA7B7F50BFF9DD83CB6D5DAB4173CE62AEC0C1788C4C2134DB3A742A4C6E with respect to blocks (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 and (0,2000000000000000,208717):7EE812CA256E8200CF1A85FD3D428E6627D2245EF342086E39C0100C53D4AB0A:41FB3DC8641614FFEE081D5FDED67943A28E085381AC99B2F309ED562401A94C
[ 3][t 1][1569420258.982117176][check-proof.cpp:217][!testnode] got account state for 0 : 1C65AA7B7F50BFF9DD83CB6D5DAB4173CE62AEC0C1788C4C2134DB3A742A4C6E with respect to blocks (-1,8000000000000000,134830):72F70CEB43DFAC239AA32B72A0C5A85B2A585450BD47E6CB4620395A2D1B9EA9:AF4484C3DEDECCF5B4F12A3FD5912BC360CCDC7C3F642A1086AB8C91F7E226D6 and (0,2000000000000000,208717):7EE812CA256E8200CF1A85FD3D428E6627D2245EF342086E39C0100C53D4AB0A:41FB3DC8641614FFEE081D5FDED67943A28E085381AC99B2F309ED562401A94C
account state is empty

Am I missing something?

Error on custom build on windows

Hi, I am having error on windows build:

ClCompile:
All outputs are up-to-date.
Link:
All outputs are up-to-date.
tlbc.vcxproj -> C:\Sources\TON\lite-client-build\crypto\Debug\tlbc.exe
FinalizeBuildStatus:
Deleting file "tlbc.dir\Debug\tlbc.tlog\unsuccessfulbuild".
Touching "tlbc.dir\Debug\tlbc.tlog\tlbc.lastbuildstate".
Done Building Project "C:\Sources\TON\lite-client-build\crypto\tlbc.vcxproj" (default targets).

InitializeBuildStatus:
Touching "Win32\Debug\tlb_generate_block\tlb_gene.439E29B7.tlog\unsuccessfulbuild".
CustomBuild:
Generate block tlb source files
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code -1073741701. [C:\Sources\TON
lite-client-build\crypto\tlb_generate_block.vcxproj]
Done Building Project "C:\Sources\TON\lite-client-build\crypto\tlb_generate_block.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Sources\TON\lite-client-build\crypto\ton_block.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Sources\TON\lite-client-build\lite-client\lite-client.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Sources\TON\lite-client-build\lite-client\lite-client.vcxproj" (default target) (1) ->
"C:\Sources\TON\lite-client-build\crypto\ton_block.vcxproj" (default target) (23) ->
"C:\Sources\TON\lite-client-build\crypto\tlb_generate_block.vcxproj" (default target) (24) ->
(CustomBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code -1073741701. [C:\Sources\TO
N\lite-client-build\crypto\tlb_generate_block.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:04.15

Thanks

How to include the `stdlib.fc` during compilation?

I'm trying to compile some example *.fc file with func. This is what I get:

matjek@frontier:~/workspace/Ton/ton$ func /home/matjek/workspace/Ton/ton/crypto/smartcont/simple-wallet-code.fc
/home/matjek/workspace/Ton/ton/crypto/smartcont/simple-wallet-code.fc:13:23: error: undefined function `begin_parse`, defining a global function of unknown type
    var cs2           = begin_parse(get_data());
                        ^
/home/matjek/workspace/Ton/ton/crypto/smartcont/simple-wallet-code.fc:13:35: error: undefined function `get_data`, defining a global function of unknown type
    var cs2           = begin_parse(get_data());
                                    ^
/home/matjek/workspace/Ton/ton/crypto/smartcont/simple-wallet-code.fc:18:6: error: undefined function `.end_parse`, defining a global function of unknown type
    cs2.end_parse();

This is obviously because stdlib.fc is not included in the compilation. However, none of the examples demonstrates how to do it. Placing it near the func executable and in the PATH did not help.

Console port specified as UDP port in FullNode-HOWTO is definitely a TCP port

Console port specified as UDP port in the documentation is definitely a TCP port. It can be checked via netstat with running validator-engine and filled control section in config. Also, my configuration of firewall and published ports in docker proved that validator-engine-console with TCP on this port works fine.

`control.0.id` is set to the base64 identifier of the server's public key, and `control.0.allowed.0.id` is the base64 identifier of the client's public key. <CONSOLE-PORT> is the UDP port the server will listen to for console commands.

<CONSOLE-PORT> is the UDP port

error: cannot call member function ‘void ValidatorEngine::run_control_query(T&, td::BufferSlice, ton::PublicKeyHash, td::uint32, td::Promise<td::BufferSlice>) [with T = ton::ton_api::catchain_getBlock; td::uint32 = unsigned int]’ without object

hi, there is a problem about compile. How could fix it ? thx

[100%] Building CXX object validator-engine/CMakeFiles/validator-engine.dir/validator-engine.cpp.o /home/fzzb/workspace/ton/validator-engine/validator-engine.cpp: In instantiation of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::catchain_getBlock]’: /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:770:11: required from ‘bool ton::ton_api::downcast_call(ton::ton_api::Function&, const T&) [with T = ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)>]’ /home/fzzb/workspace/ton/validator-engine/validator-engine.cpp:2573:4: required from here /home/fzzb/workspace/ton/validator-engine/validator-engine.cpp:2572:5: error: cannot call member function ‘void ValidatorEngine::run_control_query(T&, td::BufferSlice, ton::PublicKeyHash, td::uint32, td::Promise<td::BufferSlice>) [with T = ton::ton_api::catchain_getBlock; td::uint32 = unsigned int]’ without object run_control_query(obj, std::move(data), src.pubkey_hash(), it->second, std::move(promise)); ^~~~~~~~~~~~~~~~~ In file included from /home/fzzb/workspace/ton/overlay/../dht/dht.h:29:0, from /home/fzzb/workspace/ton/validator-engine/validator-engine.hpp:32, from /home/fzzb/workspace/ton/validator-engine/validator-engine.cpp:28: /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp: In instantiation of ‘bool ton::ton_api::downcast_call(ton::ton_api::Function&, const T&) [with T = ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)>]’: /home/fzzb/workspace/ton/validator-engine/validator-engine.cpp:2573:4: required from here /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:773:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::catchain_getBlockHistory]’ before deduction of ‘auto’ func(static_cast<catchain_getBlockHistory &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:776:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::catchain_getBlocks]’ before deduction of ‘auto’ func(static_cast<catchain_getBlocks &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:779:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::catchain_getDifference]’ before deduction of ‘auto’ func(static_cast<catchain_getDifference &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:782:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::dht_findNode]’ before deduction of ‘auto’ func(static_cast<dht_findNode &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:785:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::dht_findValue]’ before deduction of ‘auto’ func(static_cast<dht_findValue &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:788:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::dht_getSignedAddressList]’ before deduction of ‘auto’ func(static_cast<dht_getSignedAddressList &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:791:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::dht_ping]’ before deduction of ‘auto’ func(static_cast<dht_ping &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:794:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::dht_query]’ before deduction of ‘auto’ func(static_cast<dht_query &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:797:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::dht_store]’ before deduction of ‘auto’ func(static_cast<dht_store &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:800:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addAdnlId]’ before deduction of ‘auto’ func(static_cast<engine_validator_addAdnlId &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:803:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addControlInterface]’ before deduction of ‘auto’ func(static_cast<engine_validator_addControlInterface &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:806:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addControlProcess]’ before deduction of ‘auto’ func(static_cast<engine_validator_addControlProcess &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:809:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addDhtId]’ before deduction of ‘auto’ func(static_cast<engine_validator_addDhtId &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:812:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addListeningPort]’ before deduction of ‘auto’ func(static_cast<engine_validator_addListeningPort &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:815:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addLiteserver]’ before deduction of ‘auto’ func(static_cast<engine_validator_addLiteserver &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:818:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addProxy]’ before deduction of ‘auto’ func(static_cast<engine_validator_addProxy &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:821:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addValidatorAdnlAddress]’ before deduction of ‘auto’ func(static_cast<engine_validator_addValidatorAdnlAddress &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:824:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addValidatorPermanentKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_addValidatorPermanentKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:827:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_addValidatorTempKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_addValidatorTempKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:830:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_changeFullNodeAdnlAddress]’ before deduction of ‘auto’ func(static_cast<engine_validator_changeFullNodeAdnlAddress &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:833:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_controlQuery]’ before deduction of ‘auto’ func(static_cast<engine_validator_controlQuery &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:836:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_createElectionBid]’ before deduction of ‘auto’ func(static_cast<engine_validator_createElectionBid &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:839:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delAdnlId]’ before deduction of ‘auto’ func(static_cast<engine_validator_delAdnlId &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:842:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delDhtId]’ before deduction of ‘auto’ func(static_cast<engine_validator_delDhtId &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:845:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delListeningPort]’ before deduction of ‘auto’ func(static_cast<engine_validator_delListeningPort &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:848:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delProxy]’ before deduction of ‘auto’ func(static_cast<engine_validator_delProxy &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:851:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delValidatorAdnlAddress]’ before deduction of ‘auto’ func(static_cast<engine_validator_delValidatorAdnlAddress &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:854:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delValidatorPermanentKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_delValidatorPermanentKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:857:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_delValidatorTempKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_delValidatorTempKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:860:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_exportPrivateKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_exportPrivateKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:863:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_exportPublicKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_exportPublicKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:866:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_generateKeyPair]’ before deduction of ‘auto’ func(static_cast<engine_validator_generateKeyPair &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:869:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_getConfig]’ before deduction of ‘auto’ func(static_cast<engine_validator_getConfig &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:872:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_getStats]’ before deduction of ‘auto’ func(static_cast<engine_validator_getStats &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:875:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_getTime]’ before deduction of ‘auto’ func(static_cast<engine_validator_getTime &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:878:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_importPrivateKey]’ before deduction of ‘auto’ func(static_cast<engine_validator_importPrivateKey &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:881:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_setVerbosity]’ before deduction of ‘auto’ func(static_cast<engine_validator_setVerbosity &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:884:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::engine_validator_sign]’ before deduction of ‘auto’ func(static_cast<engine_validator_sign &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:887:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::getTestObject]’ before deduction of ‘auto’ func(static_cast<getTestObject &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:890:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::overlay_getBroadcast]’ before deduction of ‘auto’ func(static_cast<overlay_getBroadcast &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:893:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::overlay_getBroadcastList]’ before deduction of ‘auto’ func(static_cast<overlay_getBroadcastList &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:896:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::overlay_getRandomPeers]’ before deduction of ‘auto’ func(static_cast<overlay_getRandomPeers &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:899:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::overlay_query]’ before deduction of ‘auto’ func(static_cast<overlay_query &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:902:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tcp_ping]’ before deduction of ‘auto’ func(static_cast<tcp_ping &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:905:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_downloadBlock]’ before deduction of ‘auto’ func(static_cast<tonNode_downloadBlock &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:908:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_downloadBlockProof]’ before deduction of ‘auto’ func(static_cast<tonNode_downloadBlockProof &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:911:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_downloadBlockProofLink]’ before deduction of ‘auto’ func(static_cast<tonNode_downloadBlockProofLink &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:914:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_downloadPersistentState]’ before deduction of ‘auto’ func(static_cast<tonNode_downloadPersistentState &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:917:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_downloadZeroState]’ before deduction of ‘auto’ func(static_cast<tonNode_downloadZeroState &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:920:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_getNextBlockDescription]’ before deduction of ‘auto’ func(static_cast<tonNode_getNextBlockDescription &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:923:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_getNextKeyBlockIds]’ before deduction of ‘auto’ func(static_cast<tonNode_getNextKeyBlockIds &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:926:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_prepareBlock]’ before deduction of ‘auto’ func(static_cast<tonNode_prepareBlock &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:929:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_prepareBlockProof]’ before deduction of ‘auto’ func(static_cast<tonNode_prepareBlockProof &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:932:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_preparePersistentState]’ before deduction of ‘auto’ func(static_cast<tonNode_preparePersistentState &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:935:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::tonNode_prepareZeroState]’ before deduction of ‘auto’ func(static_cast<tonNode_prepareZeroState &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:938:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::validatorSession_downloadCandidate]’ before deduction of ‘auto’ func(static_cast<validatorSession_downloadCandidate &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/fzzb/workspace/ton/tl/generate/auto/tl/ton_api.hpp:941:11: error: use of ‘ValidatorEngine::process_control_query(td::uint16, ton::adnl::AdnlNodeIdShort, ton::adnl::AdnlNodeIdShort, td::BufferSlice, td::Promise<td::BufferSlice>)::<lambda(auto:21&)> [with auto:21 = ton::ton_api::validatorSession_ping]’ before deduction of ‘auto’ func(static_cast<validatorSession_ping &>(obj)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ validator-engine/CMakeFiles/validator-engine.dir/build.make:62: recipe for target 'validator-engine/CMakeFiles/validator-engine.dir/validator-engine.cpp.o' failed make[2]: *** [validator-engine/CMakeFiles/validator-engine.dir/validator-engine.cpp.o] Error 1 CMakeFiles/Makefile2:8872: recipe for target 'validator-engine/CMakeFiles/validator-engine.dir/all' failed make[1]: *** [validator-engine/CMakeFiles/validator-engine.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

Issue in fift assembler|fifC compiler

Hello!
I've wanted to report a small bug in the FIFT assembler: it seems that simplified definitions for the WHILEEND instruction are missing.
The operation is defined, but the WHILEEND:<{ or }>WHILEEND aliases aren't defined in Asm.fif, leading to compilation errors (especially since the funC compiler actually generates WHILEEND:<{ instructions in some cases).
I just wanted to report this bug I found while studying for the contest.

Thank you.

Lite client: `runmethod [ADDRESS] seqno` works only for testgiver

As your HOWTO says, it's possible to get sequence number by call command > runmethod [ADDRESS] seqno

It works for testgiver account:

> runmethod -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260 seqno
[ 3][t 1][1569257393.940140486][lite-client.cpp:1044][!testnode]	requesting account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 to run method seqno with 0 parameters
[ 3][t 1][1569257393.998777628][lite-client.cpp:1219][!testnode]	got account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317
[ 3][t 1][1569257393.998974800][check-proof.cpp:217][!testnode]	got account state for -1 : FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317
[ 3][t 1][1569257394.000657558][lite-client.cpp:1277][!testnode]	starting VM to run method `seqno` (85143) of smart contract -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260
arguments:  [ 85143 ]
result:  [ 4549 ]
> runmethod kf/8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYIny seqno
[ 3][t 2][1569257419.347841263][lite-client.cpp:1044][!testnode]	requesting account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 to run method seqno with 0 parameters
[ 3][t 2][1569257419.408794641][lite-client.cpp:1219][!testnode]	got account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317
[ 3][t 2][1569257419.409008265][check-proof.cpp:217][!testnode]	got account state for -1 : FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317
[ 3][t 2][1569257419.409627199][lite-client.cpp:1277][!testnode]	starting VM to run method `seqno` (85143) of smart contract -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260
arguments:  [ 85143 ]
result:  [ 4549 ]
> runmethod kf_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYIny seqno
[ 3][t 1][1569257449.621329308][lite-client.cpp:1044][!testnode]	requesting account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 to run method seqno with 0 parameters
[ 3][t 1][1569257449.674319267][lite-client.cpp:1219][!testnode]	got account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317
[ 3][t 1][1569257449.674504280][check-proof.cpp:217][!testnode]	got account state for -1 : FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317
[ 3][t 1][1569257449.675041914][lite-client.cpp:1277][!testnode]	starting VM to run method `seqno` (85143) of smart contract -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260
arguments:  [ 85143 ]
result:  [ 4549 ]

But does not work for any other accounts I've tried.

For example

> runmethod 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 seqno
[ 3][t 1][1569257583.336291075][lite-client.cpp:1044][!testnode]	requesting account state for 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 with respect to (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 to run method seqno with 0 parameters
[ 3][t 2][1569257583.400686026][lite-client.cpp:1219][!testnode]	got account state for 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 and (0,a000000000000000,142928):4541F4F43EBBA97168B7C4B5994D61FAD8FC63BBE6D259C83DD5080FAB20488D:981F2577555E8CD45D91F2C5437D7F1C95A7EB12D69BF2C1F757C3B2A2429E15
[ 3][t 2][1569257583.400963545][check-proof.cpp:217][!testnode]	got account state for 0 : 93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 and (0,a000000000000000,142928):4541F4F43EBBA97168B7C4B5994D61FAD8FC63BBE6D259C83DD5080FAB20488D:981F2577555E8CD45D91F2C5437D7F1C95A7EB12D69BF2C1F757C3B2A2429E15
[ 3][t 2][1569257583.402204514][lite-client.cpp:1277][!testnode]	starting VM to run method `seqno` (85143) of smart contract 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8
[ 1][t 2][1569257583.402333021][lite-client.cpp:1282][!testnode]	VM terminated with error code 32
arguments:  [ 85143 ]
result: error 32

By the way, 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 is active state account:

> getaccount 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8
[ 3][t 2][1569257566.773822069][lite-client.cpp:1005][!testnode]	requesting account state for 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 with respect to (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 with savefile `` and mode -1
[ 3][t 1][1569257566.839864731][lite-client.cpp:1131][!testnode]	got account state for 0:93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 and (0,a000000000000000,142928):4541F4F43EBBA97168B7C4B5994D61FAD8FC63BBE6D259C83DD5080FAB20488D:981F2577555E8CD45D91F2C5437D7F1C95A7EB12D69BF2C1F757C3B2A2429E15
[ 3][t 1][1569257566.840172052][check-proof.cpp:217][!testnode]	got account state for 0 : 93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8 with respect to blocks (-1,8000000000000000,97660):46F1DC5363A392FF77E5584FACD91BADE240C8FE0136F8FC74B6FCB84A3FF0D4:89CCD279824213F082C000533EB81ADE2CF7D2CA44B043F00CBE244C07231317 and (0,a000000000000000,142928):4541F4F43EBBA97168B7C4B5994D61FAD8FC63BBE6D259C83DD5080FAB20488D:981F2577555E8CD45D91F2C5437D7F1C95A7EB12D69BF2C1F757C3B2A2429E15
account state is (account
  addr:(addr_std
    anycast:nothing workchain_id:0 address:x93BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE8)
  storage_stat:(storage_info
    used:(storage_used
      cells:(var_uint len:1 value:3)
      bits:(var_uint len:2 value:939)
      public_cells:(var_uint len:0 value:0)) last_paid:1569245584
    due_payment:nothing)
  storage:(account_storage last_trans_lt:147265000002
    balance:(currencies
      grams:(nanograms
        amount:(var_uint len:6 value:20066832939740))
      other:(extra_currencies
        dict:hme_empty))
    state:(account_active
      (
        split_depth:nothing
        special:nothing
        code:(just
          value:(raw@^Cell
            x{}
             x{FF0020DDA4F260810200D71820D70B1FED44D0D31FD3FFD15112BAF2A122F901541044F910F2A2F80001D31F3120D74A96D307D402FB00DED1A4C8CB1FCBFFC9ED54}
            ))
        data:(just
          value:(raw@^Cell
            x{}
             x{0000000AA9BEDA0E406641DEC4DC44105B50CC6DAACF6C3EBA0B0373D9E4BA0074D2B4D8}
            ))
        library:hme_empty))))
x{C0093BA490D0910239DB9DA4D2CD720F19DD01F870C8EFD10BD4B250F50C7C03EE820680EAC2EC464C800000008926B6490984900B1CBEB7134_}
 x{FF0020DDA4F260810200D71820D70B1FED44D0D31FD3FFD15112BAF2A122F901541044F910F2A2F80001D31F3120D74A96D307D402FB00DED1A4C8CB1FCBFFC9ED54}
 x{0000000AA9BEDA0E406641DEC4DC44105B50CC6DAACF6C3EBA0B0373D9E4BA0074D2B4D8}
last transaction lt = 147265000001 hash = F6A7CB61C0A30531FC4992C10123A48612DD0B3AC287B3389B8FE47A772DDFFF

Is there any other way to get sequence number which is required for many actions?

Config is:

{
    "liteservers": [
        {
            "ip": 1137658550,
            "port": 4924,
            "id": {
                "@type": "pub.ed25519",
                "key": "peJTw/arlRfssgTuf9BMypJzqOi7SXEqSPSWiEw2U1M="
            }
        }
    ]
}

I'm using code at commit 87ccb27b7029987aca6abdf949a871fc509fbdc3

Lite client: command `lasttransdump` does not allow `count` argument, but should

As command help says:

> help
...
lasttrans[dump] <account-id> <trans-lt> <trans-hash> [<count>]	Shows or dumps specified transaction and several preceding ones
...

command lasttransdump allow count argument, but it does not work:

> lasttransdump -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 113377000001 BB88B2FF66AF063C24636D210957F0B5813F8B6114820BAA5D2DCA82BC82195C 2
                                                                                                                                                                ^
[ 1][t 2][1569256789.983146906][lite-client.cpp:793][!testnode]	Syntax error
>

Without count argument works well:

> lasttransdump -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 113377000001 BB88B2FF66AF063C24636D210957F0B5813F8B6114820BAA5D2DCA82BC82195C
[ 3][t 2][1569256861.523011923][lite-client.cpp:1106][!testnode]	requesting 10 last transactions from 113377000001:BB88B2FF66AF063C24636D210957F0B5813F8B6114820BAA5D2DCA82BC82195C of -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260
[ 3][t 2][1569256861.580096960][lite-client.cpp:1479][!testnode]	got up to 10 transactions for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 from last transaction 113377000001:BB88B2FF66AF063C24636D210957F0B5813F8B6114820BAA5D2DCA82BC82195C
transaction #0 from block (-1,8000000000000000,75716):7FAB38B1AB72BCFC8E3B94722FBA44F0EF5D4B363225CA44ECAE122781A4EE01:92A57E3392D40C010FF7EF513EC26B3F2F9C882504627E26D18CE075CCDC8B31 is (transaction account_addr:xFCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 lt:113377000001 prev_trans_hash:xA7B1801A7E883C73FFFA056B4217C318ADED11BC86C35A02D5671C79B3E8B667 prev_trans_lt:113375000001 now:1569166359 outmsg_cnt:0
  orig_status:acc_state_active
  end_status:acc_state_active
.....

Config is:

{
    "liteservers": [
        {
            "ip": 1137658550,
            "port": 4924,
            "id": {
                "@type": "pub.ed25519",
                "key": "peJTw/arlRfssgTuf9BMypJzqOi7SXEqSPSWiEw2U1M="
            }
        }
    ]
}

I'm using code at commit 87ccb27b7029987aca6abdf949a871fc509fbdc3

Garbage *.blkstate file after running tonlibjson funcs

There is a garbage file with mask *.blkstate in a current directory after running tonlib_api:*getaccount_state() funcs. There is keystore_directory config option to interact with a local filesystem but no option to store temp/intermediate files.

Installation fails, TonlibConfig.cmake is missing

Installation fails with next error:

...
[100%] Built target json2tlo
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib/libtdutils.a
-- Up-to-date: /usr/local/lib/libtdactor.a
-- Up-to-date: /usr/local/lib/libtddb.a
-- Up-to-date: /usr/local/lib/libtonlibjson.so.0.5
-- Up-to-date: /usr/local/lib/libtonlibjson.so
-- Up-to-date: /usr/local/include/tonlib/tonlib_client_json.h
-- Up-to-date: /usr/local/include/tonlib/tonlibjson_export.h
-- Up-to-date: /usr/local/lib/cmake/Tonlib/TonlibTargets.cmake
-- Up-to-date: /usr/local/lib/cmake/Tonlib/TonlibTargets-noconfig.cmake
CMake Error at tonlib/cmake_install.cmake:96 (file):
  file INSTALL cannot find "/home/user/dev/ton/tonlib/TonlibConfig.cmake".
Call Stack (most recent call first):
  cmake_install.cmake:55 (include)


Makefile:128: recipe for target 'install' failed
make: *** [install] Error 1

lite-client

lite-client -a 192.168.0.3:2222 -p liteserver.pub

[ 2][t 0][1569568590.073853016][terminal.cpp:92][!terminal io] disabling readline [ 1][t 1][1569568590.077298641][lite-client.h:186][!testnode] conn ready [ 1][t 2][1569568600.086337328][lite-client.cpp:156][!query] failed query: [Error : 652 : adnl query timeout] [ 1][t 2][1569568600.086455822][lite-client.cpp:250][!testnode] cannot get server version and time (server too old?) [ 1][t 2][1569568600.086476564][lite-client.cpp:262][!testnode] server version is too old (at least 1.1 with capabilities 1 required), some queries are unavailable [ 1][t 1][1569568610.090414524][lite-client.cpp:156][!query] failed query: [Error : 652 : adnl query timeout] [ 1][t 1][1569568610.090453625][lite-client.cpp:292][!query] cannot get masterchain info from server

Test-giver send nothing to new-wallet

I use the latest commit code - ac3eb1a

Following instructions from LiteClient-HOWTO.

Creating a new wallet:

$ crypto/fift -I../crypto/fift/lib -s ../crypto/smartcont/new-wallet.fif 0 my_wallet_name
Creating new wallet in workchain 0 
Loading private key from file my_wallet_name.pk
StateInit: x{34_}
 x{FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260810200D71820D70B1FED44D0D31FD3FFD15112BAF2A122F901541044F910F2A2F80001D31F3120D74A96D307D402FB00DED1A4C8CB1FCBFFC9ED54}
 x{00000000C6A44F1BE931B8C9E11B3DD06C3ED0DC1D5C4640972F6627F643118CB3241A43}

new wallet address = 0:db6bd3f42058aa73cfbbc09384d0ce6aa1321aee98d35486fd0195e9770e4be0 
(Saving address to file my_wallet_name.addr)
Non-bounceable address (for init): 0QDba9P0IFiqc8-7wJOE0M5qoTIa7pjTVIb9AZXpdw5L4FMr
Bounceable address (for later access): kQDba9P0IFiqc8-7wJOE0M5qoTIa7pjTVIb9AZXpdw5L4A7u
signing message: x{00000000}

External message for initialization is x{8801B6D7A7E840B154E79F77812709A19CD5426435DD31A6A90DFA032BD2EE1C97C01190B3752D3FCED0CB187D597696028C6A98BEA87FE3C98783C8C5D08F20E74D349E6AD206D4A991E34A9E2779B6CD7D4B742D9F0CEA7FF7CD6679A64E2B4B2860E00000001_}
 x{FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260810200D71820D70B1FED44D0D31FD3FFD15112BAF2A122F901541044F910F2A2F80001D31F3120D74A96D307D402FB00DED1A4C8CB1FCBFFC9ED54}
 x{00000000C6A44F1BE931B8C9E11B3DD06C3ED0DC1D5C4640972F6627F643118CB3241A43}

B5EE9C724104030100000000E50002CF8801B6D7A7E840B154E79F77812709A19CD5426435DD31A6A90DFA032BD2EE1C97C01190B3752D3FCED0CB187D597696028C6A98BEA87FE3C98783C8C5D08F20E74D349E6AD206D4A991E34A9E2779B6CD7D4B742D9F0CEA7FF7CD6679A64E2B4B2860E000000010010200A2FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260810200D71820D70B1FED44D0D31FD3FFD15112BAF2A122F901541044F910F2A2F80001D31F3120D74A96D307D402FB00DED1A4C8CB1FCBFFC9ED54004800000000C6A44F1BE931B8C9E11B3DD06C3ED0DC1D5C4640972F6627F643118CB3241A43BE68460E
(Saved wallet creating query to file my_wallet_name-query.boc)

Create test-giver request to send money to my new wallet:

$ crypto/fift -I../crypto/fift/lib:../crypto/smartcont -s testgiver.fif 0QDba9P0IFiqc8-7wJOE0M5qoTIa7pjTVIb9AZXpdw5L4FMr 5898 0.0001 
Test giver address = -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260 
kf_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYIny
Requesting GR$0.0001 to account 0QDba9P0IFiqc8-7wJOE0M5qoTIa7pjTVIb9AZXpdw5L4FMr = 0:db6bd3f42058aa73cfbbc09384d0ce6aa1321aee98d35486fd0195e9770e4be0 seqno=0x170a bounce=0 
enveloping message: x{0000170A01}
 x{42006DB5E9FA102C5539E7DDE049C268673550990D774C69AA437E80CAF4BB8725F0180C3500000000000000000000000000000000000047494654}

resulting external message: x{89FFF9723474702DA1EF71858EC211715378B4D6F4AB7AF3F1562038A5B6524644C0000000B8500C_}
 x{42006DB5E9FA102C5539E7DDE049C268673550990D774C69AA437E80CAF4BB8725F0180C3500000000000000000000000000000000000047494654}

B5EE9C7241040201000000006800014F89FFF9723474702DA1EF71858EC211715378B4D6F4AB7AF3F1562038A5B6524644C0000000B8500C01007642006DB5E9FA102C5539E7DDE049C268673550990D774C69AA437E80CAF4BB8725F0180C350000000000000000000000000000000000004749465481324F7F
(Saved to file testgiver-query.boc)

Send the request:

> sendfile testgiver-query.boc 
[ 1][t 1][1569528958.180426359][lite-client.cpp:971][!testnode]	sending query from file testgiver-query.boc
[ 3][t 2][1569528958.215997458][lite-client.cpp:981][!query]	external message status is 1

Check if test-giver has processed the message and increase a seqno (and see that it does not!):

> last
[ 3][t 2][1569528969.597225904][lite-client.cpp:322][!query]	last masterchain block is (-1,8000000000000000,158108):636674BDC0CF8D30DAC3FE63B50466529A717EA78175E30B2C1F7A7474425C81:FDA3EE085ED6F626F2361F9AA0292D6086D6CBA470F689E86A9E5FF68B43420D
[ 3][t 2][1569528969.597309113][lite-client.cpp:283][!testnode]	server time is 1569528969 (delta 0)
latest masterchain block known to server is (-1,8000000000000000,158108):636674BDC0CF8D30DAC3FE63B50466529A717EA78175E30B2C1F7A7474425C81:FDA3EE085ED6F626F2361F9AA0292D6086D6CBA470F689E86A9E5FF68 created at 1569528962 (7 seconds ago)
BLK#37 = (-1,8000000000000000,158108):636674BDC0CF8D30DAC3FE63B50466529A717EA78175E30B2C1F7A7474425C81:FDA3EE085ED6F626F2361F9AA0292D6086D6CBA470F689E86A9E5FF68B43420D
> getaccount kf_8uRo6OBbQ97jCx2EIuKm8Wmt6Vb15-KsQHFLbKSMiYIny
[ 3][t 1][1569528973.518162012][lite-client.cpp:1005][!testnode]	requesting account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to (-1,8000000000000000,158108):636674BDC0CF8D30DAC3FE63B50466529A717EA78175E30B2C1F7A7474425C81:FDA3EE085ED6F626F2361F9AA0292D6086D6CBA470F689E86A9E5FF68B43420D with savefile `` and mode -1
[ 3][t 2][1569528973.557671785][lite-client.cpp:1131][!testnode]	got account state for -1:FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,158108):636674BDC0CF8D30DAC3FE63B50466529A717EA78175E30B2C1F7A7474425C81:FDA3EE085ED6F626F2361F9AA0292D6086D6CBA470F689E86A9E5FF68B43420D
[ 3][t 2][1569528973.557852745][check-proof.cpp:217][!testnode]	got account state for -1 : FCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260 with respect to blocks (-1,8000000000000000,158108):636674BDC0CF8D30DAC3FE63B50466529A717EA78175E30B2C1F7A7474425C81:FDA3EE085ED6F626F2361F9AA0292D6086D6CBA470F689E86A9E5FF68B43420D
account state is (account
  addr:(addr_std
    anycast:nothing workchain_id:-1 address:xFCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB29232260)
  storage_stat:(storage_info
    used:(storage_used
      cells:(var_uint len:1 value:3)
      bits:(var_uint len:2 value:683)
      public_cells:(var_uint len:0 value:0)) last_paid:1569426502
    due_payment:nothing)
  storage:(account_storage last_trans_lt:223985000012
    balance:(currencies
      grams:(nanograms
        amount:(var_uint len:3 value:15253916))
      other:(extra_currencies
        dict:hme_empty))
    state:(account_active
      (
        split_depth:nothing
        special:nothing
        code:(just
          value:(raw@^Cell 
            x{}
             x{FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260D31F01ED44D0D31FD166BAF2A1F8000120D74A8E11D307D459821804A817C80073FB0201FB00DED1A4C8CB1FC9ED54}
            ))
        data:(just
          value:(raw@^Cell 
            x{}
             x{0000170A}
            ))
        library:hme_empty))))
x{CFFFCB91A3A3816D0F7B8C2C76108B8A9BC5A6B7A55BD79F8AB101C52DB2923226020680AAC2EC5C6230000000D09A2F7930FA3067134_}
 x{FF0020DD2082014C97BA9730ED44D0D70B1FE0A4F260D31F01ED44D0D31FD166BAF2A1F8000120D74A8E11D307D459821804A817C80073FB0201FB00DED1A4C8CB1FC9ED54}
 x{0000170A}
last transaction lt = 223985000011 hash = 556DAD7525758AA121E6A85D9C0296BB4524DA574713BA1E48EBB618B7E27B4A

Check if my new wallet has received any grams (and see empty! :( ):

> getaccount 0QDba9P0IFiqc8-7wJOE0M5qoTIa7pjTVIb9AZXpdw5L4FMr
[ 3][t 2][1569529800.317816496][lite-client.cpp:1005][!testnode]	requesting account state for 0:DB6BD3F42058AA73CFBBC09384D0CE6AA1321AEE98D35486FD0195E9770E4BE0 with respect to (-1,8000000000000000,158272):18FEB396D3B4DD5A2661533E678B8AFBBADA978D5CCF6ADB89E6665F50DD5A89:1805708575A6E35ED5A2171ED45CD6C7F2066F6DCC8A3E17F43FBD0D9D419880 with savefile `` and mode -1
[ 3][t 1][1569529800.355960131][lite-client.cpp:1131][!testnode]	got account state for 0:DB6BD3F42058AA73CFBBC09384D0CE6AA1321AEE98D35486FD0195E9770E4BE0 with respect to blocks (-1,8000000000000000,158272):18FEB396D3B4DD5A2661533E678B8AFBBADA978D5CCF6ADB89E6665F50DD5A89:1805708575A6E35ED5A2171ED45CD6C7F2066F6DCC8A3E17F43FBD0D9D419880 and (0,e000000000000000,253266):CCBBD4F1E53C2984302FB8F34166504698EA4AA4BF8150E3021EE0F9EE7427DE:E1A0056012AD81BE295BAE13574D1F6CA82BAF17AF5917FA3A426C851F0A6B29
[ 3][t 1][1569529800.356054068][check-proof.cpp:217][!testnode]	got account state for 0 : DB6BD3F42058AA73CFBBC09384D0CE6AA1321AEE98D35486FD0195E9770E4BE0 with respect to blocks (-1,8000000000000000,158272):18FEB396D3B4DD5A2661533E678B8AFBBADA978D5CCF6ADB89E6665F50DD5A89:1805708575A6E35ED5A2171ED45CD6C7F2066F6DCC8A3E17F43FBD0D9D419880 and (0,e000000000000000,253266):CCBBD4F1E53C2984302FB8F34166504698EA4AA4BF8150E3021EE0F9EE7427DE:E1A0056012AD81BE295BAE13574D1F6CA82BAF17AF5917FA3A426C851F0A6B29
account state is empty

I requested just 0.0001 gram because only 0.015253916 gram are available on the balance of the test-giver by -1:fcb91a3a3816d0f7b8c2c76108b8a9bc5a6b7a55bd79f8ab101c52db29232260 address.

Maybe this is the issue - small balance on test-giver? Or I'm doing something wrong?
Is there any way to trace what happened with the message sent by sendfile (whether it was processed by collator pool, the result of its execution on testgiver-in-blockchain end)?

Too much fees for one message

Hi there!

I've created new wallet with code similar to crypto/smartcont/new-wallet.fif but with own smart contract code. Send 1 gram and initialized it by constructor message.

Wallet is initialized but it kept taking fees. After some time it's stopped and i left with only 413079852 nanograms.

Then I've updated code with second message and again wallet is left with 1833582 nanograms.

Is it normal? If you need i can paste code here.

validator-engine failed to start without providing global config option ( -C )

According to the https://test.ton.org/FullNode-HOWTO.txt: ton-global.config.json should be used in the first run for initialization local config.

After the initialization the expected behavior is to start daemon with the command:
validator-engine --db /var/ton-work/db/ -l /var/ton-work/log/log

Actual behavior is termination with the error:
[ 1][t 1][1568040657.553510427][validator-engine.cpp:2582][!validator-engine] failed to load global config'ton-global.config': [PosixError : No such file or directory : 2 : failed to read: File "ton-global.config" can't be opened for reading]

The workaround is to provide the global config option:
validator-engine -C /var/ton-work/etc/ton-global.config --db /var/ton-work/db/ -l /var/ton-work/log/log

Endless transactions

Video bug report:
https://www.youtube.com/watch?v=Lbr3cNljEjo

After multiply sending files with the transfer of funds the wallet becomes empty. The transactions are not executed. I think that the grams are spent on the validators fees. Validators do not complete gram transfer transactions due to lack of funds and burn the balance on the wallet to 0. I suppose that the transaction should not be performed with insufficient account balance.

Address: 0QA-LQA38JxS2CNiWNO1he24ZyGpNexybr--m_ua8EMvFk06
Final balance: 863 nanograms

Is there any SDK

Is there any SDK? I want to get block and transaction infos via RPC. Is there any RPC interface?

lite-client: No such file ../sysdeps/unix/sysv/linux/waitpid.c on signal 6 (Ctrl+d)

lite-client works well on Ubuntu 18.04 LTS
except when you exit by Ctrl-d

> last
[ 3][t 2][1569392738.038030148][lite-client.cpp:322][!query]	last masterchain block is (-1,8000000000000000,128867):0385D4CB185007F297655FDC45CFFD284F3F070028AF2D7D6E5B38063D05FA3C:74CCE4BD04BAFCCCB10772658249822CE5C4C68C3948F27174234AEBE42D6C69
[ 3][t 1][1569392738.038192987][lite-client.cpp:283][!testnode]	server time is 1569392738 (delta 0)
latest masterchain block known to server is (-1,8000000000000000,128867):0385D4CB185007F297655FDC45CFFD284F3F070028AF2D7D6E5B38063D05FA3C:74CCE4BD04BAFCCCB10772658249822C created at 1569392731 (7 seconds ago)
BLK#6 = (-1,8000000000000000,128867):0385D4CB185007F297655FDC45CFFD284F3F070028AF2D7D6E5B38063D05FA3C:74CCE4BD04BAFCCCB10772658249822CE5C4C68C3948F27174234AEBE42D6C69
[ 0][t 0][1569392772.347020149][terminal.cpp:206][!terminal io]	Closed
> [pid 3386] [time 1569392772] Signal: 6
[New LWP 3387]
[New LWP 3388]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fea6b67023a in __waitpid (pid=3528, stat_loc=0x0, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30	../sysdeps/unix/sysv/linux/waitpid.c: Нет такого файла или каталога.
[Current thread is 1 (Thread 0x7fea6cce6800 (LWP 3386))]

Thread 3 (Thread 0x7fea6a43b700 (LWP 3388)):
#0  0x00007fea6b66b9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56081fae2108) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
        __ret = -512
        oldtype = 0
        err = <optimized out>
        oldtype = <optimized out>
        err = <optimized out>
        __ret = <optimized out>
        resultvar = <optimized out>
        __arg4 = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a4 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
...

validator-engine crash after 1 minute with error "state extra information is invalid"

Description

validator-engine crash after 1 minute with error "state extra information is invalid". Earlier worked ~12 hours without such issue.

Command line:

validator-engine -C /ton-global.config.json --ip <public IP>:<UDP port> --db /data/ton-work/db/

The application works in docker container.

Stacktrace

  ( flags:1
PRINTING FAILED))
[ 0][t 1][1569406476.235388279][Status.h:241][!celldbin]        Unexpected Status [Error : 0 : state extra information is invalid] in file /ton/ton-node/validator/db/rootdb.cpp at line 269
[pid 9] [time 1569406476] Signal: 6
------- Stack Backtrace -------
validator-engine[0x964fac]
validator-engine[0x964bc3]
validator-engine[0x96086e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f1326e2b890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f1326127e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f1326129801]
validator-engine[0x97c949]
validator-engine[0x97cce2]
validator-engine[0x97c3af]
validator-engine(_ZNK2td6Status11ensure_implENS_6CSliceEi+0x1f9)[0x7a8089]
validator-engine[0xd73b1b]
validator-engine[0x11bbd20]
validator-engine[0x11bbb85]
validator-engine[0x11bba7a]
validator-engine[0x11b898f]
validator-engine[0x121f24e]
validator-engine[0x121f185]
validator-engine[0x1230d08]
validator-engine[0x1230c10]
validator-engine[0x1230bcd]
validator-engine[0x1230b95]
validator-engine[0x1230559]
validator-engine[0x997e53]
validator-engine[0x99932c]
validator-engine[0x9988ee]
validator-engine(_ZN2td5actor4core13ActorExecutorC2ERNS1_9ActorInfoERNS1_19SchedulerDispatcherENS2_7OptionsE+0x1c1)[0x7bee61]
validator-engine[0x9ab9c7]
validator-engine[0x9a3878]
validator-engine[0x9a378f]
validator-engine[0x9a367a]
validator-engine[0x9a361d]
validator-engine[0x9a35cd]
validator-engine[0x9a35a5]
validator-engine[0x9a355d]
validator-engine[0x9a352d]
validator-engine[0x9a33ad]
validator-engine[0x9a3409]
validator-engine(_ZN2td10unique_ptrINS_10DestructorEE5resetEPS1_+0x36)[0x7fffe6]
validator-engine(_ZN2td10unique_ptrINS_10DestructorEED2Ev+0x19)[0x7fffa9]
validator-engine(_ZN2td6detail13ThreadPthread10run_threadEPv+0x31)[0x7ff9b1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f1326e206db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f132620a88f]
-------------------------------
------- Stack Backtrace -------
validator-engine[0x964fac]
validator-engine[0x964bc3]
validator-engine[0x96086e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f1326e2b890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f1326127e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f1326129801]
validator-engine[0x97c949]
validator-engine[0x97cce2]
validator-engine[0x97c3af]
validator-engine(_ZNK2td6Status11ensure_implENS_6CSliceEi+0x1f9)[0x7a8089]
validator-engine[0xd73b1b]
validator-engine[0x11bbd20]
validator-engine[0x11bbb85]
validator-engine[0x11bba7a]
validator-engine[0x11b898f]
validator-engine[0x121f24e]
validator-engine[0x121f185]
validator-engine[0x1230d08]
validator-engine[0x1230c10]
validator-engine[0x1230bcd]
validator-engine[0x1230b95]
validator-engine[0x1230559]
validator-engine[0x997e53]
validator-engine[0x99932c]
validator-engine[0x9988ee]
validator-engine(_ZN2td5actor4core13ActorExecutorC2ERNS1_9ActorInfoERNS1_19SchedulerDispatcherENS2_7OptionsE+0x1c1)[0x7bee61]
validator-engine[0x9ab9c7]
validator-engine[0x9a3878]
validator-engine[0x9a378f]
validator-engine[0x9a367a]
validator-engine[0x9a361d]
validator-engine[0x9a35cd]
validator-engine[0x9a35a5]
validator-engine[0x9a355d]
validator-engine[0x9a352d]
validator-engine[0x9a33ad]
validator-engine[0x9a3409]
validator-engine(_ZN2td10unique_ptrINS_10DestructorEE5resetEPS1_+0x36)[0x7fffe6]
validator-engine(_ZN2td10unique_ptrINS_10DestructorEED2Ev+0x19)[0x7fffa9]
validator-engine(_ZN2td6detail13ThreadPthread10run_threadEPv+0x31)[0x7ff9b1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f1326e206db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f132620a88f]
-------------------------------

ARM architecture support

Is there any plans to support ARM?
Currently, it doesn't compile well.

In file included from /home/ton/third-party/crc32c/src/crc32c.cc:11:0:
/home/ton/third-party/crc32c/src/./crc32c_arm64_linux_check.h: In function ‘bool crc32c::CanUseArm64Linux()’:
/home/ton/third-party/crc32c/src/./crc32c_arm64_linux_check.h:36:37: error: the address of ‘long unsigned int getauxval(long unsigned int)’ will never be NULL [-Werror=address]
   unsigned long hwcap = (&getauxval != nullptr) ? getauxval(AT_HWCAP) : 0;
                          ~~~~~~~~~~~^~~~~~~~~~
cc1plus: all warnings being treated as errors
third-party/crc32c/CMakeFiles/crc32c.dir/build.make:86: recipe for target 'third-party/crc32c/CMakeFiles/crc32c.dir/src/crc32c.cc.o' failed
make[3]: *** [third-party/crc32c/CMakeFiles/crc32c.dir/src/crc32c.cc.o] Error 1```

Lite client: command status does not work

Unfortunately, command status of lite client does to work

Config is:

{
    "liteservers": [
        {
            "ip": 1137658550,
            "port": 4924,
            "id": {
                "@type": "pub.ed25519",
                "key": "peJTw/arlRfssgTuf9BMypJzqOi7SXEqSPSWiEw2U1M="
            }
        }
    ]
}

Output:

> status
unknown command: status ; type `help` to get help
      ^
[ 1][t 1][1569256057.370807886][lite-client.cpp:793][!testnode]	Syntax error

I'm using code at commit 87ccb27b7029987aca6abdf949a871fc509fbdc3

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.