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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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

ℹ️ Remember to ask team members to perform manual tests and to assign tested label after testing.

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
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