From 0e432f3b26fe98a1304f81dc1c3106a088b78b29 Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Sat, 9 May 2020 00:03:55 +0200 Subject: [PATCH] [wallet] Fix potential overflow when adding block heights --- src/psbt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psbt/mod.rs b/src/psbt/mod.rs index 08f15878..1db458b5 100644 --- a/src/psbt/mod.rs +++ b/src/psbt/mod.rs @@ -100,7 +100,7 @@ impl<'a> Satisfier for PSBTSatisfier<'a> { if let Some(current_height) = self.current_height { // TODO: test >= / > - current_height >= self.create_height.unwrap_or(0) + height + current_height as u64 >= self.create_height.unwrap_or(0) as u64 + height as u64 } else { self.assume_height_reached }