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

Verified data transfer #872

Merged
merged 4 commits into from
Oct 8, 2024
Merged

Verified data transfer #872

merged 4 commits into from
Oct 8, 2024

Conversation

michaeldjeffrey
Copy link
Contributor

Proto PR: helium/proto#421

Deprecate InvalidDataTransferIngestReport in lieu of VerifiedDataTransferIngestReport.

This allows someone reading the ingest report to have a full report of data transfer without needing to wait for the Burner to come along and write to ValidDataTransferSession which can happen an unknown amount of time later.

Other

When dealing with many service provider all sending 2x above the total allocated service provider rewards, there is a chance the reported allocation is 1.0000000000000000000000000001%. As long as we never allocate more outgoing rewards than what is allowed, we're okay with this level of rounding error.

Because these tests run randomly generated data for every CI, I've commented out the assertion, but left the important one of making sure we don't overallocate at the bone level. If that check fails, we indeed have a problem.

…sion

Verified meaning we know about the entities in the report. Even data
sessions that have no rewardable data are written. They will not,
however, be put into the database for rewarding.
@michaeldjeffrey michaeldjeffrey merged commit 59595dc into main Oct 8, 2024
17 checks passed
@michaeldjeffrey michaeldjeffrey deleted the mj/verified-data-transfer branch October 8, 2024 19:43
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