Duty rester + test.

This commit is contained in:
Gav
2018-02-05 12:02:54 +01:00
parent 5aeb81b247
commit a7e781c75b
6 changed files with 226 additions and 50 deletions
@@ -21,13 +21,15 @@ use runtime_std::mem;
use runtime_std::cell::RefCell;
use runtime_std::rc::Rc;
use primitives::{BlockNumber, Digest};
use primitives::{BlockNumber, Digest, Hash};
#[derive(Default)]
/// The information that can be accessed globally.
pub struct Environment {
/// The current block number.
pub block_number: BlockNumber,
/// The current block's parent hash.
pub parent_hash: Hash,
/// The current block digest.
pub digest: Digest,
}