gui(lianalite): use is_from_self from response

This commit is contained in:
Michael Mallan 2024-12-12 09:39:03 +00:00
parent 8d99981c14
commit 715aeb9298
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB
2 changed files with 4 additions and 3 deletions

View File

@ -201,6 +201,7 @@ pub struct Coin {
pub spend_info: Option<CoinSpendInfo>,
pub is_immature: bool,
pub is_change_address: bool,
pub is_from_self: bool,
}
#[derive(Clone, Deserialize)]

View File

@ -649,7 +649,7 @@ impl Daemon for BackendWalletClient {
txid: info.txid,
height: info.height,
}),
is_from_self: false, // FIXME: use value from backend
is_from_self: c.is_from_self,
})
.collect(),
})
@ -1134,7 +1134,7 @@ fn history_tx_from_api(value: api::Transaction, network: Network) -> HistoryTran
txid: info.txid,
height: info.height,
}),
is_from_self: false, // FIXME: use value from backend
is_from_self: c.is_from_self,
});
}
}
@ -1190,7 +1190,7 @@ fn spend_tx_from_api(
txid: info.txid,
height: info.height,
}),
is_from_self: false, // FIXME: use value from backend
is_from_self: c.is_from_self,
});
}
}