Skip to content

Commit d7eec89

Browse files
committed
f Track the right amount_msat
1 parent 830b17c commit d7eec89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ impl Node {
961961
preimage: None,
962962
secret: payment_secret,
963963
status: PaymentStatus::Pending,
964-
amount_msat: invoice.amount_milli_satoshis(),
964+
amount_msat: Some(amount_msat),
965965
},
966966
);
967967

@@ -980,7 +980,7 @@ impl Node {
980980
preimage: None,
981981
secret: payment_secret,
982982
status: PaymentStatus::Failed,
983-
amount_msat: invoice.amount_milli_satoshis(),
983+
amount_msat: Some(amount_msat),
984984
},
985985
);
986986
Err(Error::PaymentFailed)

0 commit comments

Comments
 (0)