payjoin / rust-payjoin

Supercharged payment batching to save you fees and preserve your privacy
https://payjoindevkit.org
82 stars 34 forks source link

cli: read Network::from_core_arg #305

Closed DanGould closed 2 weeks ago

DanGould commented 2 weeks ago

Previously Network::from_str was being used which expected "bitcoin" to give a mainnet chain, however core's bitcoin-cli returns "main" from get_blockchain_info.

There's a rust-bitcoin Network::from_core_arg meant to handle this.