generalized fixedsized structs with macro

This commit is contained in:
Nikolay Volf
2016-04-17 18:52:44 +03:00
parent 17f26ad588
commit 3138584320
2 changed files with 40 additions and 40 deletions

View File

@@ -18,6 +18,7 @@
use util::hash::H256;
use header::BlockNumber;
use util::bytes::{FromRawBytes, FromBytesError, ToBytesWithMap, Populatable};
/// Uniquely identifies block.
#[derive(Debug, PartialEq, Clone, Hash, Eq)]
@@ -50,3 +51,7 @@ pub struct UncleId (
/// Position in block.
pub usize
);
sized_binary_map!(TransactionId);
sized_binary_map!(UncleId);
sized_binary_map!(BlockId);