Transaction 0d4e7eb485253e41f914456490236f5c8298e84118c827ddb506eaed862531c9
1 Input
-
b5af93c2450f488801bc1bdefde84ab628a875546ccc228b398e400726fcd414:1
OP_DATA_32(32) 6c01fb49cae0d91b64b17f7f553b7956f3abfed9f11578c80cc17d1e962adce8OP_CHECKSIG(172)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_24(24) text/plain;charset=utf-8OP_0(0)OP_PUSHDATA2(77) "0°0′336″0‴" ); assert_eq!( Sat(50 * COIN_VALUE * u64::from(SUBSIDY_HALVING_INTERVAL) + 1) .degree() .to_string(), "0°0′336″1‴" ); assert_eq!( Sat(2067187500000000 - 1).degree().to_string(), "0°209999′2015″156249999‴" ); assert_eq!(Sat(2067187500000000).degree().to_string(), "1°0′0″0‴"); assert_eq!(Sat(2067187500000000 + 1).degree().to_string(), "1°0′0″1‴"); } #[test] fn invalid_degree_bugfix() {OP_PUSHDATA2(77) // Break glass in case of emergency: // for height in 0..(2 * CYCLE_EPOCHS * Epoch::BLOCKS) { // // 1054200000000000 // let expected = Height(height).starting_sat(); // // 0°1680′0″0‴ // let degree = expected.degree(); // // 2034637500000000 // let actual = degree.to_string().parse::<Sat>().unwrap(); // assert_eq!( // actual, expected, // "Sat at height {height} did not round-trip from degree {degree} successfully" // ); // } assert_OP_DATA_71(71) eq!(Sat(1054200000000000).degree().to_string(), "0°1680′0″0‴");OP_ENDIF(104)
1 Outputs
- 0d4e7eb485253e41f914456490236f5c8298e84118c827ddb506eaed862531c9:0
value 546
address bc1pw7tn6e2ma3mxz5gzlq3psd73jfjw3ynnxtnz2u7rcqc0e0zq9t3sa7p3c6