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

Op data limit tests #96

Merged
merged 4 commits into from
Feb 5, 2025
Merged

Op data limit tests #96

merged 4 commits into from
Feb 5, 2025

Conversation

ThetaSinner
Copy link
Member

@ThetaSinner ThetaSinner commented Feb 4, 2025

Tests the previous PR -> #94

Some minor improvements needed in the mem peer store to support this change, I'll comment on those separately.

I think this raises an important problem though. I still want these tests in but I think I should change how I've applied limits. It shouldn't apply in the middle of a time slice because if a time slice grows larger than the limit, we'll never be able to sync it. So I think I should roll back the code that applies limits in the op store and does a soft application of the limit in the DHT code that calls the op store. That way we might return more op ids than the other side wanted but we won't get stuck on a time slice. It's an edge case really, for when there's more data around, but I think it's easier to fix now.

@ThetaSinner ThetaSinner requested a review from a team February 4, 2025 14:26
@ThetaSinner ThetaSinner marked this pull request as ready for review February 4, 2025 14:30
crates/gossip/src/gossip.rs Show resolved Hide resolved
crates/gossip/src/gossip.rs Show resolved Hide resolved
@ThetaSinner ThetaSinner merged commit ecda9b9 into main Feb 5, 2025
5 checks passed
@ThetaSinner ThetaSinner deleted the op-data-limit-tests branch February 5, 2025 11:03
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.

3 participants