openethereum/ethcore/src/blockchain/update.rs

25 lines
869 B
Rust
Raw Normal View History

use std::collections::HashMap;
use ethereum_types::H256;
2016-02-27 02:16:39 +01:00
use header::BlockNumber;
use blockchain::block_info::BlockInfo;
use blockchain::extras::{BlockDetails, BlockReceipts, TransactionAddress};
use blooms::{BloomGroup, GroupPosition};
2016-02-27 02:16:39 +01:00
/// Block extras update info.
pub struct ExtrasUpdate<'a> {
2016-02-27 02:16:39 +01:00
/// Block info.
pub info: BlockInfo,
/// Current block uncompressed rlp bytes
pub block: &'a [u8],
2016-02-27 10:21:44 +01:00
/// Modified block hashes.
pub block_hashes: HashMap<BlockNumber, H256>,
2016-02-27 10:21:44 +01:00
/// Modified block details.
pub block_details: HashMap<H256, BlockDetails>,
2016-02-27 10:21:44 +01:00
/// Modified block receipts.
pub block_receipts: HashMap<H256, BlockReceipts>,
/// Modified blocks blooms.
pub blocks_blooms: HashMap<GroupPosition, BloomGroup>,
/// Modified transaction addresses (None signifies removed transactions).
pub transactions_addresses: HashMap<H256, Option<TransactionAddress>>,
2016-02-27 02:16:39 +01:00
}