v1.4.2 is a maintenance release,fixing some minor issues and adding some optimizations.
Minor changes and bugfixes
- Fixed the duplicate fetch bug caused by BlockFetcher's identification value based on UncleDist distance.
- Fixed when a node stops generating new blocks, other nodes can't synchronize blocks from it.
- Fixed disconnection due to verification failure, caused by wal when restarting.
- Fixed the mistake that when initiating synchronization, the block number of the local and remote should be the highest number in the memory instead of in the disk.
- Fixed that UncleHash should be calculated by hashing nil instead of 0 when the block is compatible with Ethereum.
- Fixed a crash caused by repairing chain if the data is inconsistent when starting the chain (the consensus mechanism dictates that blocks cannot be rolled back)
- Fixed a bug that when downloader and cbft write blocks in parallel, known errors (e.g. block duplicates) cause err to be thrown to the downloader resulting in a misclassification.
- Fixed a deadlock of node event subscription when updating the list of verifiers in a special block.
- Optimized the logic of maximum number of p2p connections.
Statement
This version is a minor version upgrade. nodes can choose to upgrade according to its own situation.