mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Add PartialOrd
, Ord
to PaymentHash
, PaymentPreimage
for tests
This commit is contained in:
parent
9d5adfcd10
commit
53c79711b4
1 changed files with 2 additions and 0 deletions
|
@ -73,11 +73,13 @@ pub use self::peer_channel_encryptor::LN_MAX_MSG_LEN;
|
|||
///
|
||||
/// This is not exported to bindings users as we just use [u8; 32] directly
|
||||
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
|
||||
#[cfg_attr(test, derive(PartialOrd, Ord))]
|
||||
pub struct PaymentHash(pub [u8; 32]);
|
||||
/// payment_preimage type, use to route payment between hop
|
||||
///
|
||||
/// This is not exported to bindings users as we just use [u8; 32] directly
|
||||
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
|
||||
#[cfg_attr(test, derive(PartialOrd, Ord))]
|
||||
pub struct PaymentPreimage(pub [u8; 32]);
|
||||
/// payment_secret type, use to authenticate sender to the receiver and tie MPP HTLCs together
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue