Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid updating the block gap when it's unchanged #5540

Merged

Commits on Sep 1, 2024

  1. Avoid updating the block gap when it's unchanged

    Previously, the block gap storage could be updated even when the gap is
    the same as before. This patch fixes it by only updating the storage
    when the gap is changed.
    liuchengxu committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    bde7609 View commit details
    Browse the repository at this point in the history
  2. Make format strings more consistent within this file

    Pure tiny refactoring, no logical changes.
    
    The benefit of consistent format strings is 10 lines of deletion.
    
    The other style changes are added by the rust formatter.
    liuchengxu committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    f2a260b View commit details
    Browse the repository at this point in the history
  3. Only update the block gap state when it's changed

    Previously, the block gap state in `BlockchainDb` in unconditionally updated
    whenever `try_commit_operation` is invoked, even if the state hadn't changed.
    This commit refines the logic to update the block gap state only when a change
    occurs, reducing unnecessary writes and improving efficiency.
    liuchengxu committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    e977dd5 View commit details
    Browse the repository at this point in the history
  4. Add prdoc

    liuchengxu committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    335ac51 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Configuration menu
    Copy the full SHA
    79c5e6f View commit details
    Browse the repository at this point in the history