![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
} #[test] fn final_subsidy_height() { pretty_assert_eq!( ClockSvg::new(Height(6929999)).second, 1007.0 / 2016.0 * 360.0 ); pretty_assert_eq!( ClockSvg::new(Height(6929999)).minute, 209_999.0 / 210_000.0 * 360.0 ); pretty_assert_eq!( ClockSvg::new(Height(6929999)).hour, 6929999.0 / 6930000.0 * 360.0 ); } #[test] fn first_post_subsidy_height() { pretty_assert_eq!(ClockSvg::new(Height(6930000)).second, 180.0); pretty_assert_eq!(ClockSvg::new(Height(6930000)).minute, 0.0); pretty_assert_eq!(ClockSvg::new(Height(6930000)).hour, 0.0); } #[test] fn clock_svg() { assert_regex_match!( ClockSvg::new(Height(6929999)).to_string(), r##"<\?xml version="1.0" encoding="UTF-8"\?> <svg.*>.* <text.*>6929999</text>.* <line y2="-9" transform="rotate\(359.9999480519481\)"><title>Subsidy</title></line>.* <line y2="-13" stroke-width="0.6" transform="rotate\(359.9982857142857\)"><title>Epoch</title></line>.* <line y2="-16" stroke="#d00505" stroke-width="0.2" transform="rotate\(179.82142857142858\)"><title>Period</title></line>.*
Inscription #44971870
Collection
Ord
Owner
bc1p2e2mlr...pl3s3y647nID
8c59c76737...f8e6708ai0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!