Luke Parker
c4976ff97d
Consolidate references to sr25519 in sc_tendermint
2022-10-30 11:24:52 -04:00
Luke Parker
503adfee2f
Replace best_* with finalized_*
...
We test their equivalency yet still better to use finalized_* in
general.
2022-10-30 11:13:47 -04:00
Luke Parker
c0056643c8
Consolidate file structure in sc_tendermint
2022-10-30 11:08:12 -04:00
Luke Parker
91ae2b7112
Move serai_runtime specific code from tendermint/client to node
...
Renames serai-consensus to sc_tendermint
2022-10-30 10:54:17 -04:00
Luke Parker
a0e0545c49
Deleted comment code related to PoW
2022-10-30 10:10:17 -04:00
Luke Parker
3d7c12adcd
Create a dedicated file for being a Tendermint authority
2022-10-30 10:08:35 -04:00
Luke Parker
066bc40a88
Merge Verifier into block_import.rs
...
These two files were largely the same, just hooking into sync structs
with almost identical imports. As this project shapes up, removing dead
weight is appreciated.
2022-10-30 06:30:44 -04:00
Luke Parker
f37adf4feb
Remove machine from TendermintImport
...
It's not used there at all.
2022-10-30 06:29:37 -04:00
Luke Parker
aee0bde45d
Connect broadcast
2022-10-30 05:37:23 -04:00
Luke Parker
6c54289fb4
Connect the Tendermint machine to a GossipEngine
2022-10-30 05:16:25 -04:00
Luke Parker
1af6117155
Move TendermintMachine from start_num, time to last_num, time
...
Provides an explicitly clear API clearer to program around.
Also adds additional time code to handle an edge case.
2022-10-30 04:27:15 -04:00
Luke Parker
edb2e00db7
Remove the Future triggering the machine for an async fn
...
Enables passing data in, such as the network.
2022-10-30 04:08:33 -04:00
Luke Parker
6838d5c922
Clean generics in Tendermint with a monolith with associated types
2022-10-30 03:26:31 -04:00
Luke Parker
8d3efd6259
Correct Substrate Tendermint start block
...
The Tendermint machine uses the passed in number as the block's being
worked on number. Substrate passed in the already finalized block's
number.
Also updates misc comments.
2022-10-30 01:22:11 -04:00
Luke Parker
9a54317743
Basic Gossip Validator
2022-10-30 01:21:10 -04:00
Luke Parker
a0c892dfc3
Use the validators list from the session pallet
2022-10-29 06:00:58 -04:00
Luke Parker
f91c081f30
Fix the stub round robin
...
At some point, the modulus was removed causing it to exceed the
validators list and stop proposing.
2022-10-27 08:49:36 -04:00
Luke Parker
5c08fa9701
TendermintApi, compilation fixes
2022-10-27 08:44:53 -04:00
Luke Parker
66f7663cb2
Redo Tendermint folder structure
2022-10-27 06:33:58 -04:00