Commit graph

555 commits

Author SHA1 Message Date
Luke Parker
0fb9d4397f
Merge branch 'develop' into tendermint 2022-11-11 02:20:18 -05:00
Luke Parker
c7121d96ac
Add common to Dockerfile 2022-11-11 02:20:10 -05:00
Luke Parker
c9334ee694
Merge branch 'develop' into tendermint 2022-11-11 02:18:05 -05:00
Luke Parker
6f74bade8b
Only recheck blocks with non-fatal inherent transaction errors 2022-11-11 02:17:10 -05:00
Luke Parker
35ca220bcc
Comment the allocator feature
Prevents it from turning on with --all-features, forcing nightly.
2022-11-11 01:23:35 -05:00
Luke Parker
3d9b9b178c
Zeroizing allocator ()
* Add a zeroizing allocator

* Also implement the allocator API

* Add misisng license file to zalloc

* Slight change to zalloc description
2022-11-10 23:34:40 -06:00
Luke Parker
7334ed1f43
cargo update
Updates Substrate to polkadot-v0.9.33
2022-11-10 23:59:20 -05:00
Luke Parker
84de427d72
Fix https://github.com/serai-dex/serai/issues/150 2022-11-10 22:35:09 -05:00
Luke Parker
7d46daa36e
Use futures pin instead of tokio 2022-11-08 22:56:46 -05:00
Luke Parker
f7b1ff9f3b
Update Substrate to the new TendermintHandle 2022-11-08 22:51:31 -05:00
Luke Parker
1c8192218a
Move from a yielding loop to select in tendermint-machine 2022-11-08 22:37:06 -05:00
Luke Parker
2cb1d35d89
Timeout futures 2022-11-08 21:14:57 -05:00
Luke Parker
56a21ca6a6
Use futures mpsc instead of tokio 2022-11-08 21:14:03 -05:00
Luke Parker
16a2c9a2dc
Correct protocol name handling 2022-11-08 02:14:49 -05:00
Luke Parker
5dab3352f2
Move from polling loops to a pure IO model for sc_tendermint's gossip 2022-11-08 02:14:39 -05:00
Luke Parker
d714f2202d
Document multiexp
Bumps the crate version to enable publishing.
2022-11-07 18:31:20 -05:00
Luke Parker
be61bff074
cargo fmt 2022-11-05 18:47:57 -04:00
Luke Parker
8de465af87
Have Transcript::append_message take in AsRef<[u8]>, not &[u8]
Simplifies calling it.
2022-11-05 18:43:36 -04:00
Luke Parker
c31a55cce0
cargo update (tendermint) 2022-11-04 08:08:16 -04:00
Luke Parker
55e32e24d1
Merge branch 'develop' into tendermint 2022-11-04 08:08:00 -04:00
Luke Parker
65df18d285
cargo update 2022-11-04 08:07:37 -04:00
Luke Parker
953bece2ea
Bump Substrate dependency
Fixes .
2022-11-04 08:07:12 -04:00
Luke Parker
5977aeb489
Implement Schnorr half-aggregation from https://eprint.iacr.org/2021/350.pdf
Relevant to https://github.com/serai-dex/serai/issues/99.
2022-11-04 08:04:49 -04:00
Luke Parker
1a3b6dc409
Implement Schnorr half-aggregation from https://eprint.iacr.org/2021/350.pdf
Relevant to https://github.com/serai-dex/serai/issues/99.
2022-11-04 08:03:29 -04:00
Luke Parker
af63c3e5d2
Bump Substrate dependency
Fixes .
2022-11-04 07:54:18 -04:00
Luke Parker
ea646c8984
Add missing trait 2022-11-03 00:58:45 -04:00
Luke Parker
1ff51c1a37
Add a version to sp-runtime in tendermint-machine 2022-11-03 00:24:04 -04:00
Luke Parker
2315b3c79b
Localize the LibP2P protocol to the blockchain
Follows convention by doing so. Theoretically enables running multiple 
blockchains over a single LibP2P connection.
2022-11-03 00:20:50 -04:00
Luke Parker
bd08cd3c9b
Add message expiry to the Tendermint gossip 2022-11-02 23:46:21 -04:00
Luke Parker
63df908d3b
Rename dev to devnet
--dev still works thanks to the |. Acheieves a personal preference of 
mine with some historical meaning.
2022-11-02 23:32:52 -04:00
Luke Parker
131355b10f
Correct Dave, Eve, and Ferdie to not run as validators 2022-11-02 23:31:19 -04:00
Luke Parker
cf8bdf2126
Stop returning errors on already existing blocks entirely 2022-11-02 22:52:20 -04:00
Luke Parker
de0e6724bf
Remove error case which shouldn't be an error 2022-11-02 22:39:49 -04:00
Luke Parker
f4d622a34c
Restore cache 2022-11-02 22:39:39 -04:00
Luke Parker
2b503b6f42
Update sc_tendermint per previous commit 2022-11-02 21:37:06 -04:00
Luke Parker
f3e177109d
Reduce Arcs in TendermintMachine, split Signer from SignatureScheme 2022-11-02 21:04:26 -04:00
Luke Parker
083198ecf2
Make the dev profile a local testnet profile
Restores a dev profile which only has one validator, locally running.
2022-11-02 19:58:37 -04:00
Luke Parker
83caa8b413
Add a _ to the validator arg in slash 2022-11-02 05:03:00 -04:00
Luke Parker
5cfe2d5c59
Update the consensus documentation
It was incredibly out of date.
2022-11-02 04:07:15 -04:00
Luke Parker
40b6cb7106
Add an already in chain check to block import
While the inner should do this for us, we call verify_order on our end 
*before* inner to ensure sequential import. Accordingly, we need to 
provide our own check.

Removes errors of "non-sequential import" when trying to re-import an 
existing block.
2022-11-02 03:35:46 -04:00
Luke Parker
16065ccd4e
Remove an attempt at caching I don't believe would ever hit 2022-11-02 03:29:04 -04:00
Luke Parker
2182b6641a
Correct Serai d-f names in Docker 2022-11-02 03:18:49 -04:00
Luke Parker
ca043f55ad
Use a rounded genesis to obtain sufficient synchrony within the Docker env 2022-11-02 03:05:04 -04:00
Luke Parker
38cee041d6
Fix handling of the GossipEngine 2022-11-02 02:43:08 -04:00
Luke Parker
e3fc3f28fb
Configure node for a multi-node testnet 2022-11-01 23:10:36 -04:00
Luke Parker
86aaadaea0
Update node to latest sc_tendermint 2022-11-01 21:32:18 -04:00
Luke Parker
9a26ac6899
Remove unnecessary PhantomDatas 2022-11-01 20:58:59 -04:00
Luke Parker
5832007a45
Take in a Keystore and validator ID 2022-11-01 20:06:42 -04:00
Luke Parker
aa0a4cf106
Implement proper checking of inherents 2022-11-01 16:37:50 -04:00
Luke Parker
19154cf8e1
Move sc_tendermint to async sign 2022-11-01 16:28:08 -04:00