pub fn handle_commands<CS: Subcommand, S: Args>(
graph: &Mutex<KeychainTxGraph>,
chain: &Mutex<LocalChain>,
db: &Mutex<Store<ChangeSet>>,
network: Network,
broadcast: impl FnOnce(S, &Transaction) -> Result<()>,
cmd: Commands<CS, S>,
) -> Result<()>