[wallet] Add wallet.network()

This commit is contained in:
LLFourn
2020-12-01 13:29:20 +11:00
parent 9073f761d8
commit 67957a93b9

View File

@@ -1351,6 +1351,11 @@ where
self.client.as_ref()
}
/// Get the Bitcoin network the wallet is using.
pub fn network(&self) -> Network {
self.network
}
/// Broadcast a transaction to the network
#[maybe_async]
pub fn broadcast(&self, tx: Transaction) -> Result<Txid, Error> {