Luke Parker
f73ce37e18
Use a HashSet for which networks to try peer finding for
...
Prevents a flood of retries from individually failed attempts within a batch of
peer connection attempts.
2024-04-23 12:40:41 -04:00
Luke Parker
973dcf065e
Correct port forward in orchestration
2024-04-23 09:47:11 -04:00
Luke Parker
8f5aaa8492
New coordinator port, genesis
2024-04-23 09:32:44 -04:00
Luke Parker
93ba8d840a
Remove cbor
2024-04-23 09:31:33 -04:00
Luke Parker
485e454680
Inline broadcast_raw now that it doesn't have multiple callers
2024-04-23 09:31:17 -04:00
Luke Parker
c3b6abf020
Properly diversify ReqResMessageKind/GossipMessageKind
2024-04-23 09:31:09 -04:00
Luke Parker
f3ccf1cab0
Move keep alive, heartbeat, block to request/response
2024-04-23 09:30:58 -04:00
Luke Parker
0deee0ec6b
Line for prior commit
2024-04-21 08:55:50 -04:00
Luke Parker
6b428948d4
Comment the insanely aggressive timeout future trace log
2024-04-21 08:55:32 -04:00
Luke Parker
6986257d4f
Add missing continue to prevent dialing a node we're connected to
2024-04-21 08:37:06 -04:00
Luke Parker
a3c37cba21
Replace expect with debug log
2024-04-21 08:03:01 -04:00
Luke Parker
b5f2ff1397
Correct boolean NOT on is_fresh_dial
2024-04-21 07:30:18 -04:00
Luke Parker
c84931c6ae
Retry if initial dials fail, not just upon disconnect
2024-04-21 07:26:29 -04:00
Luke Parker
63abf2d022
Restart coordinator peer finding upon disconnections
2024-04-21 07:03:03 -04:00
Luke Parker
a62d2d05ad
Correct log which didn't work as intended
2024-04-20 19:55:17 -04:00
Luke Parker
967cc16748
Correct log targets in tendermint-machine
2024-04-20 19:55:06 -04:00
Luke Parker
ab4b8cc2d5
Better logs in tendermint-machine
2024-04-20 18:13:57 -04:00
Luke Parker
387ccbad3a
Extend time in sync test
2024-04-18 16:39:16 -04:00
Luke Parker
26cdfdd824
fmt
2024-04-18 16:39:03 -04:00
Luke Parker
68e77384ac
Don't broadcast added blocks
...
Online validators should inherently have them. Offline validators will receive
from the sync protocol.
This does somewhat eliminate the class of nodes who would follow the blockchain
(without validating it), yet that's fine for the performance benefit.
2024-04-18 16:38:52 -04:00
Luke Parker
68da88c1f3
Only reply to heartbeats after a certain distance
2024-04-18 16:38:43 -04:00
Luke Parker
2b481ab71e
Ensure we don't reply to stale heartbeats
2024-04-18 16:38:21 -04:00
Luke Parker
05e6d81948
Only have some nodes respond to latent heartbeats
...
Also only respond if they're more than 2 blocks behind to minimize redundant
sending of blocks.
2024-04-18 16:38:16 -04:00
Luke Parker
e426cd00bd
Correct protocol ID -> ID
2024-04-11 23:11:23 -04:00
Luke Parker
09e3881b7d
Add worksmarter at the last minute
2024-04-11 16:08:14 -04:00
Luke Parker
10124ac4a8
Add Testnet 2 Config
...
Starts Tuesday, April 16th, with confirmed keys/boot nodes.
2024-04-11 15:49:32 -04:00
Luke Parker
1987983f88
Add bootnode code prior used in testnet-internal
...
Also performs the devnet/testnet differentation done since the testnet branch.
2024-04-11 14:37:09 -04:00
Luke Parker
fcad402186
cargo update
...
Resolves deny error caused by h2.
2024-04-10 06:34:01 -04:00
Boog900
ab4d79628d
fix CLSAG verification.
...
We were not setting c1 to the last calculated c during verification, instead keeping it set to the one provided in the signature.
2024-04-10 05:59:06 -04:00
Luke Parker
93be7a3067
Latest hyper-rustls, remove async-recursion
...
I didn't remove async-recursion when I updated the repo to 1.77 as I forgot we
used it in the tests. I still had to add some Box::pins, which may have been a
valid option, on the prior Rust version, yet at least resolves everything now.
Also updates everything which doesn't introduce further depends.
2024-03-27 00:17:04 -04:00
noot
63521f6a96
implement Router.sol and associated functions ( #92 )
...
* start Router contract
* use calldata for function args
* var name changes
* start testing router contract
* test with and without abi.encode
* cleanup
* why tf isn't tests/utils working
* cleanup tests
* remove unused files
* wip
* fix router contract and tests, add set/update public keys funcs
* impl some Froms
* make execute non-reentrant
* cleanup
* update Router to use ReentrancyGuard
* update contract to use errors, use bitfield in Executed event, minor other fixes
* wip
* fix build issues from merge, tests ok
* Router.sol cleanup
* cleanup, uncomment stuff
* bump ethers.rs version to latest
* make contract functions take generic middleware
* update build script to assert no compiler errors
* hardcode pubkey parity into contract, update tests
* Polish coins/ethereum in various ways
---------
Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
2024-03-24 09:00:54 -04:00
Luke Parker
3d855c75be
Create group before adding to it
2024-03-24 00:18:40 -04:00
Luke Parker
07df9aa035
Ensure user is in a group
2024-03-24 00:03:32 -04:00
Luke Parker
bc44fbdbac
Add TODO to coordinator P2P
2024-03-23 23:32:21 -04:00
Luke Parker
4cacce5e55
Perform key share amortization on-chain to avoid discrepancies
2024-03-23 23:32:14 -04:00
Luke Parker
7408e26781
Don't regenerate infrastructure keys
...
Enables running setup without invalidating the message queue
2024-03-23 23:32:04 -04:00
Luke Parker
1f92e1cbda
Fixes for prior commit
2024-03-23 23:31:55 -04:00
Luke Parker
333a9571b8
Use volumes for message-queue/processors/coordinator/serai
2024-03-23 23:31:44 -04:00
Luke Parker
b7d49af1d5
Track total peer count in the coordinator
2024-03-23 18:02:48 -04:00
Luke Parker
5ea3b1bf97
Use " " instead of "" for the empty key so sh doesn't interpret it as falsy
2024-03-23 17:38:50 -04:00
Luke Parker
2a31d8552e
Add empty string for the KEY to serai-client to use the default keystore
2024-03-23 16:48:12 -04:00
Luke Parker
bca3728a10
Randomly select an addr from the authority discovery
2024-03-23 00:09:23 -04:00
Luke Parker
4914420a37
Don't add as an explicit peer if already connected
2024-03-22 23:51:51 -04:00
Luke Parker
f11a08c436
Peer finding which won't get stuck on one specific network
2024-03-22 23:47:43 -04:00
Luke Parker
35b58a45bd
Split peer finding into a dedicated task
2024-03-22 23:40:15 -04:00
Luke Parker
af9b1ad5f9
Initial pruning of backlogged consensus messages
2024-03-22 23:18:53 -04:00
Luke Parker
e5afcda76b
Explicitly use "" for KEY within the tests
...
Causes the provided keystore to be used over our keystore.
2024-03-22 23:05:40 -04:00
j-berman
08c7c1b413
monero: reference updated PR in fee test comment
2024-03-22 22:29:55 -04:00
Luke Parker
bdf5a66e95
Correct Serai key provision
2024-03-22 17:11:58 -04:00
Luke Parker
e861859dec
Update EpochDuration in runtime
2024-03-22 16:18:01 -04:00