-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement RetrieveBlockData as described by ADR 002 (#232)
* implement GetLeafData * use a real ipfs node instead of a mocked one during testing * use the ResolveNode method of the ipfs api instead of dag get * update CalcCIDPath tests * first draft of RetrieveBlockData implementation * remove the parser interface * refactor leaf counter, fix bug * remove prints * update to the latest commit of rsmt2d * refactor RetrieveBlockData and fix bugs * increase test timeouts for CI * increase timeouts again 😞 * add polish and change up timeouts for CI * fix typo causing tests to fail * revert remnant of debugging * polish * re adjust timeouts * even longer timeout * add buffer to hopefully help CI * polish * don't pin data to ipfs during testing * use max block size * retrieve block with minimum number of ipfs requests * go mod tidy + use cyrpto/rand instead of math/rand * add no lint directive to weak random number generator * set absurd timeout * only run large tests with the race detector of * review feedback: better docs Co-authored-by: Ismail Khoffi <[email protected]> * review feedback: better docs Co-authored-by: Ismail Khoffi <[email protected]> * review feedback: smoother test sorting for a large tests Co-authored-by: Ismail Khoffi <[email protected]>
- Loading branch information
1 parent
2c90de4
commit a082098
Showing
7 changed files
with
395 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// +build race | ||
|
||
package ipld | ||
|
||
func init() { | ||
raceDetectorActive = true | ||
} |
Oops, something went wrong.