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(SPV-1095): add merkleroots sync to go client #273

Merged
merged 12 commits into from
Oct 11, 2024
Merged

Conversation

dzolt-4chain
Copy link
Contributor

@dzolt-4chain dzolt-4chain commented Oct 2, 2024

  • πŸ“– I created my PR using provided : CODE_STANDARDS
  • πŸ“– I have read the short Code of Conduct: CODE_OF_CONDUCT
  • 🏠 I tested my changes locally.
  • βœ… I have provided tests for my changes.
  • πŸ“ I have used conventional commits.
  • πŸ“— I have updated any related documentation.
  • πŸ’Ύ PR was issued based on the Github or Jira issue.

NOTE

This PR does not include any new tests because regression tests are created in a separate service. Additionally, the structure of the sync merkleroots cannot guarantee consistent test results due to the ongoing growth of the blockchain.

Furthermore, xpriv is used here instead of xpub, as in contrast to jsclient, because there is no straightforward way to handle xpub authentication in go client. Using xpriv with the sign flag set to true automatically sets the authorization header as xpub.

Any reviewers that want to discuss any of these issues please feel free to do so in the comments.

@dzolt-4chain dzolt-4chain requested a review from a team as a code owner October 2, 2024 21:26
Copy link

github-actions bot commented Oct 2, 2024

Manual Tests

πŸ’š Manual testing by @jakubmkowalski resulted in success.

Copy link
Contributor

@Nazarii-4chain Nazarii-4chain left a comment

Choose a reason for hiding this comment

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

LGTM

examples/sync_merkleroots/sync_merkleroots.go Outdated Show resolved Hide resolved
examples/sync_merkleroots/sync_merkleroots.go Show resolved Hide resolved
sync_merkleroots.go Outdated Show resolved Hide resolved
sync_merkleroots.go Outdated Show resolved Hide resolved
sync_merkleroots.go Outdated Show resolved Hide resolved
examples/sync_merkleroots/sync_merkleroots.go Outdated Show resolved Hide resolved
fixtures/sync_merkleroots.go Outdated Show resolved Hide resolved
sync_merkleroots.go Outdated Show resolved Hide resolved
sync_merkleroots_test.go Outdated Show resolved Hide resolved
sync_merkleroots_test.go Outdated Show resolved Hide resolved
sync_merkleroots_test.go Outdated Show resolved Hide resolved
models/sync_merkleroots.go Show resolved Hide resolved
@jakubmkowalski jakubmkowalski added the tested PR was tested by a team member label Oct 11, 2024
@dzolt-4chain dzolt-4chain merged commit ba57b68 into main Oct 11, 2024
6 checks passed
@dzolt-4chain dzolt-4chain deleted the feat/SPV-1095 branch October 11, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tested PR was tested by a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants