-
Notifications
You must be signed in to change notification settings - Fork 925
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(share/getters): short-circuit on empty root in ShrexGetter #2846
fix(share/getters): short-circuit on empty root in ShrexGetter #2846
Conversation
So I tested this on LN, and I never triggered |
Note, we need to add empty block test case to our Getter test suite |
Hmm, a swamp test of a LN calling twice resolves both times and logs hitting - I wonder what is different between swamp and the real call. Are you sure the node was running the right build? |
I'lol double check tmrw @distractedm1nd |
It is logging hit for me every time, and doesn't hang ever even on multiple runs 🤔 But on main, it retrieves after the first time, logging
And then fails the second time. So confirmed that this is fixing the issue |
Codecov Report
@@ Coverage Diff @@
## main #2846 +/- ##
==========================================
+ Coverage 51.30% 51.46% +0.15%
==========================================
Files 168 167 -1
Lines 10744 10773 +29
==========================================
+ Hits 5512 5544 +32
+ Misses 4750 4727 -23
- Partials 482 502 +20
|
617f823
to
5b57903
Compare
5b57903
to
e49722f
Compare
Should fix issue where GetEDS hangs on empty data root
To test run:
celestia share get-eds “$(celestia header get-by-height 500 --node.store ~/.celestia-light-mocha-4 | jq .result)” --node.store ~/.celestia-light-mocha-4
with and without the PR