2016-02-27 10:19:33 +01:00
|
|
|
use std::collections::HashMap;
|
2016-02-27 02:16:39 +01:00
|
|
|
use util::hash::H256;
|
|
|
|
use header::BlockNumber;
|
|
|
|
use blockchain::block_info::BlockInfo;
|
2016-02-27 10:19:33 +01:00
|
|
|
use extras::{BlockDetails, BlockReceipts, TransactionAddress, BlocksBlooms};
|
2016-02-27 02:16:39 +01:00
|
|
|
|
|
|
|
/// Block extras update info.
|
|
|
|
pub struct ExtrasUpdate {
|
|
|
|
/// Block info.
|
|
|
|
pub info: BlockInfo,
|
|
|
|
/// Numbers of blocks to update in block hashes cache.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub block_hashes: HashMap<BlockNumber, H256>,
|
2016-02-27 02:16:39 +01:00
|
|
|
/// Hashes of blocks to update in block details cache.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub block_details: HashMap<H256, BlockDetails>,
|
2016-02-27 02:16:39 +01:00
|
|
|
/// Hashes of receipts to update in block receipts cache.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub block_receipts: HashMap<H256, BlockReceipts>,
|
2016-02-27 02:16:39 +01:00
|
|
|
/// Hashes of transactions to update in transactions addresses cache.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub transactions_addresses: HashMap<H256, TransactionAddress>,
|
2016-02-27 02:16:39 +01:00
|
|
|
/// Changed blocks bloom location hashes.
|
2016-02-27 10:19:33 +01:00
|
|
|
pub blocks_blooms: HashMap<H256, BlocksBlooms>,
|
2016-02-27 02:16:39 +01:00
|
|
|
}
|