Skip to content

Commit 795ae9c

Browse files
committed
f update fuzz
1 parent 020ce15 commit 795ae9c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fuzz/src/chanmon_consistency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
311311
let mut posn = Vec::with_capacity(channel_txn.len());
312312
for i in 0..channel_txn.len() {
313313
txn.push(&channel_txn[i]);
314-
posn.push(i as u32 + 1);
314+
posn.push(i + 1);
315315
}
316316
$node.block_connected(&header, 1, &txn, &posn);
317317
for i in 2..100 {

fuzz/src/full_stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<'a> MoneyLossDetector<'a> {
183183
hash_map::Entry::Vacant(e) => {
184184
e.insert(self.height);
185185
txn.push(tx);
186-
txn_idxs.push(idx as u32 + 1);
186+
txn_idxs.push(idx + 1);
187187
},
188188
_ => {},
189189
}

fuzz/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl ChainWatchInterface for DummyChainWatcher {
7575
fn install_watch_tx(&self, _txid: &Txid, _script_pub_key: &Script) { }
7676
fn install_watch_outpoint(&self, _outpoint: (Txid, u32), _out_script: &Script) { }
7777
fn watch_all_txn(&self) { }
78-
fn filter_block(&self, _block: &Block) -> Vec<u32> {
78+
fn filter_block(&self, _block: &Block) -> Vec<usize> {
7979
Vec::new()
8080
}
8181
fn reentered(&self) -> usize { 0 }

0 commit comments

Comments
 (0)