We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132f91a commit 6800d62Copy full SHA for 6800d62
crates/chain/src/keychain/txout_index.rs
@@ -389,7 +389,11 @@ impl<K: Clone + Ord + Debug> KeychainTxOutIndex<K> {
389
let _inserted = self
390
.inner
391
.insert_spk((keychain.clone(), new_index), new_spk);
392
- debug_assert!(_inserted, "must not have existing spk",);
+ debug_assert!(_inserted, "must not have existing spk");
393
+ debug_assert!(
394
+ dbg!(has_wildcard) || dbg!(new_index) == 0,
395
+ "non-wildcard descriptors must not iterate past index 0"
396
+ );
397
}
398
399
let _old_index = self.last_revealed.insert(keychain.clone(), target_index);
0 commit comments