File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
158158 let tx_index = scid_utils:: tx_index_from_scid ( & scid) ;
159159 let namespace = Namespace :: Phantom ;
160160 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
162162 }
163163
164164 /// Returns whether the given fake scid falls into the intercept namespace.
@@ -167,7 +167,7 @@ pub(crate) mod fake_scid {
167167 let tx_index = scid_utils:: tx_index_from_scid ( & scid) ;
168168 let namespace = Namespace :: Intercept ;
169169 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
171171 }
172172
173173 #[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments