Skip to content

Commit 0cdea66

Browse files
authored
Merge pull request #1195 from TheBlueMatt/2021-11-chanman-read-regression
Fix regression when reading `Event::PaymentReceived` in some cases
2 parents 9fcc626 + e62bd9d commit 0cdea66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ impl MaybeReadable for Event {
476476
let mut payment_preimage = None;
477477
let mut payment_secret = None;
478478
let mut amt = 0;
479-
let mut _user_payment_id = None; // For compatibility with 0.0.103 and earlier
479+
let mut _user_payment_id = None::<u64>; // For compatibility with 0.0.103 and earlier
480480
read_tlv_fields!(reader, {
481481
(0, payment_hash, required),
482482
(2, payment_secret, option),

0 commit comments

Comments
 (0)