blockchain/src/currency_core
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
..
account.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
account.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
account_boost_serialization.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
alias_helper.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
basic_api_response_codes.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
basic_kv_structs.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
basic_pow_helpers.cpp feat: RandomX PoW, LWMA difficulty, stratum mining.* protocol, new genesis 2026-02-06 13:22:25 +00:00
basic_pow_helpers.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_attachments_helpers.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_attachments_helpers_basic.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_attachments_service_manager.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_attachments_service_manager.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_block_datetime_service.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_escrow_service.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_offers_serialization.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_offers_service.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_offers_service.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_offers_service_basic.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
bc_payments_id_service.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
block_chain_shortener.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
block_chain_shortener.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
block_flags.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
blockchain_storage.cpp feat: RandomX PoW, LWMA difficulty, stratum mining.* protocol, new genesis 2026-02-06 13:22:25 +00:00
blockchain_storage.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
blockchain_storage_basic.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
blockchain_storage_boost_serialization.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
checkpoints.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
checkpoints.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
checkpoints_create.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
connection_context.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
core_runtime_config.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
core_tools.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
crypto_config.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_basic.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_basic_backward_comp.inl Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_boost_serialization.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_core.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_core.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils_abstract.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils_blocks.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils_blocks.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils_transactions.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_format_utils_transactions.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
currency_stat_info.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
difficulty.cpp feat: RandomX PoW, LWMA difficulty, stratum mining.* protocol, new genesis 2026-02-06 13:22:25 +00:00
difficulty.h feat: RandomX PoW, LWMA difficulty, stratum mining.* protocol, new genesis 2026-02-06 13:22:25 +00:00
dispatch_core_events.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
etc_custom_serialization.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
etc_custom_serialization.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
genesis.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
genesis.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
genesis_acc.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
genesis_acc.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
miner.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
miner.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
offers_service_basics.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
offers_services_helpers.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
offers_services_helpers.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
pos_mining.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
pos_mining.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
tx_pool.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
tx_pool.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
tx_semantic_validation.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
tx_semantic_validation.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
verification_context.h Testnet 1 (#15) 2025-09-30 16:48:13 +01:00