Move constants to top of files (even though they're private)

This commit is contained in:
Gav
2018-01-28 21:47:49 +01:00
parent a4e7f17a19
commit c245b38eaa
5 changed files with 36 additions and 36 deletions
@@ -24,6 +24,9 @@ use support::{Hashable, storage, with_env};
use primitives::{Block, BlockNumber, Hash, UncheckedTransaction, TxOrder};
use runtime::{staking, session};
const BLOCK_HASH_AT: &[u8] = b"sys:old:";
const CODE: &[u8] = b"sys:cod";
/// The current block number being processed. Set by `execute_block`.
pub fn block_number() -> BlockNumber {
with_env(|e| e.block_number)
@@ -119,9 +122,6 @@ fn final_checks(_block: &Block) {
});
}
const BLOCK_HASH_AT: &[u8] = b"sys:old:";
const CODE: &[u8] = b"sys:cod";
#[cfg(test)]
mod tests {
use super::*;