Luke Parker
c245bcdc9b
Extend Batch test with SubstrateBlock/arb Batch signing
2023-08-25 21:37:36 -04:00
Luke Parker
3745f8b6af
Increase GitHub CI timeouts for the coordinator tests
2023-08-25 14:09:44 -04:00
Luke Parker
2702384c70
Coordinator Batch signing test
2023-08-24 23:48:50 -04:00
Luke Parker
ea8e26eca3
Use an empty key for Batch's SignId
2023-08-24 20:39:34 -04:00
Luke Parker
bccdabb53d
Use a single Substrate signer, per intentions in #227
...
Removes key from Update as well, since it's no longer variable.
2023-08-24 20:30:50 -04:00
Luke Parker
61418b4e9f
Update Update
and substrate_signers to [u8; 32] from Vec<u8>
...
A commit made while testing moved them from network-key-indexed to
Substrate-key-indexed. Since Substrate keys have a fixed-length, fitting within
the Copy boundary, there's no reason for it to not use an array.
2023-08-24 13:24:56 -04:00
Luke Parker
76a30fd572
Support no-std builds of bitcoin-serai
...
Arguably not meaningful, as it adds the scanner yet not the RPC, and no signing
code since modular-frost doesn't support no-std yet. It's a step in the right
direction though.
2023-08-21 08:56:37 -04:00
Luke Parker
45ea805620
Use an optimistic (and twice as long in the worst case) sleep for KeyGen
...
Possible due to Substrate having an RPC.
2023-08-21 02:31:22 -04:00
Luke Parker
34397b31b1
Correct serai-processor-tests to dalek 4
2023-08-19 16:34:27 -04:00
Luke Parker
426e89d6fb
Extend sleeps of coordinator CI tests
...
The CI does now get past the first check to the second one, hence the addition
of similar sleeps to the second and so on checks.
2023-08-15 05:31:06 -04:00
Luke Parker
4850376664
Try to fix coordinator CI by sleeping longer when in CI
2023-08-14 16:02:14 -04:00
akildemir
e680eabb62
Improve batch handling ( #316 )
...
* restrict batch size to ~25kb
* add batch size check to node
* rate limit batches to 1 per serai block
* add support for multiple batches for block
* fix review comments
* Misc fixes
Doesn't yet update tests/processor until data flow is inspected.
* Move the block from SignId to ProcessorMessage::BatchPreprocesses
* Misc clean up
---------
Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
2023-08-14 11:57:38 -04:00
Luke Parker
666bb3e96b
E2E test coordinator KeyGen
2023-08-14 06:54:17 -04:00
Luke Parker
96db784b10
Increase the reproducible-runtime timeout as it was getting hit in CI
2023-08-08 18:36:31 -04:00
Luke Parker
f6f945e747
Add a LibP2P instantiation to coordinator
...
It's largely unoptimized, and not yet exclusive to validators, yet has basic
sanity (using message content for ID instead of sender + index).
Fixes bugs as found. Notably, we used a time in milliseconds where the
Tributary expected seconds.
Also has Tributary::new jump to the presumed round number. This reduces slashes
when starting new chains (whose times will be before the current time) and was
the only way I was able to observe successful confirmations given current
surrounding infrastructure.
2023-08-08 15:12:47 -04:00
Luke Parker
0dd8aed134
Expand cluster-sm/local testnet to 4 validators for BFT where f=1
2023-08-06 13:42:16 -04:00
Luke Parker
cee788eac3
Test the Coordinator emits KeyGen
...
Mainly just a test that the full stack is properly set up and we've hit basic
functioning for further testing.
2023-08-06 12:38:44 -04:00
Luke Parker
aab8a417db
Have the Coordinator scan the Substrate genesis block
...
Also adds a workflow for running tests/coordinator.
2023-08-02 12:18:50 -04:00
Luke Parker
d5c787fea2
Add initial coordinator e2e tests
2023-08-01 19:00:48 -04:00
Luke Parker
e3a70ef0dc
tests/processor clippy
2023-08-01 05:33:08 -04:00
Luke Parker
3c38a0ec11
cargo +nightly fmt
2023-08-01 00:47:36 -04:00
Luke Parker
88f88b574c
Sleep for up to a minute when creating a Coordinator if the network RPC has yet to boot
...
We've had a pair of CI failures due to calling add_block and being unable to
form an RPC connection. This attempts to fix this
2023-07-31 00:13:58 -04:00
Luke Parker
9f143a9742
Replace "coin" with "network"
...
The Processor's coins folder referred to the networks it could process, as did
its Coin trait. This, and other similar cases throughout the codebase, have now
been corrected.
Also corrects dated documentation for a key pair is confirmed under the
validator-sets pallet.
2023-07-30 16:11:30 -04:00
Luke Parker
2815046b21
Save the scheduler to disk
...
This is a horrible impl which does a full ser of everything on every change.
It's just the minimal changes to resolve this TODO and able testnet deployment.
2023-07-30 14:16:33 -04:00
Luke Parker
9b79c4dc0c
Test Eventuality completion via CoordinatorMessage::Completed
2023-07-30 07:00:54 -04:00
Luke Parker
f988c43f8d
Extend send_test with TX signing
...
Monero fails with fee_too_low, which this commit is meant to document.
2023-07-29 08:34:08 -04:00
Luke Parker
f78332453b
Start work on a send_test
...
Stops work where it does to the processor panickinng for Monero, yet not
Bitcoin, under what's present.
Cleans up processor tests to consolidate shared code.
2023-07-29 04:26:24 -04:00
Luke Parker
c091b86919
Correct reproducible-runtime deny definition
2023-07-27 22:25:05 -04:00
Luke Parker
a8c7bb96c8
Add a crate to test the runtime can be reproducibly built
2023-07-27 21:42:26 -04:00
Luke Parker
09a95c9bd2
Rename deploy to orchestration
...
Also updates README to note prior unnoted folders.
2023-07-27 03:19:35 -04:00
Luke Parker
64c309f8db
Test Batches with Instructions
2023-07-26 14:02:17 -04:00
Luke Parker
7823ece4fe
Test multiple batches, re-attempts, randomized selected signers
2023-07-26 05:55:47 -04:00
Luke Parker
3862731a12
Minimize features pulled in to try and reduce build times
2023-07-25 22:29:39 -04:00
Luke Parker
42eb674d1a
Print docker build
2023-07-25 22:18:20 -04:00
Luke Parker
4949793c3f
Clear docker cache after building in CI
...
We're at the CI storage limits, so hopefully this helps.
2023-07-25 21:09:40 -04:00
Luke Parker
61d46dccd4
Rename scan_test to batch_test
2023-07-25 18:10:05 -04:00
Luke Parker
88a1fce15c
Test the processor's batch signing
...
Updates message-queue ot try recv every second, not 5.
2023-07-25 18:09:23 -04:00
Luke Parker
e3de64d5ff
Check the processors picked up the received input
2023-07-24 22:11:58 -04:00
Luke Parker
ecd0457d5b
clippy fixes
2023-07-24 21:49:51 -04:00
Luke Parker
7990ee689a
Send to a processor from a test
...
Mainly here to build out the infra. Does not automate checking
recipience/batch creation yet.
2023-07-24 20:06:05 -04:00
Luke Parker
6df1b46313
Don't use dbg for printing stdout/stderr
...
They are byte buffers, not strings. A pretty print has been added accordingly.
2023-07-24 15:35:43 -04:00
Luke Parker
8e6e05ae2d
Set better logging defaults for Docker tests
2023-07-23 10:13:11 -04:00
Luke Parker
713660c79c
Make key_gen a gadget, add ConfirmKeyPair
2023-07-22 05:10:40 -04:00
Luke Parker
cb8c8031b0
Correct retrieval of LastTagTime when the Docker image doesn't already exist
2023-07-22 04:37:45 -04:00
Luke Parker
d07447fe97
Implement an (almost) full Key Gen test for processor's Docker tests
...
It doesn't confirm the key pair yet.
Adds the infra neded to test processors against each other.
2023-07-22 04:06:44 -04:00
Luke Parker
c26beae0f9
Only rebuild Docker images when their source has been modified
2023-07-22 02:40:14 -04:00
Luke Parker
523a055b74
Add processor Docker tests
...
Adds tests/docker for code common to Docker-based tests.
2023-07-21 14:08:42 -04:00
Luke Parker
9effd5ccdc
Add a Docker-based test for the message-queue service
2023-07-20 18:53:11 -04:00
Luke Parker
2bebe0755d
Corrections to prior commit
2023-07-14 13:11:01 -04:00
Luke Parker
f0ce6e6388
Split up tests in CI to avoid node storage limits
2023-07-14 13:02:58 -04:00