]> Untitled Git - bdk/commitdiff
[docs] clarify when the fee could be unknown
authorRiccardo Casatta <riccardo@casatta.it>
Mon, 12 Jul 2021 08:06:08 +0000 (10:06 +0200)
committerRiccardo Casatta <riccardo@casatta.it>
Mon, 12 Jul 2021 08:06:08 +0000 (10:06 +0200)
src/types.rs

index ab635ee1e535affe093d7d43fba25299aca067f9..ddd498aaec469ba9629d20f69bbd670aff8bf798 100644 (file)
@@ -160,7 +160,10 @@ pub struct TransactionDetails {
     pub received: u64,
     /// Sent value (sats)
     pub sent: u64,
-    /// Fee value (sats) if available
+    /// Fee value (sats) if available.
+    /// The availability of the fee depends on the backend. It's never `None` with an Electrum
+    /// Server backend, but it could be `None` with a Bitcoin RPC node without txindex that receive
+    /// funds while offline.
     pub fee: Option<u64>,
     /// If the transaction is confirmed, contains height and timestamp of the block containing the
     /// transaction, unconfirmed transaction contains `None`.