]> git.bitcoin.ninja Git - rust-lightning/commit
Dont unwrap `RouteParameter::expiry_time` as users can set it
authorMatt Corallo <git@bluematt.me>
Wed, 27 Oct 2021 22:12:07 +0000 (22:12 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 30 Oct 2021 01:53:19 +0000 (01:53 +0000)
commite9e8a7d58d3fd415ad1746b3fee5f332c78d72e9
treeaff1f13a263b9cc5145c243acfa63500b8d5061a
parent51dd344f26ca31d114fd06608eef4f8e6b6f8b57
Dont unwrap `RouteParameter::expiry_time` as users can set it

Users can provide anything they want as `RouteParameters` so we
shouldn't assume any fields are set any particular way, including
`expiry_time` set at all.
lightning-invoice/src/payment.rs