Skip to content

Commit

Permalink
Hot fix custom block header format for VRSC.
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed Apr 16, 2021
1 parent 8ca4d74 commit 335c960
Show file tree
Hide file tree
Showing 2 changed files with 18 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.

10 changes: 10 additions & 0 deletions mm2src/coins/utxo/utxo_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2418,3 +2418,13 @@ fn firo_mtp() {
.unwrap();
assert_eq!(mtp, 1616492629);
}

#[test]
fn verus_mtp() {
let electrum = electrum_client_for_test(&["el0.verus.io:17485", "el1.verus.io:17485", "el2.verus.io:17485"]);
let mtp = electrum
.get_median_time_past(1480113, NonZeroU64::new(11).unwrap())
.wait()
.unwrap();
assert_eq!(mtp, 1618579909);
}

0 comments on commit 335c960

Please sign in to comment.