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:
Thomas Eizinger 2021-03-02 12:25:47 +11:00
parent 45cff81ea5
commit 3a503bf95f
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
3 changed files with 7 additions and 19 deletions

View file

@ -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