gui(daemon): fix rbfpsbt params for external daemon

This commit is contained in:
jp1ac4 2024-01-08 15:40:24 +00:00
parent 15b1f0c789
commit 5c06eef586
No known key found for this signature in database
GPG Key ID: A7ACD32423568D7B

View File

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