fix: handling ErrNamespaceNotFound for node v0.10.0#953
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #953 +/- ##
==========================================
- Coverage 55.75% 54.87% -0.89%
==========================================
Files 59 60 +1
Lines 6268 6380 +112
==========================================
+ Hits 3495 3501 +6
- Misses 2418 2525 +107
+ Partials 355 354 -1
☔ View full report in Codecov by Sentry. |
|
@distractedm1nd
which disappeared after your fix. so, it is working. however, we still have this error:
while it is not preventing the block production, i think it is premature retrieve blocks error. any easy way to handle that? |
|
@gupadhyaya, via API we now always allow for height |
@Wondertan so where should we make the fix? |
|
@gupadhyaya, in the node |
|
@gupadhyaya Can you check celestiaorg/celestia-node#2291? |
thanks @distractedm1nd what is the easiest way to test this? I tried to build a local image and then run local-devnet with latest celestia-app and running into panics. |
|
@Wondertan @distractedm1nd just tested rollkit using node 0.10.3 and i confirm that fix is working and no longer have local/current head issue. I think this PR can be merged now. |
|
@nashqueue @tzdybal could you review this PR? |
d3718b1 to
f4ff976
Compare
MSevey
left a comment
There was a problem hiding this comment.
need helper function needs a unit test
This PR fixes the data race issue caused in the header exchange when the syncer status is checked (in stop) and set (in start , separate go routine). Also fixes the golangci-lint errors. Blocking #963 and #953 from merge. --------- Co-authored-by: Ganesha Upadhyaya <gupadhyaya@Ganeshas-MacBook-Pro-2.local>
7a3118e to
c23e749
Compare
c23e749 to
eea4800
Compare
We have made a breaking change in node v0.10.0 regarding data requests. celestiaorg/celestia-node@62a0b97
Previously, a "data not found" meant both "the node failed to retrieve that data, please retry" as well as "the node retrieved the data successfully, but your namespace is not included in the data". We have split these errors, so now we have an
ErrNamespaceNotFoundwhich indicates a successful request for empty data.I have no idea how to test rollkit so would love some help on getting that set up