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

fix: followTip api call #259

Merged
merged 1 commit into from
Sep 29, 2024
Merged

fix: followTip api call #259

merged 1 commit into from
Sep 29, 2024

Conversation

verbotenj
Copy link
Contributor

It was silently failing during unneeded conversion and giving an empty hash.

Casting hex bytes to string doesn't work. If we need it, we should use hex.EncodeToString()

Logs

2024/09/29 04:22:29 Got a FollowTip request with intersect [index:25980880 hash:"{;&Ow\x1e\x9e\x18\xb6\x83\xfc\xebS\xba\xbf\xd0a\xc0\x9a\x88\xca\xceqZiM\xd7\xf7Q\xe2\xa4p"]
2024/09/29 04:22:29 BlockRef: idx: 25980880, hash: 7b3b264f771e9e18b683fceb53babfd061c09a88cace715a694dd7f751e2a470
2024/09/29 04:22:31 block: slot: 25980913, hash: e02d8b7d7a88e4026066d414685e8c2de02ceaf5eaa1ac891a1f8043e113ba82
2024/09/29 04:22:31 block: slot: 25980988, hash: 4049ab001f9691fc49979165617e1c45dc0857ef1246aa479fd782a37080b647
2024/09/29 04:22:31 block: slot: 25980999, hash: cebfd69916c64405bc74e6c8c1f47f0c76beb97a71e56cdd95433e26e81ced0d

Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
@verbotenj verbotenj requested a review from a team as a code owner September 29, 2024 04:40
@verbotenj verbotenj merged commit eb485b9 into main Sep 29, 2024
7 checks passed
@verbotenj verbotenj deleted the fix/followTip branch September 29, 2024 12:13
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