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

feat: mempool sync wait for node initial sync #4897

Merged
merged 2 commits into from
Nov 8, 2022

Conversation

Cifko
Copy link
Contributor

@Cifko Cifko commented Nov 7, 2022

Description

Wait for mempool sync to start after the intial sync is done.
Fixes #4785

How Has This Been Tested?

Manually.

@CjS77 CjS77 added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Nov 7, 2022
@CjS77 CjS77 removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Nov 7, 2022
@stringhandler stringhandler added the P-merge Process - Queued for merging label Nov 7, 2022
@sdbondi
Copy link
Member

sdbondi commented Nov 7, 2022

utACK

@CjS77 CjS77 removed the P-acks_required Process - Requires more ACKs or utACKs label Nov 7, 2022
Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

While I dont think this fixes the issue completely, it will still run on startup, it will only wait till the node says it is synced. I think this is the better approach.

It might be that the node was off, and there were no new blocks added or not enough to trigger a mempool sync. Coming back on again, the node will ask for new transactions.

If we really wan to stop this from running on startup as per issue #4785 then we need to make the counter for the mempool the max amount on startup.
Base_node sync will then reset that down to 0 when required

@stringhandler
Copy link
Collaborator

I'm happy with this approach for now

@SWvheerden
Copy link
Collaborator

utACK

@stringhandler stringhandler merged commit 5526721 into tari-project:development Nov 8, 2022
@Cifko Cifko deleted the mempoolsync-wait branch April 18, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-merge Process - Queued for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove mempool sync on startup
5 participants