mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-23 06:45:24 +01:00
Fix lint warning in lightning-invoice when fuzzing
This commit is contained in:
parent
55c02fdee1
commit
a041463c30
1 changed files with 1 additions and 0 deletions
|
@ -1086,6 +1086,7 @@ impl RawBolt11Invoice {
|
|||
|
||||
/// Calculate the hash of the encoded `RawBolt11Invoice` which should be signed.
|
||||
pub fn signable_hash(&self) -> [u8; 32] {
|
||||
#[cfg(not(fuzzing))]
|
||||
use crate::ser::Base32Iterable;
|
||||
|
||||
Self::hash_from_parts(self.hrp.to_string().as_bytes(), self.data.fe_iter())
|
||||
|
|
Loading…
Add table
Reference in a new issue