[bug] deadlock when spending from core for the faucet
This commit is contained in:
parent
e69ae1a21a
commit
159fd78a3a
@ -235,13 +235,15 @@ fn faucet_send(sp_address: SilentPaymentAddress, commitment: &str) -> Result<(Tr
|
||||
|
||||
faucet_tx.input[0].witness.push(final_sig.to_vec());
|
||||
|
||||
let daemon = DAEMON
|
||||
.get()
|
||||
.ok_or(Error::msg("DAEMON not initialized"))?
|
||||
.lock_anyhow()?;
|
||||
daemon.broadcast(&core_tx)?;
|
||||
let txid = daemon.broadcast(&faucet_tx)?;
|
||||
log::debug!("Sent tx {}", txid);
|
||||
{
|
||||
let daemon = DAEMON
|
||||
.get()
|
||||
.ok_or(Error::msg("DAEMON not initialized"))?
|
||||
.lock_anyhow()?;
|
||||
daemon.broadcast(&core_tx)?;
|
||||
let txid = daemon.broadcast(&faucet_tx)?;
|
||||
log::debug!("Sent tx {}", txid);
|
||||
}
|
||||
|
||||
let partial_tweak = compute_partial_tweak_to_transaction(&faucet_tx)?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user