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

init once accountant #1015

Merged
merged 8 commits into from
Dec 18, 2024
Merged

init once accountant #1015

merged 8 commits into from
Dec 18, 2024

Conversation

hopeyen
Copy link
Contributor

@hopeyen hopeyen commented Dec 17, 2024

Why are these changes needed?

Instead of relying on disperser client to call populate accountant before dispersing blobs, we add an init once function that automatically populate the accountant if it isn't constructed at the beginning

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

relay/cmd/main.go Fixed Show fixed Hide fixed
@hopeyen hopeyen force-pushed the hope/init-once-accountant branch from ced7ab3 to 8b407c9 Compare December 17, 2024 15:56
@hopeyen hopeyen changed the base branch from master to hope/payment-state-nil-handling December 17, 2024 17:14
@hopeyen hopeyen force-pushed the hope/payment-state-nil-handling branch from 1bb83ad to 0767072 Compare December 17, 2024 19:01
@ian-shim ian-shim requested review from ian-shim and samlaf December 17, 2024 19:09
@hopeyen hopeyen force-pushed the hope/init-once-accountant branch 2 times, most recently from cfcb6b2 to a950bfb Compare December 17, 2024 19:48
@samlaf
Copy link
Contributor

samlaf commented Dec 17, 2024

42 file changes... maybe target branch needs to be rebased as well or something?

@hopeyen
Copy link
Contributor Author

hopeyen commented Dec 17, 2024

42 file changes... maybe target branch needs to be rebased as well or something?

Weird, this was supposed to be a single file change. taking a look now

@hopeyen hopeyen force-pushed the hope/init-once-accountant branch from a950bfb to 6f95986 Compare December 17, 2024 21:34
Base automatically changed from hope/payment-state-nil-handling to master December 17, 2024 23:13
@hopeyen hopeyen force-pushed the hope/init-once-accountant branch from 6f95986 to efb9cf8 Compare December 17, 2024 23:16
core/data.go Outdated
@@ -619,11 +619,27 @@ type ReservedPayment struct {
QuorumSplits []byte
}

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need this change right?

@hopeyen hopeyen force-pushed the hope/init-once-accountant branch 2 times, most recently from 54a2645 to 73f2d9d Compare December 18, 2024 04:00
@hopeyen hopeyen force-pushed the hope/init-once-accountant branch from 73f2d9d to 668fa2f Compare December 18, 2024 15:39
@hopeyen hopeyen force-pushed the hope/init-once-accountant branch from 122d7a9 to 2fe2b70 Compare December 18, 2024 16:47
@hopeyen hopeyen merged commit aba75de into master Dec 18, 2024
9 checks passed
@hopeyen hopeyen deleted the hope/init-once-accountant branch December 18, 2024 19:17
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