File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -914,12 +914,11 @@ impl<D> Wallet<D> {
914914 } )
915915 }
916916
917- /// Computes total input value going from script pubkeys in the index (sent) and the total output
918- /// value going to script pubkeys in the index (received) in `tx`.
917+ /// Compute the `tx`'s sent and received amounts (in satoshis).
919918 ///
920- /// For the `sent` to be computed correctly, the outputs being spent must have already been
921- /// scanned by the index. Calculating received just uses the [`Transaction`] outputs directly,
922- /// so it will be correct even if it has not been scanned .
919+ /// This method returns a tuple `(sent, received)`. Sent is the sum of the txin amounts
920+ /// that spend from previous txouts tracked by this wallet. Received is the summation
921+ /// of this tx's outputs that send to script pubkeys tracked by this wallet .
923922 ///
924923 /// # Examples
925924 ///
You can’t perform that action at this time.
0 commit comments