Provide a way to create the machine

The BasicQueue returned obscures the TendermintImport struct. 
Accordingly, a Future scoped with access is returned upwards, which when 
awaited will create the machine. This makes creating the machine 
optional while maintaining scope boundaries.

Is sufficient to create a 1-node net which produces and finalizes 
blocks.
This commit is contained in:
Luke Parker
2022-10-22 03:41:49 -04:00
parent 39984bd07b
commit 9b0dca06d0
8 changed files with 104 additions and 89 deletions

1
Cargo.lock generated
View File

@@ -7387,6 +7387,7 @@ name = "serai-consensus"
version = "0.1.0"
dependencies = [
"async-trait",
"futures",
"log",
"sc-basic-authorship",
"sc-client-api",