mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
Feature-gate GetUtxosResponse
in lightning-block-sync
.. as it's only used by the REST client.
This commit is contained in:
parent
8471644a2d
commit
b923e1a6f5
1 changed files with 2 additions and 0 deletions
|
@ -247,10 +247,12 @@ impl TryInto<BlockHash> for JsonResponse {
|
|||
/// The REST `getutxos` endpoint retuns a whole pile of data we don't care about and one bit we do
|
||||
/// - whether the `hit bitmap` field had any entries. Thus we condense the result down into only
|
||||
/// that.
|
||||
#[cfg(feature = "rest-client")]
|
||||
pub(crate) struct GetUtxosResponse {
|
||||
pub(crate) hit_bitmap_nonempty: bool
|
||||
}
|
||||
|
||||
#[cfg(feature = "rest-client")]
|
||||
impl TryInto<GetUtxosResponse> for JsonResponse {
|
||||
type Error = std::io::Error;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue