mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-10-11 21:10:50 -04:00
Shorten function name
This struct is a wallet. The only thing it can meaningfully broadcast are transactions. The fact that they have to be signed for that is implied. You cannot broadcast unsigned transactions.
This commit is contained in:
parent
45cff81ea5
commit
3a503bf95f
3 changed files with 7 additions and 19 deletions
|
@ -147,7 +147,7 @@ impl Wallet {
|
|||
self.inner.lock().await.network()
|
||||
}
|
||||
|
||||
pub async fn broadcast_signed_transaction(&self, transaction: Transaction) -> Result<Txid> {
|
||||
pub async fn broadcast(&self, transaction: Transaction) -> Result<Txid> {
|
||||
let txid = transaction.txid();
|
||||
|
||||
self.inner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue