Add --mainnet argument to the broker to send a fixed random mainnet seed to the signer for initial mainnet testing

This commit is contained in:
decentclock
2022-06-24 23:07:52 +00:00
parent 90b445ae31
commit fc442d44ba
2 changed files with 15 additions and 10 deletions

View File

@@ -46,7 +46,8 @@ fn main() -> anyhow::Result<()> {
)
.arg(Arg::from("--log-io ignored dev flag"))
.arg(Arg::from("--version show a dummy version"))
.arg(Arg::from("--test run a test against the embedded device"));
.arg(Arg::from("--test run a test against the embedded device"))
.arg(Arg::from("--mainnet send a fixed random mainnet seed to the signer"));
let matches = app.get_matches();
if matches.is_present("version") {
// Pretend to be the right version, given to us by an env var
@@ -69,7 +70,7 @@ fn main() -> anyhow::Result<()> {
log::info!("=> connection status: {}", status);
assert_eq!(status, true, "expected connected = true");
// runtime.block_on(async {
init::blocking_connect(tx.clone());
init::blocking_connect(tx.clone(), matches.is_present("mainnet"));
log::info!("=====> sent seed!");
// listen to reqs from CLN