1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 19:22:37 +00:00
Commit graph

455 commits

Author SHA1 Message Date
Marat
8839e3a814
[tonlib] Limit stack serialization (#693) 2023-05-24 12:40:21 +03:00
Marat
c527bfeceb
Emulator improvements (#687)
* ticktock, unixtime, optional config

* documentation

* fix account.now

* emulate tick/tock for emscripten

* remove excessive check

* limit stack serialization calls
2023-05-24 12:40:04 +03:00
Marat
86623b4cea
Enable more verbose TVM stack dump (#669)
* Verbose stack dump

* Move vm::VmLog::DumpStack and vm::VmLog::DumpStackVerbose to the next verbosity levels
2023-05-24 12:39:15 +03:00
EmelyanenkoK
506cd5ee36 Update storage-provider compilled smartcontracts 2023-05-24 10:29:34 +03:00
EmelyanenkoK
b76eff2ddb
Adjust storage-provider.fc fees 2023-05-19 16:09:10 +03:00
neodiX42
148688572f
Fix static linking of libcxx on macOS, more portable tonlibjson (#694)
* upgrade nix to 22.11

* add static libcxx

* fix darwin dylib names

* make sure static libs are inside dylib

* apply patches only for darwin

* apply patches only for darwin

* apply patches only for darwin

* test builds

* test builds 2, remove dependency corefoundation

* test builds 3, update flake.lock

* test builds 4

* test builds 5, dontAddStaticConfigureFlags only for darwin

* test builds 6, put back CoreFoundation flag

* improve testing
2023-05-19 10:24:24 +03:00
EmelyanenkoK
ef64b92f08
Add fee burning and blackhole address (#703)
* Fix tlbc crash

* Burn specified fraction of fees

* Add "blackhole" for burning TONs

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-05-18 11:26:02 +03:00
EmelyanenkoK
d5cd548502 Add 2023.05 changelog 2023-05-16 13:28:23 +03:00
SpyCheese
dad980ed09
Fix STSLICECONST, bump Asm.fif version to 0.4.4 (#700) 2023-05-15 16:35:23 +03:00
EmelyanenkoK
583178ccb1
FunC: enable asserts and fix try/catch stack corruption (#699)
* FunC: enable asserts in Release

* FunC: Fix analyzing infinite loops

* FunC: Allow catch with one tensor argument

* FunC: Fix try/catch stack corruption

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-05-15 15:31:42 +03:00
SpyCheese
5abfe2337e
Catchain improvements (#698)
* Fix "sgn" in fift; fix marking infinite loops as noterurn in func

* TON-P1-1: Remove unused catchain queries

* TON-P1-15: Avoid synchronization with self

* TON-P1-3, TON-P1-17: Disallow more than one candidate per src per round (to prevent flood), add checks to process_broadcast

* TON-P1-10: Fix fast/slow attempts

* TON-P1-14: Add named constants

* TON-P1-18, TON-P1-19: Alloc temporary memory in the same way as persistent memory

* TON-P1-20: Add comment to choose_blocks_to_approve

* TON-P1-16: Avoid creating two catchain blocks on need_new_block

* TON-P1-8: Add some validation to validator-engine parameters

* TON-P1-6: Don't allow sending the same block many times

Many requests for the same block are not unusual (however, there's no need to answer them all)

* TON-P1-2: Enable prohibiting dependencies from blamed nodes (2.7.5 in CatChain doc), fix processing blame proofs

* Best practices

bp-6: Fix incorrect warning
bp-7: Remove unused code
bp-8: Bring back PerfWarningTimer logging (only when no callback)
bp-9: Remove unnecessary condition
bp-11: Remove commented-out code
bp-13: Divide code in validator-session-state
Adherence to Specification: Fix typo
2023-05-10 12:57:57 +03:00
neodiX42
7878578dba
Add day to the git tag name (#652)
* Add day to the git tag name

* Change release tag generation method.

v2023.04
v2023.04-1
v2023.04-2
v2023.04-3
etc

* add git fetch to get all tags

* add git fetch to get all tags
2023-05-05 11:50:46 +03:00
neodiX42
1aadc80742
More portable (#681)
* integrate static openssl into linux binaries;
do not use AVX and AVX2 CPU instructions in windows binaries.

* integrate static openssl into linux binaries;
do not use AVX and AVX2 CPU instructions in windows binaries.
2023-05-04 16:50:25 +03:00
neodiX42
f8b585df39
Fix missing git revision when built with Nix. (#680) 2023-05-04 16:49:43 +03:00
EmelyanenkoK
1696ebfa20
Account for unprocessed messages in estimate_block_size; check consensus_config limits in collator (#692)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-05-04 14:45:42 +03:00
EmelyanenkoK
a78adf3062
Increase limit for t_Block.validate, simplify validating StateInit (#691)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-05-03 14:18:18 +03:00
EmelyanenkoK
24ed85b155
Merge pull request #690 from SpyCheese/patch-archive-manager
Fix saving list of packages in archive manager
2023-05-02 19:50:28 +03:00
SpyCheese
87d4f4bc7f Fix saving list of packages in archive manager 2023-05-02 18:32:20 +03:00
EmelyanenkoK
444dda8d62
Revert too strictening of queue_cleanup_timeout 2023-04-28 16:42:11 +03:00
EmelyanenkoK
8bc20ede2e
Add archive manager index (#685)
* Optimize get_file_desc_by_ seqno/lt/ut

* Optimize get_next_file_desc

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-04-28 12:58:02 +03:00
EmelyanenkoK
dd8658c4db Comment out excessive checks of outbound messages queue 2023-04-27 14:43:37 +03:00
EmelyanenkoK
5606418234
FunC: Prohibit unifying tensors and "forall" vars (#684)
* FunC: Prohibit unifying tensors and "forall" vars

* Bump funC version to 0.4.4

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-04-27 10:23:04 +03:00
aleksej.paschenko
aab1fe0751
Use BUILD_SHARED_LIBS to decide whether to build libemulator.so (#671)
* Update ubuntu:20.04 dockerfile (#636)

* Update Dockerfile

* Update Dockerfile

---------

Co-authored-by: neodiX42 <neodiX@ton.org>

* Use BUILD_SHARED_LIBS to decide whether to build libemulator.so

---------

Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
Co-authored-by: neodiX42 <neodiX@ton.org>
2023-04-27 09:33:32 +03:00
EmelyanenkoK
1d9e5d3672
Merge pull request #683 from ton-blockchain/master
Merge master
2023-04-27 09:32:40 +03:00
EmelyanenkoK
d067e6ca3f
Make stricter cleanup timelimit 2023-04-26 21:32:26 +03:00
EmelyanenkoK
7ee70778d2
Add timeout for out_msg_queue_cleanup (#679)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-04-26 09:15:16 +03:00
EmelyanenkoK
8b0d6a2665
Add WASM FunC autotests (#673)
* feat: func wasm autotests

* fixes necessary for func wasm autotests

---------

Co-authored-by: krigga <krigga7@gmail.com>
2023-04-19 21:29:41 +03:00
Ilyar
8d919a5db9
add missing VM opcode definition (#670) 2023-04-19 20:09:15 +03:00
EmelyanenkoK
fd4c512de5
Move JettonBridge config num for BNB, Polygon 2023-04-17 15:54:33 +03:00
EmelyanenkoK
e6f2205dbf
Merge pull request #654 from ton-blockchain/testnet
Merge developer branch
2023-04-10 10:45:02 +03:00
EmelyanenkoK
f55ddb3de8
Update Changelog 2023-04-10 10:41:21 +03:00
Andrey Pfau
479edc909f
fix date for matching to version in release (#639) 2023-04-10 10:10:56 +03:00
EmelyanenkoK
6ddcac68ad
Add notes on mainnet version to config-code 2023-04-10 09:32:49 +03:00
SpyCheese
bb21f732fd
Recent updates in storage (#667)
* Fix error handling in Torrent.cpp, improve choosing peers for upload

* Various improvements in storage daemon

"get-pieces-info"
Store "added at"
Improve calculating up/down speed
Improve TL protocol for future compatibility
Remove empty directories on "--remove-files"
Better windows support
Debug logs in PeerActor
More restrictions on TorrentInfo
Bugfixes

* Global speed limits for download and upload

+bugfix

* Reset download/upload speed on changing settings or completion

* Exclude some system files in TorrentCreator
2023-04-07 15:50:07 +03:00
EmelyanenkoK
e3af63e6c0
Fix PUSHSLICE for some unfortunate slice lengths 2023-04-04 18:26:02 +03:00
neodiX42
35889fa5f5
Update CMakeLists.txt (#665)
Introduce USE_EMSCRIPTEN_NO_WASM flag to build emulator without wasm dependencies.
2023-04-04 15:35:25 +03:00
EmelyanenkoK
8eb167b76a
Fix FunC UB (#656)
* Fix UB in func

* Improve optimizing int consts and unused variables in FunC

* Bump funC version to 0.4.3

* Fix analyzing repeat loop

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-04-03 10:13:39 +03:00
krigga
f51eb2d747
Add debug enabled flag to transaction and TVM emulator (#662)
* Add debug enabled flag to transaction and TVM emulator

* Set debug_enabled false in Emulator constructor
2023-04-02 17:28:18 +03:00
SpyCheese
eabcb6a8e9
Better error handling in stack serialization (#664) 2023-04-02 17:27:31 +03:00
SpyCheese
3a30d6f319
Minor DHT improvements (#657)
* Remove repeating DHT queries in adnl-peer

* Fix checking dht node signature for non-default network id

* Custom dht network id in generate-random-id
2023-03-30 10:10:09 +03:00
SpyCheese
5e0dadfff6
Rollback celldb optimization (#658) 2023-03-30 10:03:05 +03:00
SpyCheese
9be3701bc0
Don't delete accounts with extra currencies (temporary) (#659) 2023-03-30 10:02:15 +03:00
EmelyanenkoK
b76158a753
Move forward init_block in tonlib config 2023-03-22 14:01:17 +03:00
EmelyanenkoK
47311d6e0e
Improve tweaking for high throughput (#610)
* Option "--disable-ext-msg-broadcast"

* "Get shard out queue size" query

* Move disabling ext msg broadcasts from command-line arguments to config

* Fix compilation error

* Asynchronous store_cell and gc in celldb

* Make GC in celldb work evenly over time

* Increase timeouts for downloading blocks

* Reuse blocks from previous rounds in validator session

* Use Rldp2 in FullNode for downloading persistent states and archives

* Improve logs in download-archive-slice and download-state

* Decrease delay between serializing shards

* Make CellDbIn::load_cell synchronous to avoid interfering with store_cell

---------

Co-authored-by: SpyCheese <mikle98@yandex.ru>
2023-03-15 10:47:35 +03:00
Marat
30c742aedd
Add missing export symbol _transaction_emulator_set_unixtime (#651) 2023-03-15 10:46:54 +03:00
EmelyanenkoK
9b3f9e4ac1 Add Licenses to funC stdlib 2023-03-14 21:29:33 +03:00
EmelyanenkoK
7da30e1e7f
Add PRNG with normal distribution to mathlib.fc (#646)
* Add random with normal distribution

* Fix hex arguments in mathlib testcases
2023-03-13 16:49:30 +03:00
SpyCheese
4d5ded5761
Asm.fif improvements (#631) (#645)
* Asm.fif improvements (#631)

Add missing opcodes, CUSTOMOP, disallow 256 PUSHPOW256, recursive PROGRAM, require-asm-fif-version

* Fix nested PROGRAM, add test

* Simplify require-asm-fif-version

---------

Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
2023-03-13 16:48:48 +03:00
EmelyanenkoK
fbb1e548f7
Fix msg_cell on stack for SmartContract::send_*_message (#647)
* Fix msg_cell on stack for SmartContract::send_*_message

* Fix src address in SmartContract::send_internal_message
2023-03-13 16:46:54 +03:00
Andrei Kostylev
c74c99774e
fix null serialization in extern tvm emulator (#644) 2023-03-10 14:17:17 +03:00