From 569d7a322051bd1ad0e5666d165f44e12e0f7006 Mon Sep 17 00:00:00 2001 From: Yoni Date: Wed, 30 Jan 2019 10:26:23 +0200 Subject: [PATCH] Move current slate version to constant --- core/src/libtx/slate.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/libtx/slate.rs b/core/src/libtx/slate.rs index f03225e0..32ee3cf2 100644 --- a/core/src/libtx/slate.rs +++ b/core/src/libtx/slate.rs @@ -31,6 +31,8 @@ use rand::thread_rng; use std::sync::Arc; use uuid::Uuid; +const CURRENT_SLATE_VERSION: u64 = 1; + /// Public data for each participant in the slate #[derive(Serialize, Deserialize, Debug, Clone)] @@ -108,7 +110,7 @@ impl Slate { height: 0, lock_height: 0, participant_data: vec![], - version: Some(1), + version: Some(CURRENT_SLATE_VERSION), } }