Add a full-stack mint and burn test for Bitcoin and Monero

Fixes where ram_scanned is updated in processor. The prior version, while safe,
would redo massive amounts of work during periods of inactivity. It also hit an
undocumented invariant where get_eventuality_completions assumes new blocks,
yet redone work wouldn't have new blocks.

Modifies Monero's generate_blocks to return the hashes of the generated blocks.
This commit is contained in:
Luke Parker
2023-08-28 16:18:11 -04:00
parent 1838c37ecf
commit 285422f71a
9 changed files with 723 additions and 40 deletions

6
Cargo.lock generated
View File

@@ -1429,6 +1429,7 @@ dependencies = [
"digest 0.10.7",
"fiat-crypto",
"platforms",
"rand_core 0.6.4",
"rustc_version",
"subtle",
"zeroize",
@@ -8179,15 +8180,20 @@ name = "serai-full-stack-tests"
version = "0.1.0"
dependencies = [
"bitcoin-serai",
"curve25519-dalek 4.0.0",
"dockertest",
"hex",
"monero-serai",
"parity-scale-codec",
"rand_core 0.6.4",
"serai-client",
"serai-coordinator-tests",
"serai-docker-tests",
"serai-message-queue-tests",
"serai-processor",
"serai-processor-tests",
"serde",
"serde_json",
"tokio",
"zeroize",
]