Minor cleanup.

This commit is contained in:
Gav
2018-01-28 20:17:14 +01:00
parent 825cb6b9d4
commit fc1214f251
3 changed files with 4 additions and 8 deletions
@@ -31,14 +31,6 @@ use support::storage;
use primitives::{AccountID, Hash, BlockNumber, Proposal};
use runtime::{staking, system, session};
/*macro_rules! db_name {
( $( $name:ident )+ ) => concat!("gov:", $( stringify!($name) ),+ )
}*/
const APPROVALS_REQUIRED: &[u8] = b"gov:apr";
const CURRENT_PROPOSAL: &[u8] = b"gov:pro";
const APPROVAL_OF: &[u8] = b"gov:app:";
/// The proportion of validators required for a propsal to be approved measured as the number out
/// of 1000.
pub fn approval_ppm_required() -> u32 {
@@ -115,6 +107,10 @@ pub mod internal {
}
}
const APPROVALS_REQUIRED: &[u8] = b"gov:apr";
const CURRENT_PROPOSAL: &[u8] = b"gov:pro";
const APPROVAL_OF: &[u8] = b"gov:app:";
#[cfg(test)]
mod tests {
use super::*;