Skip to content

Commit

Permalink
Swapd: Correct checkpoint data after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCharlatan committed Jun 21, 2022
1 parent ebf6280 commit b7cae58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/swapd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2243,12 +2243,12 @@ impl Runtime {
Request::SyncerTask(task),
)?;
}
if xmr_addr_addendum.is_some() {
let XmrAddressAddendum {
view_key,
spend_key,
from_height,
} = xmr_addr_addendum.expect("checked");
if let Some(XmrAddressAddendum {
view_key,
spend_key,
from_height,
}) = xmr_addr_addendum
{
let task = self.syncer_state.watch_addr_xmr(
spend_key,
view_key,
Expand Down
1 change: 1 addition & 0 deletions src/swapd/syncer_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl SyncerState {
pub fn watch_tx_btc(&mut self, txid: Txid, tx_label: TxLabel) -> Task {
let id = self.tasks.new_taskid();
self.tasks.watched_txs.insert(id, tx_label);
self.tasks.txids.insert(tx_label, txid);
info!(
"{} | Watching {} transaction ({})",
self.swap_id.bright_blue_italic(),
Expand Down

0 comments on commit b7cae58

Please sign in to comment.