gui(daemon): fix rbfpsbt params for external daemon
This commit is contained in:
parent
15b1f0c789
commit
5c06eef586
@ -102,14 +102,11 @@ impl<C: Client + Debug> Daemon for Lianad<C> {
|
|||||||
is_cancel: bool,
|
is_cancel: bool,
|
||||||
feerate_vb: Option<u64>,
|
feerate_vb: Option<u64>,
|
||||||
) -> Result<CreateSpendResult, DaemonError> {
|
) -> Result<CreateSpendResult, DaemonError> {
|
||||||
self.call(
|
let mut input = vec![json!(txid.to_string()), json!(is_cancel)];
|
||||||
"rbfpsbt",
|
if let Some(feerate_vb) = feerate_vb {
|
||||||
Some(vec![
|
input.push(json!(feerate_vb));
|
||||||
json!(txid.to_string()),
|
}
|
||||||
json!(is_cancel.to_string()),
|
self.call("rbfpsbt", Some(input))
|
||||||
json!(feerate_vb),
|
|
||||||
]),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_spend_tx(&self, psbt: &Psbt) -> Result<(), DaemonError> {
|
fn update_spend_tx(&self, psbt: &Psbt) -> Result<(), DaemonError> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user