Robert Klotzner
0a9fe852df
Move non runtime related stuff into node/primitives ( #2743 )
...
* Remove stuff out of the runtime that does not belong there.
There might be more, but it is a start.
* White space fixes.
* Fix tests.
* Leave whitespace in ui tests alone.
* Add back zstd for no reason.
* Fix browser wasm (hopefully)
2021-03-29 02:15:44 +02:00
Robert Habermeier
8a396c678f
Port availability recovery to use req/res ( #2694 )
...
* add AvailableDataFetchingRequest
* rename AvailabilityFetchingRequest to ChunkFetchingRequest
* rename AvailabilityFetchingResponse to Chunk_
* add AvailableDataFetching request
* add available data fetching request to availability recovery message
* remove availability recovery message
* fix
* update network bridge
* port availability recovery to request/response
* use validators.len(), not shuffling
* fix availability recovery tests
* update guide
* Update node/network/availability-recovery/src/lib.rs
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
* Update node/network/availability-recovery/src/lib.rs
Co-authored-by: Arkadiy Paronyan <arkady.paronyan@gmail.com >
* remove println
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
Co-authored-by: Arkadiy Paronyan <arkady.paronyan@gmail.com >
2021-03-25 15:34:24 +01:00
Robert Habermeier
b105d9acc0
more tracing for av-store ( #2604 )
...
* more tracing for av-store
* Update node/core/av-store/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/core/av-store/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/core/av-store/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update tracing everywhere
* Fix build
* More fixes
* Push cargo.lock
* Update
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-03-11 13:12:34 +01:00
dependabot[bot]
65f2ece35c
Bump rand from 0.8.2 to 0.8.3 ( #2335 )
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-27 17:52:09 +01:00
dependabot[bot]
669ccab83f
Bump futures from 0.3.11 to 0.3.12 ( #2281 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.11...0.3.12 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-18 13:11:31 +01:00
dependabot[bot]
8b8185869e
Bump futures from 0.3.10 to 0.3.11 ( #2273 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.10 to 0.3.11.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.10...0.3.11 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-15 17:57:07 +01:00
Fedor Sakharov
90a686266f
Availability recovery subsystem ( #2122 )
...
* Adds message types
* Add code skeleton
* Adds subsystem code.
* Adds a first test
* Adds interaction result to availability_lru
* Use LruCache instead of a HashMap
* Whitespaces to tabs
* Do not ignore errors
* Change error type
* Add a timeout to chunk requests
* Add custom errors and log them
* Adds replace_availability_recovery method
* recovery_threshold computed by erasure crate
* change core to std
* adds docs to error type
* Adds a test for invalid reconstruction
* refactors interaction run into multiple methods
* Cleanup AwaitedChunks
* Even more fixes
* Test that recovery with wrong root is an error
* Break to launch another requests
* Styling fixes
* Add SessionIndex to API
* Proper relay parents for MakeRequest
* Remove validator_discovery and use message
* Remove a stream on exhaustion
* On cleanup free the request streams
* Fix merge and refactor
2021-01-15 02:06:25 +00:00