ref(example_cli): Add new struct Init

for holding the items returned from `example_cli::init`
This commit is contained in:
vmammal committed 2024-01-31 11:50:41 -05:00
1 parent 89a7ddca7f
commit 1c15cb2f91
4 files changed
+42 -19

No files matched your search

+7 -2
View File
@@ -99,8 +99,13 @@ pub struct ScanOptions {
}
fn main() -> anyhow::Result<()> {
let (args, keymap, index, db, init_changeset) =
example_cli::init::<EsploraCommands, EsploraArgs, ChangeSet>(DB_MAGIC, DB_PATH)?;
let example_cli::Init {
args,
keymap,
index,
db,
init_changeset,
} = example_cli::init::<EsploraCommands, EsploraArgs, ChangeSet>(DB_MAGIC, DB_PATH)?;
let genesis_hash = genesis_block(args.network).block_hash();