Make unconfirmed an i64

Some servers like electrs return the unconfirmed balance for an address as a
negative value.

Closes #45
This commit is contained in:
Alekos Filini 2021-02-22 09:49:42 +01:00
parent 7db9a1331b
commit 078e513f62
No known key found for this signature in database
GPG Key ID: 431401E4A4530061

View File

@ -208,7 +208,9 @@ pub struct GetBalanceRes {
/// Confirmed balance in Satoshis for the address.
pub confirmed: u64,
/// Unconfirmed balance in Satoshis for the address.
pub unconfirmed: u64,
///
/// Some servers (e.g. `electrs`) return this as a negative value.
pub unconfirmed: i64,
}
/// Response to a [`transaction_get_merkle`](../client/struct.Client.html#method.transaction_get_merkle) request.