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