github AntelopeIO/leap v4.0.1
Leap v4.0.1

latest releases: v5.0.3, v5.0.2, v4.0.6...
2 years ago

Leap v4.0.1 Release Notes

Leap v4.0.1 is a patch release, fixing defects discovered in features added in the recent v4.0.0 release. This release includes fixes for:

  • Failing signature checks for dry run transactions
  • Failing replay when using a partitioned block log
  • Excessive memory consumption during replay
  • Other minor updates

Leap v4.0.1 Release Notes

Bug fixes

Fix for failing signature checks on dry run transactions

PRs

  • (1089) [3.2] fix: not fail on signature checks for dry-run txns
  • (1090) [3.2 -> 4.0] fix: not fail on signature checks for dry-run txns


Signature checks were erroneously being performed for dry run transactions. These unnecessary checks always failed since dry run transactions are never signed.

Dry run transactions are now excluded from signature checks, avoiding failures. To validate the correction, we have included a new test case called dry_run_auth_test. The test simulates dry run transactions, ensuring that they are not subject to unnecessary signature verification.

This change makes dry run transactions more reliable.

Fix replay of partitioned block log

PRs

  • (1164) [4.0] fix replay for partitioned block log


The replay of partitioned block logs was failing.

To resolve the issue, several fixes were implemented including addressing the non-existent retained directory, fixing file permissions, ensuring the correct genesis was supplied, refactoring the extract_chain_context function, fixing the leap util, and removing unused includes. These changes collectively resolved the block replay problem with partitioned block logs.

This change improves the reliability block replay for a partitioned block log.

Fix for excessive memory consumption during blocks log replay

PRs

  • (1191) [4.0] Fix for nodeos large memory consumption during a blocks log replay


During block log replay, nodeos consumed excessive memory, leading to memory exhaustion and causing potential performance degradation and instability.

This change significantly reduces memory consumption and improves the stability and performance of nodeos during block log replay.

Handle close while syncing node

PRs

  • (1171) [4.0] Correctly handle close while syncing


When generating snapshots during syncing, nodeos would timeout a sync and close the connection. This would cause all queued blocks on that connection to be dropped and sync_next_expected_num to not be reset.

nodeos now correctly handles the close event during syncing.

This change improves the stability and reliability of the syncing process.

Fix shutdown caused by remote endpoint http errors

PRs

  • (1175) [4.0] Ignore http error on remote_endpoint() causing shutdown


The remote_endpoint() call was generating an error "Transport endpoint is not connected," which caused the http thread pool to exit due to an uncaught exception, resulting in a shutdown.

To address this issue, the error generated by the remote_endpoint() call has been ignored, and "unknown" is logged for the remote endpoint instead. This prevents the http thread pool from exiting unexpectedly.

Other changes

Block log changes

PRs

  • (1154) [4.0] Added block log version and num of blocks to output of leap-util block-log smoke-test
  • (1141) [4.0] change max-retained-history-files default


In previous leap versions eosio-blocklog reported block log version and number of blocks when invoking smoke-test. The newer leap-util did not report block log version or number of blocks.

leap-util block-log smoke-test now returns block log version number and number of blocks similar to prior versions of eosio-blocklog.

Better read only option handling

PRs

  • (1129) [4.0] Check read-only trx options only when read-only-thread enabled, and present better error message


Read only transaction options are now validated only when the number of read only threads is configured greater than 0. The error message for an invalid -read-only-read-window-time-us has also been improved.

Documentation Updates

PRs

  • (849) Fix README.md Formatting
  • (1105) 4.0: Documentation fixed Error path in producer plugin swagger
  • (1087) [4.0] Update swagger files to include missing doc


Some minor changes were made to documentation and swagger output formatting.

Further details on changes since last release

Contributors

Special thanks to the contributors that submitted patches for this release:

Full list of changes since last release

PRs

  • (849) Fix README.md Formatting

  • (1105) 4.0: Documentation fixed Error path in producer plugin swagger

  • (1087) [4.0] Update swagger files to include missing doc

  • (1089) [3.2] fix: not fail on signature checks for dry-run txns

  • (1090) [3.2 -> 4.0] fix: not fail on signature checks for dry-run txns

  • (1129) [4.0] Check read-only trx options only when read-only-thread enabled, and present better error message

  • (1154) [4.0] Added block log version and num of blocks to output of leap-util block-log smoke-test

  • (1141) [4.0] change max-retained-history-files default

  • (1164) [4.0] fix replay for partitioned block log

  • (1191) [4.0] Fix for nodeos large memory consumption during a blocks log replay

  • (1171) [4.0] Correctly handle close while syncing

  • (1175) [4.0] Ignore http error on remote_endpoint() causing shutdown

  • (857) Simplify Pinned Build Scripts

  • (1193) [4.0] Revert "Simplify Pinned Build Scripts"

  • (1201) [4.0] Bump Leap to 4.0.1


Full Changelog: v4.0.0...v4.0.1

Don't miss a new leap release

NewReleases is sending notifications on new releases.