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

Solution Rebasing #545

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Solution Rebasing #545

wants to merge 2 commits into from

Conversation

ldmberman
Copy link
Member

No description provided.

@ldmberman ldmberman changed the title Improvement/block rebase WIP Apr 4, 2024
%-type validation_status() :: on_chain | validated | not_validated | none.
%-type nonce_limiter_validation_status() :: nonce_limiter_validated |
% nonce_limiter_validation_scheduled | awaiting_nonce_limiter_validation.
%-type block_status() :: validation_status() | {not_validated, nonce_limiter_validation_status()}.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just delete those if you want. I'd added them when I was trying to undesr the ar_block_cache for the checkpoint work. Probably not useful as a one-off

@@ -1026,10 +740,10 @@ get_block_anchors_and_recent_txs_map(BlockTXPairs) ->
apply_block(State) ->
case ar_block_cache:get_earliest_not_validated_from_longest_chain(block_cache) of
not_found ->
%% Nothing to do - we are at the longest known chain already.
{noreply, State};
may_be_rebase(State);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
may_be_rebase(State);
maybe_rebase(State);

@ldmberman ldmberman changed the title WIP Solution Rebasing Apr 17, 2024
@ldmberman
Copy link
Member Author

ldmberman commented Apr 17, 2024

@JamesPiechota FYI I pushed c6ca466 on top of previously reviewed.

UPD nevermind, a similar change was in master already.

@JamesPiechota
Copy link
Collaborator

@JamesPiechota FYI I pushed c6ca466 on top of previously reviewed.

UPD nevermind, a similar change was in master already.

@ldmberman got it. let me know if you need me to re-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants