mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Move current slate version to constant
This commit is contained in:
parent
99dda19f5e
commit
569d7a3220
1 changed files with 3 additions and 1 deletions
|
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue