Claude
467c64d015
feat: RandomX PoW, LWMA difficulty, stratum mining.* protocol, new genesis
...
Replace ProgPowZ with RandomX for ASIC-resistant proof-of-work. The
full dataset is initialized multi-threaded at startup with the key
"LetheanRandomXv1". Thread-local VMs are created on demand.
Switch difficulty algorithm from Zano's 720-block window to LWMA-1
(zawy12) with a 60-block window for much faster convergence after
hashrate changes. Target block time set to 10s for PoW.
Add standard stratum mining.* protocol handlers (subscribe, authorize,
submit, extranonce.subscribe) alongside existing EthProxy eth_*
handlers, with automatic protocol detection and mining.notify
translation for XMRig-based miners.
Generate fresh Lethean genesis block and premine wallet. Replace all
remaining hardcoded Zano addresses in tests with runtime-generated
keys to avoid prefix mismatches. Link RandomX library across all
build targets.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 13:22:25 +00:00
sowle
3a9245f743
crypto::random refactoring and improvements (credits to @dimmarvel for spotting the thread safety issue)
2025-07-31 04:14:10 +03:00
Dmitry Matsiukhov
4695229f2a
fix warnings ( #546 )
...
* fix warnings
* refactoring
2025-07-18 20:17:02 +03:00
sowle
ee883a690c
Merge branch 'release' into develop
...
# Conflicts:
# src/wallet/wallet2.cpp
2025-07-17 15:39:00 +03:00
Dmitry Matsiukhov
a3587a48e7
fix array entry deserialization and JSON parsing edge cases + tests ( #545 )
...
credits go to Lilith (>_>) of Cisco Talos (TALOS-2018-0637) and moneromooo-monero (DoS/RPC fixes PR#4438)
2025-07-17 15:14:41 +03:00
Dmitry Matsiukhov
c637e16848
unit_tests: added a test for pod array file container, fixed clear() ( #535 )
...
* add test for pod array file container
* add tests for pod, clear and is open
* header update
---------
Co-authored-by: sowle <crypto.sowle@gmail.com>
2025-07-04 00:41:53 +02:00
cryptozoidberg
a13eedf556
fix of currency protocol for long range splits
2025-02-28 19:11:37 +04:00
sowle
ca9a8f95de
Merge branch 'develop' into txhfid
2025-02-03 18:29:45 +01:00
Stёpa Dolgorukov
072d53de9b
coretests: Fix MSVC C4146 warning in the test "get_xtype_from_string" ( #503 )
...
* Change macros for creating test names
* Add test for values of types int{16,32,64}_t
* Fix MSVC C4146 warning
---------
Co-authored-by: sowle <crypto.sowle@gmail.com>
2025-01-28 10:28:14 +01:00
sowle
ddd91d8fec
minor warning fix
2025-01-21 01:22:28 +01:00
sowle
13f524defb
tx hardfork id: wip (basic structures, miner tx creation adapted, tests adapted almost all + hard_fork_5_tx_version)
2024-12-06 05:39:18 +01:00
sowle
2b249ef414
unit_tests: wallet_seed.basic_test fixed to reflect recent changes in password limitations
2024-11-10 22:18:01 +01:00
Stёpa Dolgorukov
422c7f2a3a
unit_tests: implemented a test for the function "prepare_outputs_for_key_offsets" ( #477 )
2024-11-04 14:12:19 +01:00
Stёpa Dolgorukov
4e78beebeb
unit_tests: repair compilation on the G++ 12 compiler ( #473 )
2024-10-25 18:06:21 +02:00
sowle
d23fa1911e
unit_tests: asset_id serializations test: WIP
2024-10-22 18:27:17 +02:00
Stёpa Dolgorukov
8cc826f5b3
unit_tests: edit the "p2p_client_version.test0" ( #471 )
...
* Unit tests: implement the "p2p_client_version.test0"
* Unit tests: edit the "p2p_client_version.test_0"
* Change a default value for a commit identifier on a non empty expected value
* Format the source text
* Fix the test
* Comment on the cases where results differ on Windows, GNU/Linux
2024-10-22 14:48:29 +02:00
Stёpa Dolgorukov
0cd719474b
unit_tests: reimplement "get_or_calculate_asset_id" tests, fix "get_or_calculate_asset_id" due to serialization changes ( #467 )
2024-10-22 14:47:36 +02:00
Stёpa Dolgorukov
c344739de9
unit_tests: implement the "p2p_client_version.test0" ( #466 )
2024-10-14 20:41:50 +02:00
sowle
8758f6dc79
utils: parse_client_version, parse_client_version_build_number() implemented + unit tests stub
2024-09-25 04:03:57 +02:00
cryptozoidberg
8904cc20c4
fixed serialization test
2024-09-10 18:49:19 +04:00
Stёpa Dolgorukov
dc76fb9051
unit_tests: fixes for multiassets.get_or_calculate_asset_id_*
...
* Create multiassets test
* Correct an indentation
* Remove unnecessary assertions in cases of ASSET_DESCRIPTOR_OPERATION_UNDEFINED
* Correctly specify a string that represents the serialized object
2024-09-07 02:12:44 +02:00
sowle
47a1bd985d
unit_tests: fix for a gcc warning
2024-08-20 18:27:17 +02:00
Stёpa Dolgorukov
443386489c
unit tests: wallet_seed.{timestamp_from_word, word_from_timestamp} added + typo fixed ( #450 )
...
* Create wallet_seed.{timestamp_from_word, word_from_timestamp} tests
* Rename functions that convert a word to a timestamp, a timestamp to a word
* Make an implementation of the test in the source code shorter
2024-08-20 17:23:21 +02:00
Stёpa Dolgorukov
9e6faffb49
Create multiassets test ( #449 )
2024-08-19 12:13:56 +02:00
cryptozoidberg
820d5a88ac
test data for new forkchoice rule generated(fork_choice_rule_test.fork_choice_rule_test_hf4)
2024-08-08 21:04:52 +04:00
Stёpa Dolgorukov
a1a53012fb
Implement xtype_from_string tests for types int16_t, int32_t, int64_t ( #447 )
...
* Change macros for creating test names
* Add test for values of types int{16,32,64}_t
---------
Co-authored-by: sowle <crypto.sowle@gmail.com>
2024-08-01 23:10:19 +02:00
sowle
cdb9dd2f1f
unit tests: added a test for print_money_brief
2024-07-07 20:35:03 +02:00
sowle
b6e84b460e
added decimal point support to currency::parse_amount() + minor refactoring
2024-07-02 20:49:51 +02:00
sowle
cee6e51cbb
unit_tests: tx_signatures_packing.1 fixed
2024-06-26 15:35:52 +02:00
sowle
d4d3ea1d23
unit_tests: p2p_client_version_test_1 fixed
2024-06-26 14:56:37 +02:00
cryptozoidberg
9af876ccaa
decoy selection algo refactoring
2024-03-25 21:56:46 +01:00
cryptozoidberg
fa606c1665
payment_id improved
2024-02-17 20:35:01 +04:00
sowle
ab226469a9
more compilation fixes
2024-02-09 15:22:43 +01:00
sowle
01adc5087c
unit_tests: median_helper_tests improved to make sure new optimized version of median() works exactly the same as the old one
2024-02-04 23:52:56 +01:00
cryptozoidberg
bfb4a91f92
fork choice rule updated
2023-12-26 22:18:46 +01:00
cryptozoidberg
04103dea7f
decoy selection algo added
2023-12-15 01:42:06 +03:00
sowle
46a0db21ec
Merge branch 'develop' into cryptoassets
...
# Conflicts:
# CMakeLists.txt
# README.md
# contrib/epee/include/net/http_client.h
# src/currency_core/blockchain_storage.cpp
# src/currency_core/currency_core.cpp
# src/currency_core/currency_format_utils.cpp
# src/gui/qt-daemon/layout
# src/rpc/core_rpc_server.cpp
# src/rpc/core_rpc_server.h
# src/rpc/core_rpc_server_commands_defs.h
# src/version.h.in
# src/wallet/wallet2.cpp
# src/wallet/wallet2.h
# src/wallet/wallet_public_structs_defs.h
# src/wallet/wallet_rpc_server.h
# tests/core_tests/chaingen.cpp
# tests/core_tests/pos_validation.cpp
# tests/core_tests/wallet_tests.cpp
# tests/performance_tests/main.cpp
2023-11-01 23:48:36 +01:00
cryptozoidberg
1886fae681
implemented governance initial code for wallet/daemon
2023-10-03 22:43:51 +02:00
cryptozoidberg
4c666aa6a4
added more test cases for emmit into multiassets_basic_test
2023-08-16 23:04:29 +02:00
sowle
5ff0f93027
unit_tests & performance_tests: fixed compilation error
2023-07-14 01:30:26 +02:00
sowle
a813484a4f
confidential assets: global refactoring WIP (now everything is in compilable state, including tests)
2023-02-13 21:42:31 +01:00
sowle
dc8c84028d
1) get_object_blobsize(tx) fixed for post-HF4 txs 2) zarcanum_test removed from postponed! (I expect it to pass well now)
2022-10-21 05:01:10 +02:00
sowle
b94c9f75d3
1) logging: channel(s) enabling made optionally less verbose; 2) various fixes after the merge
2022-10-14 19:08:27 +02:00
cryptozoidberg
033ec29d60
attempt to fix unit_tests Serialization:versioning2
2022-10-10 14:46:56 +02:00
cryptozoidberg
09a1ddf97b
removed unused includes
2022-10-07 22:45:52 +02:00
cryptozoidberg
432e1c2d2b
merge from zarcanum
2022-10-04 16:32:41 +02:00
cryptozoidberg
d864d43aab
fixes over tests
2022-10-04 16:29:24 +02:00
sowle
3fd984396e
unit tests: tx_signatures_packing added
2022-10-01 20:59:04 +02:00
sowle
df11160e7a
decompose_amount_randomly + unit test
2022-09-29 21:54:15 +02:00
sowle
5bfbb8091d
unit tests: amounts_tests restored, renamed
2022-09-29 21:49:57 +02:00