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 887e112 commit 761189aCopy full SHA for 761189a
crates/chain/src/keychain/txout_index.rs
@@ -390,7 +390,11 @@ impl<K: Clone + Ord + Debug> KeychainTxOutIndex<K> {
390
let _inserted = self
391
.inner
392
.insert_spk((keychain.clone(), new_index), new_spk);
393
- debug_assert!(_inserted, "must not have existing spk",);
+ debug_assert!(_inserted, "must not have existing spk");
394
+ debug_assert!(
395
+ has_wildcard || new_index == 0,
396
+ "non-wildcard descriptors must not iterate past index 0"
397
+ );
398
}
399
400
let _old_index = self.last_revealed.insert(keychain.clone(), target_index);
0 commit comments