Struct ethcore::state::Substate
[−]
[src]
pub struct Substate { pub suicides: HashSet<Address>, pub touched: HashSet<Address>, pub logs: Vec<LogEntry>, pub sstore_clears_count: U256, pub contracts_created: Vec<Address>, }
State changes which should be applied in finalize, after transaction is fully executed.
Fields
suicides: HashSet<Address>
Any accounts that have suicided.
touched: HashSet<Address>
Any accounts that are touched.
logs: Vec<LogEntry>
Any logs.
sstore_clears_count: U256
Refund counter of SSTORE nonzero -> zero.
contracts_created: Vec<Address>
Created contracts.
Methods
impl Substate
[src]
impl Substate
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates new substate.
pub fn accrue(&mut self, s: Substate)
[src]
pub fn accrue(&mut self, s: Substate)
Merge secondary substate s
into self, accruing each element correspondingly.
pub fn to_cleanup_mode(&mut self, schedule: &Schedule) -> CleanupMode
[src]
pub fn to_cleanup_mode(&mut self, schedule: &Schedule) -> CleanupMode
Get the cleanup mode object from this.
Trait Implementations
impl Debug for Substate
[src]
impl Debug for Substate
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Substate
[src]
impl Default for Substate