File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pub(crate) mod fake_scid {
158
158
let tx_index = scid_utils:: tx_index_from_scid ( & scid) ;
159
159
let namespace = Namespace :: Phantom ;
160
160
let valid_vout = namespace. get_encrypted_vout ( block_height, tx_index, fake_scid_rand_bytes) ;
161
- valid_vout == scid_utils:: vout_from_scid ( & scid) as u8
161
+ scid != 0 && valid_vout == scid_utils:: vout_from_scid ( & scid) as u8
162
162
}
163
163
164
164
/// Returns whether the given fake scid falls into the intercept namespace.
@@ -167,7 +167,7 @@ pub(crate) mod fake_scid {
167
167
let tx_index = scid_utils:: tx_index_from_scid ( & scid) ;
168
168
let namespace = Namespace :: Intercept ;
169
169
let valid_vout = namespace. get_encrypted_vout ( block_height, tx_index, fake_scid_rand_bytes) ;
170
- valid_vout == scid_utils:: vout_from_scid ( & scid) as u8
170
+ scid != 0 && valid_vout == scid_utils:: vout_from_scid ( & scid) as u8
171
171
}
172
172
173
173
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments