1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 03:32:22 +00:00
Commit graph

456 commits

Author SHA1 Message Date
Trinketer22
d11580dfb3
Compiler -march fix for not supported arch (#444)
I think there is an issue with the way -march flag is handled in the
current build system.

It is set to native (heavy cpu specific optimizations) via TON_ARCH and it is never
checked if it is supported by the compiler.

That's what is causing all those issues with apple m1 builds or any
other arm system.

Without checking early, build will only fail at link stage.
Strict arch support checking is due.

1. Check if "-march=${TON_ARCH}" flag is supported by the compiler
   Adds it to CXX_FLAGS if al good

2. Otherwise if such flag is not supported but TON_ARCH is set to default we
   continue execution without setting march and leaving arch decisions to
   cmake build system

3. Otherwise user specified TON_ARCH intentionally and current arch is
   not supported by the compiler.
   Therefore we terminate build process immediately and let user know
   what's the matter.

Co-authored-by: Trinketer22 <trinketer22@localhost>
2022-09-20 22:26:59 +03:00
Anton Alisov
5baf3276a4
Fix incorrect copy-paste in test/actors_core.cpp (#197)
Seems like incorrect copy-paste, but maybe that was intentional?
2022-09-20 16:01:29 +03:00
Starlight Duck
3c380e0a7b
Implement compilation and pre-computation of logical operations (#437)
* Implement compilation and pre-computation of logical operations (and, or, xor, not)

* Fix emulate_and optimization

* Fix variable flags in emulate_not

* Rename co2.fc to co3.fc

Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
2022-09-20 14:19:42 +03:00
EmelyanenkoK
3b1d33f543
Allow constants with the same name and value (#462)
Co-authored-by: legaii <jgates.ardux@gmail.com>
2022-09-20 14:16:53 +03:00
SpyCheese
2512f0287b
Tonlib method getShardBlockProof (#465)
* Tonlib method getShardBlockProof

* Clarify limit of result.size() in getShardBlockProof
2022-09-20 10:49:28 +03:00
EmelyanenkoK
9c6787d2ff
Fix undefined behavior code (#464)
* Fix UB in arithmetics

* Fix misaligned allocations in validator sessions

* Fix integer overflow in bigint.hpp

* Fix potential UB

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2022-09-19 17:31:54 +03:00
EmelyanenkoK
440d06962a Merge branch 'SpyCheese-tonlib-get-signatures' into testnet 2022-09-18 21:20:14 +03:00
EmelyanenkoK
4cdb82d0ce Merge tonlib_api.tlo 2022-09-18 21:18:19 +03:00
Ivan Siomash
1464ae0b0a
Remove c++17 structure bindings from GetPerfTimerStats (#460)
* Remove c++17 structure bindings
2022-09-18 16:02:08 +03:00
ms
d9a5b2ccdc
Add tonlib function raw.getTransactionsV2 (#461)
* Add parameter count to raw.getTransactions

* fix tlo

* Add tonlib function raw.getTransactionsV2
2022-09-18 16:01:07 +03:00
Ivan Siomash
5b2e96c2fa
Fixes for GetPerfTimerStats (#457)
* getperftimerstatsjson: fix json format

* getperftimerstatsjson: fix td::min ambiguous template parameter
2022-09-15 10:26:17 +03:00
Andrey Tvorozhkov
bd5f4f61ac
Fix dump of null items (#459)
Co-authored-by: Andrey Tvorozhkov <andrey@h-labs.ru>
2022-09-15 09:37:27 +03:00
Andrey Tvorozhkov
e40d323fce
Add ~strdump and STRDUMP TVM OP (#452)
* Add ~strdump and STRDUMP TVM OP

Add ~strdump and STRDUMP TVM OP

Add ~strdump and STRDUMP TVM OP

* STRDUMP fixes

Co-authored-by: Andrey Tvorozhkov <andrey@h-labs.ru>
2022-09-14 12:36:54 +03:00
AlexeyFSL
e2cca03a78
Func and Fift lib for WASM (#455)
* Add social badges

Add telegram, Twitter and Stack Overflow badges in Readme

* update README.md badges

* patch for wasm build

* fix narrowing conversion error for clang compiler

* refactor func code

* funcfift lib implementation

* fix funcfift lib
fix CMakeFile

* fix rvalue missing

* remove unused field from result json

* name fix
remove unused target

* rename

* added script for building funcfiftlib to wasm

* fix json fild names

* fix commit hash for script

* added version function to funcfiftlib

* update commit hash for script

* add realpath fail processing
fix DISABLE_EXCEPTION_CATCHING option

* update hash in script

Co-authored-by: Anthony Tsivarev <tsivarev.a@gmail.com>
Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
Co-authored-by: tolya-yanot <1449561+tolya-yanot@users.noreply.github.com>
2022-09-14 12:36:01 +03:00
EmelyanenkoK
45e99a5c63
Merge pull request #458 from ton-blockchain/master
Merge upstream
2022-09-14 12:35:28 +03:00
EmelyanenkoK
8329a58994
Add GetPerfTimerStats (#451)
* Add getperfwarningtimeraverage query for validator-engine-console

* Fix for getperfwarningtimeraverage query

* getperftimerstats

* Add history max size: 1 hour

* PerfWarningTimer: move callback instead of copy

* PerfWarningTimer: fix move constructor bug

* PerfWarningTimer: fix bug: lifetime of the callback was greater than lifetime of the local variable 'manager' captured by reference

* Fix validate-query.cpp: 'manager' used after it was moved

* PerfWarningTimer: remove logs

* getperftimerstats: write to json file

* getperftimerstatsjson

Co-authored-by: legaii <jgates.ardux@gmail.com>
Co-authored-by: Ivan Siomash <106972486+legaii@users.noreply.github.com>
2022-09-10 12:57:13 +03:00
SpyCheese
3e24af5d15 Tonlib function getMasterchainBlockSignatures 2022-09-09 11:03:53 +03:00
Tolya
35d17249e6
Merge pull request #450 from ton-blockchain/dns-resolve-update
Fix DNS resolve in liteclient and tonlib
2022-08-30 03:44:33 +03:00
tolya-yanot
da65be6ee2 Fix DNS resolve in liteclient and tonlib 2022-08-30 03:30:00 +03:00
Tolya
8376c289d7
Merge pull request #449 from SpyCheese/dns-resolve-fix
Fix DNS resolve in liteclient and tonlib
2022-08-30 03:17:22 +03:00
SpyCheese
b44e5403c8 Fix DNS resolve in liteclient and tonlib 2022-08-29 11:04:03 +03:00
tolya-yanot
1c356a190d update README.md badges 2022-08-25 23:36:19 +03:00
EmelyanenkoK
b857058d36
Merge pull request #447 from tsivarev/patch-1
Add social badges
2022-08-25 11:18:08 +03:00
Anthony Tsivarev
c931e6dc31
Add social badges
Add telegram, Twitter and Stack Overflow badges in Readme
2022-08-25 11:04:08 +03:00
EmelyanenkoK
d6e365c21f
Merge pull request #446 from andreypfau/patch-1
Fix AdnlProxy Pong: 'data' used after it was moved
2022-08-22 12:47:12 +03:00
EmelyanenkoK
4adceeb052
Merge pull request #445 from SpyCheese/ls-applied-blocks
Do not return not yet applied blocks to lite clients
2022-08-22 12:46:54 +03:00
andreypfau
34c1c548c4
Fix AdnlProxy Pong: 'data' used after it was moved 2022-08-22 11:41:46 +03:00
SpyCheese
be824e9649 Check is_applied in liteserver 2022-08-22 10:25:28 +03:00
SpyCheese
9465fd866a Fix validator-engine-console not stopping after error 2022-08-18 21:52:50 +03:00
SpyCheese
417c3bb640 More detailed validator session stats 2022-08-18 21:52:08 +03:00
SpyCheese
b3e6819f3f Log validator session stats to file 2022-08-18 21:51:57 +03:00
EmelyanenkoK
17c561c4db
Merge pull request #439 from ton-blockchain/master
Merge master
2022-08-17 08:02:56 +03:00
ms
f95f1a5874
Add tonlib method raw.sendMessageReturnHash (#423)
* Add tonlib method raw.sendMessageReturnHash

* resolve tlo

Co-authored-by: ms <dungeon666master@protonmail.com>
2022-08-15 20:04:24 +03:00
Andrey Tvorozhkov
c1f281d814
Add addr@+ / addr@ functions to parse addr from slice (#366)
Add addr@ to parse `addr_none$00` / `addr_extern$01` / `addr_std$10` / `addr_var$11` from slice.

Tests:

```
<b b{00} s, b> <s addr@  ."addr_none$00 parsed: " print-addr cr  // addr_none$00
<b b{01} s, 10 9 u, b{1101010101} s, b> <s addr@ ."addr_extern$01 parsed: " print-addr cr // addr_extern$01
<b b{10} s, b{1} s, 10 30 u, b{1111111111} s, -1 8 i, x{8000000000000000000000000000000000000000000000000000000000000000} s, b> <s addr@ ."addr_std$10 with Anycast parsed: " print-addr  cr // addr_std$10 with Anycast
<b b{10} s, b{0} s, -1 8 i, x{8000000000000000000000000000000000000000000000000000000000000000} s, b> <s addr@ ."addr_std$10 without Anycast parsed: " print-addr cr // addr_std$10 without Anycast
<b b{11} s, b{1} s, 10 30 u, b{1111111111} s, 256 9 u, -10 32 i, x{8000000000000000000000000000000000000000000000000000000000000000} s, b> <s addr@ ."addr_var$11 with Anycast parsed: " print-addr cr // addr_var$11
<b b{11} s, b{0} s, 256 9 u, -10 32 i, x{8000000000000000000000000000000000000000000000000000000000000000} s, b> <s addr@ ."addr_var$10 with Anycast parsed: " print-addr cr // addr_var$11
```
2022-08-15 18:35:27 +03:00
Doge
36fbe3a2ac
Update links to global configs (#398)
* Fix the document

* Add link to ton.org/docs to FullNode howto

* Update links to config fullnode

* Another link update (fullnode docs)

* Update links to config (TonSites)

* Update config links (Validator docs)

* Update config links (lite-client docs)

Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
2022-08-15 18:29:02 +03:00
andreypfau
e36452fffe
Explicitly add ValueFlow prefix (#411) 2022-08-15 18:23:23 +03:00
ms
6185e3b18f
Add tonlib method smc.getLibraries (#428)
Co-authored-by: ms <dungeon666master@protonmail.com>
2022-08-15 18:17:41 +03:00
EmelyanenkoK
9640a2794a
Merge pull request #438 from psydvl/fix
crypto/vm: fix include
2022-08-11 13:06:52 +03:00
Dmitriy
fb3077af9b crypto/vm: fix include 2022-08-11 12:27:47 +03:00
EmelyanenkoK
570da56a9e
Merge pull request #436 from ton-blockchain/testnet
Fix validator session options hash
2022-08-10 10:16:27 +03:00
EmelyanenkoK
054c5780d9
Add acknowledgments to Changelog 2022-08-10 10:14:36 +03:00
EmelyanenkoK
f2155c4a0c
Update Changelog.md 2022-08-09 16:05:40 +03:00
EmelyanenkoK
3525cd5c70
Merge pull request #434 from SpyCheese/master
Fix validator session options hash; fix proto_version
2022-08-09 14:27:20 +03:00
SpyCheese
30ba32bef9 Fix validator session options hash; fix proto_version 2022-08-09 13:18:06 +03:00
EmelyanenkoK
ce65245a69
Merge pull request #433 from ton-blockchain/testnet
Merge node updates
2022-08-08 12:48:00 +03:00
EmelyanenkoK
acba17a025
Fix README 2022-08-08 09:42:23 +03:00
SpyCheese
8d7f1bba73
Update catchain (#432)
* Update catchain

* Update ton_api.tlo
2022-08-08 09:31:36 +03:00
EmelyanenkoK
5101b404a4 Merge branch 'master' into testnet 2022-08-04 17:45:31 +03:00
EmelyanenkoK
d46e4b3538 A series of FunC improvements (#378)
* Don't use IFJMP/IFNOTJMP in inline functions

* Fix incorrect ifelse branch code generation 

https://github.com/ton-blockchain/ton/issues/374

* Make generate_code_all clearer

* Don't replace IFJMP with IF in inner blocks in inline functions

* Allow unbalance if/else by using RETALT

* Fix wrong PUSHCONT

* Bugfix in IF code generation for inline functions

* Fix unbalanced if/else

* Bugfix and improvements in code generation

* Fix analyzing while(0) in func

https://github.com/ton-blockchain/ton/issues/377

* FunC and Asm.fif: Fix inlining large functions

https://github.com/ton-blockchain/ton/issues/375

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2022-08-04 14:53:47 +03:00
EmelyanenkoK
40cec56e28
A series of FunC improvements (#378)
* Don't use IFJMP/IFNOTJMP in inline functions

* Fix incorrect ifelse branch code generation 

https://github.com/ton-blockchain/ton/issues/374

* Make generate_code_all clearer

* Don't replace IFJMP with IF in inner blocks in inline functions

* Allow unbalance if/else by using RETALT

* Fix wrong PUSHCONT

* Bugfix in IF code generation for inline functions

* Fix unbalanced if/else

* Bugfix and improvements in code generation

* Fix analyzing while(0) in func

https://github.com/ton-blockchain/ton/issues/377

* FunC and Asm.fif: Fix inlining large functions

https://github.com/ton-blockchain/ton/issues/375

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2022-08-04 14:48:19 +03:00