Slash on unrecognized ID

This commit is contained in:
Luke Parker
2023-04-20 14:24:49 -04:00
parent 294ad08e00
commit f99a91b34d
4 changed files with 98 additions and 27 deletions

View File

@@ -71,7 +71,11 @@ fn serialize_transaction() {
));
}
test_read_write(Transaction::ExternalBlock(OsRng.next_u64()));
{
let mut ext_block = [0; 32];
OsRng.fill_bytes(&mut ext_block);
test_read_write(Transaction::ExternalBlock(ext_block));
}
test_read_write(Transaction::SeraiBlock(OsRng.next_u64()));
test_read_write(Transaction::BatchPreprocess(random_sign_data(&mut OsRng)));