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
044b299cda
cargo +nightly fmt (again)
2023-08-01 02:51:58 -04:00
Luke Parker
53d86e2a29
Latest clippy
2023-08-01 02:49:31 -04:00
Luke Parker
c338b92067
Update to latest nightly Rust
2023-08-01 00:48:11 -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
d8033504c8
Restore ports over expose so docker compose can be used for tests
...
Reduces security when considering a production deployment.
2023-07-30 13:37:10 -04:00
Luke Parker
48ad5fe20b
Add icon as a svg
2023-07-30 12:51:17 -04:00
Luke Parker
4c801df4f2
Don't run apps in Docker as root
2023-07-30 08:04:36 -04:00
Luke Parker
9b79c4dc0c
Test Eventuality completion via CoordinatorMessage::Completed
2023-07-30 07:00:54 -04:00
Luke Parker
e010d66c5d
Only emit SignTranaction once
...
Due to the ordered message-queue, there's no benefit to multiple emissions as
there's no risk a completion will be missed. If it has yet to be read, sending
another which only be read after isn't helpful.
Simplifies code a decent bit.
2023-07-30 06:44:55 -04:00
Luke Parker
3d91fd88a3
Drastically increase placeholder fee for Monero
...
Needed for Docker tests.
2023-07-29 20:29:45 -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
857e3ea72b
cargo update
2023-07-29 07:11:53 -04:00
Luke Parker
8b14bb54bb
Correct the fee amortization algorithm for an edge case
...
This is technically over-agressive, as a dropped output will reduce the fee,
yet this edge case is so minor the flow for it to not be over-aggressive (over
a few fractions of a cent) is by no means worth it.
Fixes the crash causable by the WIP send_test.
2023-07-29 07:05:55 -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
22da7aedde
Implement a pretty Debug for various objects
2023-07-29 04:12:10 -04:00
Luke Parker
2641b83b3e
Use resolver 2
2023-07-27 23:42:24 -04:00
Luke Parker
4980e6b704
cargo update
2023-07-27 23:38:04 -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
101da0a641
Use a BatchVerifier in reserialize_chain
2023-07-27 03:05:39 -04:00
Luke Parker
6d5851a9ee
Use lz4 instead of zstd for the DB
...
zstd was recommended for the base layer only, due to its CPU requirements. That
was a misreading on mhy behalf.
lz4 gets ~5% better compression than snappy with ~30% faster performance. zstd
does ~25% better than lz4 yet at ~30% of the performance.
2023-07-26 14:05:10 -04:00
Luke Parker
64c309f8db
Test Batches with Instructions
2023-07-26 14:02:17 -04:00
Luke Parker
e00aa3031c
Have Shorthand::Raw contain RefundableInInstruction, not an encoded RII
2023-07-26 14:00:30 -04:00
Luke Parker
f8afb040dc
Remove ApplicationCall
...
We can simply inline `Dex` into the InInstruction enum.
2023-07-26 12:45:51 -04:00
Luke Parker
7823ece4fe
Test multiple batches, re-attempts, randomized selected signers
2023-07-26 05:55:47 -04:00
Luke Parker
b205391b28
Add libssl-dev to message-queue build packages
2023-07-26 04:33:36 -04:00
Luke Parker
32a937ddb9
Move the Monero Dockerfile to alpine
2023-07-26 04:22:41 -04:00
Luke Parker
bdbeedc723
Add pkg-config to Dockerfiles
2023-07-26 03:57:13 -04:00
Steven Chang
f306618e84
docs/protocol/Staking.md: delete
2023-07-26 03:46:55 -04:00
Luke Parker
89865b549c
Update Serai node Dockerfile
2023-07-26 03:45:30 -04:00
Luke Parker
39eae2795f
Update Dockerfiles to bookworm, successfully
...
Removes use of the Parity CI image. Always uses slim variants.
2023-07-26 03:06:01 -04:00
Luke Parker
0eb56406a4
Further dependency minimization for build times
2023-07-26 03:03:44 -04:00
Luke Parker
afb385fba4
Use spin's Once for OnceLock
2023-07-26 02:59:24 -04:00
Luke Parker
821f5d8de4
Restore create_if_missing to RocksDB code
2023-07-25 23:00:10 -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
1af5f1bcdc
Revert from bookworm to bullseye
...
Parity's CI uses bullseye and bullseye has an incompatible, dynamically linked
openssl.
2023-07-25 22:15:33 -04:00
Luke Parker
32435d8a4c
Consolidate RockDB code
...
Moves explicitly to zstd. RockDB recommends zstd, or at least lz4 over snappy,
and this minimizes which dependencies we pull in.
2023-07-25 21:43:27 -04:00
Luke Parker
49ce792b91
Move from bullseye-slim to bookworm-slim
...
Also moves from bullseye in the processor to bullseye-slim. This requires
adding back the apt intall, yet the tests/docker cache should handle it.
Minimizes processor image surface, hopefully also shrinks the CI down a bit.
2023-07-25 21:10:28 -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
a2493cfafc
Sub-CoordinatorMessage -> CoordinatorMessage via From/Into
2023-07-25 17:33:05 -04:00
Luke Parker
e3de64d5ff
Check the processors picked up the received input
2023-07-24 22:11:58 -04:00