| 24 | // TODO(ddimaria): store blocks in a patricia merkle trie |
| 25 | #[derive(Debug)] |
| 26 | pub(crate) struct BlockChain { |
| 27 | pub(crate) accounts: AccountStorage, |
| 28 | pub(crate) blocks: Vec<Block>, |
| 29 | pub(crate) transactions: Arc<Mutex<TransactionStorage>>, |
| 30 | pub(crate) world_state: WorldState, |
| 31 | } |
| 32 | |
| 33 | impl BlockChain { |
| 34 | pub(crate) fn new(storage: Arc<Storage>) -> Result<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected