๐ Pre-Nocturne Optimization & Bugfix Update
This update is a preliminary release ahead of Nocturne, primarily focused on performance improvements, bug fixes, and groundwork for upcoming features. While this is not a required update, it is strongly recommended due to its non-breaking nature and direct benefits to the 1 BPS HTN.
โ Core Improvements
- Fix: Issue where nodes would relay blocks without a valid PoW hash from LevelDB, causing IBD stalls due to missing ancestors.
- Performance: Relay block requests are now handled in a separate thread to avoid blocking and improve relay throughput.
- Security: Blocks without a valid PoW hash are now subject to banning when relayed too frequently, instead of ignored.
- Refactor:
handleSubmitBlock
has been cleaned up for clarity and maintainability. - Reliability: HTNWallet now retries transaction submission if spendable UTXOs are temporarily unavailable.
- Logging: Block logger interval reduced from 10 seconds to 1 second for more responsive monitoring.
- Maintenance: Updated various dependencies.
๐ ๏ธ Nocturne Compatibility (Behind Block Version Flag)
These features are included but gated behind version flags for Nocturne compatibility:
- Hoohash Hoohash V1.1.0 implemented and testable with Hoominer 0.0.1 CPU
- Coinbase Reward: Support dynamic coinbase reward calculation based on
targetTimePerBlock
. - Finality & Pruning: Added support to customize Finality Depth and Pruning Depth independently.
- PruningPoint: Now based on Pruning Depth instead of Finality Depth for improved control.
- Network Support: Added support for
testnet-b5
,testnet-b10
, alongsidemainnet
,testnet
,devnet
, andsimnet
.
๐งน Optimizations
- Numerous performance optimizations throughout the codebase.
- Eliminated redundant and expensive duplicate function calls to improve node efficiency.