]> git.bitcoin.ninja Git - rust-lightning/commit
Impl `PartialEq`/`Eq` for `Offer`/`Refund`
authorElias Rohrer <dev@tnull.de>
Fri, 8 Mar 2024 09:24:50 +0000 (10:24 +0100)
committerElias Rohrer <dev@tnull.de>
Fri, 8 Mar 2024 16:35:20 +0000 (17:35 +0100)
commit3eeb8b82a52957ec3849255c11d8b675996b39fd
tree8666384c99bbaf10e0aa93d4867173e4c1272f09
parentaa3dbe8686ad018619827c76e4b40aa2f2580d60
Impl `PartialEq`/`Eq` for `Offer`/`Refund`

We add custom implementations based on comparing the `bytes` for
`Offer`/`Refund` themselves as this is sufficient and should be faster
than comapring all fields in the worst case.
lightning/src/offers/offer.rs
lightning/src/offers/refund.rs