Skip to content
Snippets Groups Projects
Commit fc1214f2 authored by Gav's avatar Gav
Browse files

Minor cleanup.

parent 825cb6b9
No related merge requests found
......@@ -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::*;
......
No preview for this file type
No preview for this file type
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment