cuprate_test_utils::data

Constant BLOCK_43BD1F

Source
pub const BLOCK_43BD1F: &[u8] = b"\x10\x10\xc5\x8b\xab\x9b\x06\xb2{\xde\xcf\xc6\xcd\nF\x17-\x13l\x08\x83\x1c\xf6v`7{\xa9\x923#c\"\x8b\x1br\'\x81\xe7\x80~\x07\xf5\x02\xce\xf8\xa7\x01\x01\xff\x92\xf8\xa7\x01\x01\x80\xe0\xa5\x96\xbb\x11\x03\xd7\xcb\xf8&\xb6e\xd7\xa52\xc3\x16\x98-\xc8\xdb\xc2O(\\\xbc\x18\xbb\xcc\'\xc7\x16L\xd9\xb3\'z\x85\xd04\x01\x9fb\x9d\x8b6\xbd\x16\xa2\xbf\xce>\xa8\x0c1\xdcM\x87b\xc6qe\xae\xc2\x18EIN2\xb7X/\xe0\x02\x11\x00\x00\x00)zxz\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
Expand description

Block with hash 43bd1f2b6556dcafa413d8372974af59e4e8f37dbf74dc6b2a9b7212d0577428.

Height: 2751506.

use monero_serai::{block::Block, transaction::Input};

let block = Block::read(&mut BLOCK_43BD1F).unwrap();

assert_eq!(block.header.hardfork_version, 16);
assert_eq!(block.header.hardfork_signal, 16);
assert_eq!(block.header.timestamp, 1667941829);
assert_eq!(block.header.nonce, 4110909056);
assert!(matches!(block.miner_transaction.prefix().inputs[0], Input::Gen(2751506)));
assert_eq!(block.transactions.len(), 0);
assert_eq!(hex::encode(block.hash()), "43bd1f2b6556dcafa413d8372974af59e4e8f37dbf74dc6b2a9b7212d0577428")