encode: Implement encoding traits on Vec<BlockHeader>

This commit is contained in:
Steven Roose 2023-10-18 23:34:56 +01:00
parent 37daf4620c
commit 10c1f7b9c6
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ use hashes::{sha256, sha256d, Hash};
use internals::write_err;
use crate::bip152::{PrefilledTransaction, ShortId};
use crate::blockdata::block;
use crate::blockdata::transaction::{Transaction, TxIn, TxOut};
use crate::hash_types::{BlockHash, FilterHash, FilterHeader, TxMerkleNode};
use crate::io::{self, Cursor, Read};
@ -626,6 +627,7 @@ macro_rules! impl_vec {
};
}
impl_vec!(BlockHash);
impl_vec!(block::Header);
impl_vec!(FilterHash);
impl_vec!(FilterHeader);
impl_vec!(TxMerkleNode);