Move current slate version to constant

This commit is contained in:
Yoni 2019-01-30 10:26:23 +02:00
parent 99dda19f5e
commit 569d7a3220

View file

@ -31,6 +31,8 @@ use rand::thread_rng;
use std::sync::Arc; use std::sync::Arc;
use uuid::Uuid; use uuid::Uuid;
const CURRENT_SLATE_VERSION: u64 = 1;
/// Public data for each participant in the slate /// Public data for each participant in the slate
#[derive(Serialize, Deserialize, Debug, Clone)] #[derive(Serialize, Deserialize, Debug, Clone)]
@ -108,7 +110,7 @@ impl Slate {
height: 0, height: 0,
lock_height: 0, lock_height: 0,
participant_data: vec![], participant_data: vec![],
version: Some(1), version: Some(CURRENT_SLATE_VERSION),
} }
} }