Skip to content

Commit

Permalink
Fix waiting for FIRO atomic swap payments refunds #843 (#877)
Browse files Browse the repository at this point in the history
* WIP.

* Support FIRO specific block header format
  • Loading branch information
artemii235 authored Mar 24, 2021
1 parent fdc44f5 commit 84551e8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions mm2src/coins/utxo/utxo_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2402,3 +2402,17 @@ fn doge_mtp() {
.unwrap();
assert_eq!(mtp, 1614849084);
}

#[test]
fn firo_mtp() {
let electrum = electrum_client_for_test(&[
"electrumx01.firo.org:50001",
"electrumx02.firo.org:50001",
"electrumx03.firo.org:50001",
]);
let mtp = electrum
.get_median_time_past(356730, NonZeroU64::new(11).unwrap())
.wait()
.unwrap();
assert_eq!(mtp, 1616492629);
}

0 comments on commit 84551e8

Please sign in to comment.