1use crate::{pb::btc::v1 as pb}; 2 3impl pb::Block { 4 pub fn transactions(&self) -> impl Iterator<Item = &pb::Transaction> { 5 self.tx.iter() 6 } 7}