Skip to content

Commit

Permalink
add sync_from_scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Feb 5, 2025
1 parent 299a845 commit 424b6cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bp-wallet
Submodule bp-wallet updated 1 files
+19 −3 src/wallet.rs
3 changes: 0 additions & 3 deletions tests/transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1939,9 +1939,7 @@ fn reorg_revert_multiple(#[case] history_type: HistoryType) {

#[cfg(not(feature = "altered"))]
#[rstest]
#[ignore = "fix needed"]
#[case(false)]
#[ignore = "fix needed"]
#[case(true)]
#[serial]
fn revert_genesis(#[case] with_transfers: bool) {
Expand Down Expand Up @@ -1993,7 +1991,6 @@ fn revert_genesis(#[case] with_transfers: bool) {
wlt.switch_to_instance(INSTANCE_3);
assert_eq!(wlt.get_witness_ord(&utxo.txid), WitnessOrd::Archived);

// this should remove the utxo that is now archived but it doesn't
wlt.sync();
let utxos = wlt.utxos();
assert!(utxos.is_empty());
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ impl TestWallet {
let indexer = self.get_indexer();
self.wallet
.wallet_mut()
.update(&indexer)
.sync_from_scratch(&indexer)
.into_result()
.unwrap();
}
Expand Down

0 comments on commit 424b6cc

Please sign in to comment.