1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Add types.rs to git

This commit is contained in:
Roman Zeyde 2018-04-13 22:59:12 +03:00
parent 7d26232b53
commit 012b8b2c90
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

7
src/types.rs Normal file
View File

@ -0,0 +1,7 @@
use std::collections::HashMap;
pub use bitcoin::blockdata::block::BlockHeader;
pub use bitcoin::util::hash::Sha256dHash;
pub type Bytes = Vec<u8>;
pub type HeaderMap = HashMap<Sha256dHash, BlockHeader>;