Al Liu
818d7f29cd
Add generic block ( #93 )
...
* add generic block
* fix PR comments
* Block uses tx hashes
* Refactor bounds and generics to accept block type
* remove Tx generics
* add generic for block
* Remove unnecessary bounds on leadership
* Impl from with ownership for mock tx and txid
* feature gate
---------
Co-authored-by: danielsanchezq <sanchez.quiros.daniel@gmail.com>
2023-03-14 09:55:08 -07:00
Daniel Sanchez
274e8d55fd
Voting core primitive ( #82 )
...
* Add tally trait
Implement mock tally
* Add tally to consensus
* Use tally in implemented overlays
* Clippy happy
* Scratch carnot voting as per specification
* Add missing derives
* Clippy happy
* Fix tests
* Add checks on valid votes
* Refactor ApprovalMsg to VoteMsg
* Remove no vote in MockVote and MockQC
* Remove no vote in MockVote and MockQC
* Remove timeout todo
* Fix tests
2023-03-14 03:32:36 -07:00
gusto
42ea8f9be3
Update waku-bindings to 0.1.0-rc.2 ( #86 )
2023-03-06 15:18:27 +02:00
Daniel Sanchez
55aece674b
Update to waku rc 1 ( #80 )
2023-02-22 15:55:59 +01:00
Daniel Sanchez
8cc37385b3
Waku cached streams consensus adapter ( #70 )
...
* Added waku archive message to waku network backend
* Use cached streams in consensus waku adapter
* Fix mock test
* Add missing import
* Join requests tasks
* Use waku-bindings beta4
* Get stream from archive query method
* Set store protocol active for waku backend
* Implement local query stream response
* Add missing linking flags for new waku-bindings version
* Cleanup unbounded sender fuse/unwrap
* Clippy happy
2023-02-15 16:49:49 +01:00
Al Liu
3d3d2760ec
Implement #31 : Mock network backend ( #41 )
...
* relax trait bounds
* mock mempool
* remove unused generic
* add mock network test case
* fix some PR comments
* simplify match branch
* finish mempool adapter example
* clippy happy
* mock consensus
2023-02-01 21:58:23 +08:00
Giacomo Pasini
f5175c74c0
Add flat overlay ( #55 )
2023-01-27 10:37:04 +01:00
Daniel Sanchez
7ff63d4824
Add fountain codes to consensus ( #38 )
...
* Add basic encode/decode test
* Use Stream for trait instead of Iterator
* Removed unnecessary pin
* Add custom fountain error
* Add failing path to tests
* Added docs
* Normalized chunks to bytes
* Added settings initialization for fountain codes trait
* Pipe fountain code through consensus
* Implement broadcast block and block reconstruction for Member Overlay
* Fix failing raptor test
* Use seed for raptorq tests
* Use const for topics instead of static
* Clippy happy
2023-01-10 12:58:51 +01:00
Giacomo Pasini
0229337414
Add leadership stub ( #22 )
...
* add leadership stub
* move types to core
* clippy happy
2023-01-10 11:33:08 +01:00
Daniel Sanchez
664cb3ccd8
Update waku-bindings to beta2 ( #40 )
2023-01-09 12:20:14 +01:00
Daniel Sanchez
fb3fd6f3b1
Nomos core ( #28 )
...
* Extract block to core crate
* Added linking flag for waku
* Cleanup imports
* Add missing core files
* Create more base mods
2022-12-13 15:35:11 +01:00
Giacomo Pasini
7cc9181574
Consensus backbone ( #16 )
...
* tmp
* add peers implem
* update return values
* Backport network consensus adapter (#26 )
* Pipe network adapter with proper types over original implementation
* Hold relay on CarnotConsensus
* Scratch Network adapter methods
* Fix tests blocking CI
* Fix waku feature on network crate
* Fix waku_bindings refs
* Restructure consensus network
* Stream block chunk
* Pipe adapter creation with subscription
* Add placeholder proposal chunk and approval messages
* Implement waku backend
* Clippy happy
* Use full path for tokio oneshot and error types in message_subscriber_channel method
* Clean imports
* small fixes
Co-authored-by: Daniel Sanchez Quiros <sanchez.quiros.daniel@gmail.com>
Co-authored-by: Daniel Sanchez Quiros <sanchez.quiros.daniel@gmail.com>
2022-12-13 11:15:54 +01:00