gui(lianalite): use is_from_self from response
This commit is contained in:
parent
8d99981c14
commit
715aeb9298
@ -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)]
|
||||
|
||||
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user