Struct ethcore::engines::block_reward::BlockRewardContract [−][src]
pub struct BlockRewardContract { /* fields omitted */ }
A client for the block reward contract.
Methods
impl BlockRewardContract
[src]
impl BlockRewardContract
pub fn new(address: Address) -> BlockRewardContract
[src]
pub fn new(address: Address) -> BlockRewardContract
Create a new block reward contract client targeting the given address.
pub fn reward(
&self,
benefactors: &[(Address, RewardKind)],
caller: &mut SystemCall
) -> Result<Vec<(Address, U256)>, Error>
[src]
pub fn reward(
&self,
benefactors: &[(Address, RewardKind)],
caller: &mut SystemCall
) -> Result<Vec<(Address, U256)>, Error>
Calls the block reward contract with the given benefactors list (and associated reward kind)
and returns the reward allocation (address - value). The block reward contract must be
called by the system address so the caller
must ensure that (e.g. using
machine.execute_as_system
).
Auto Trait Implementations
impl Send for BlockRewardContract
impl Send for BlockRewardContract
impl Sync for BlockRewardContract
impl Sync for BlockRewardContract