2016-02-27 10:19:33 +01:00
|
|
|
use std::collections::HashMap;
|
2016-08-03 18:05:17 +02:00
|
|
|
use util::H256;
|
2016-02-27 02:16:39 +01:00
|
|
|
use header::BlockNumber;
|
|
|
|
use blockchain::block_info::BlockInfo;
|
2016-05-26 18:24:51 +02:00
|
|
|
use blooms::BloomGroup;
|
|
|
|
use super::extras::{BlockDetails, BlockReceipts, TransactionAddress, LogGroupPosition};
|
2016-02-27 02:16:39 +01:00
|
|
|
|
|
|
|
/// Block extras update info.
|
2016-07-28 23:46:24 +02:00
|
|
|
pub struct ExtrasUpdate<'a> {
|
2016-02-27 02:16:39 +01:00
|
|
|
/// Block info.
|
|
|
|
pub info: BlockInfo,
|
2017-02-03 19:32:10 +01:00
|
|
|
/// Block timestamp.
|
|
|
|
pub timestamp: u64,
|
2016-07-28 23:46:24 +02:00
|
|
|
/// Current block uncompressed rlp bytes
|
|
|
|
pub block: &'a [u8],
|
2016-02-27 10:21:44 +01:00
|
|
|
/// Modified block hashes.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub block_hashes: HashMap<BlockNumber, H256>,
|
2016-02-27 10:21:44 +01:00
|
|
|
/// Modified block details.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub block_details: HashMap<H256, BlockDetails>,
|
2016-02-27 10:21:44 +01:00
|
|
|
/// Modified block receipts.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub block_receipts: HashMap<H256, BlockReceipts>,
|
2016-02-27 10:21:44 +01:00
|
|
|
/// Modified blocks blooms.
|
2016-05-26 18:24:51 +02:00
|
|
|
pub blocks_blooms: HashMap<LogGroupPosition, BloomGroup>,
|
2016-09-28 15:49:42 +02:00
|
|
|
/// Modified transaction addresses (None signifies removed transactions).
|
|
|
|
pub transactions_addresses: HashMap<H256, Option<TransactionAddress>>,
|
2016-02-27 02:16:39 +01:00
|
|
|
}
|