Add a slate version field

This commit is contained in:
Yoni 2019-01-30 10:19:41 +02:00
parent fa7e46d4b2
commit a33502c108

View file

@ -92,6 +92,8 @@ pub struct Slate {
/// insert their public data here. For now, 0 is sender and 1 /// insert their public data here. For now, 0 is sender and 1
/// is receiver, though this will change for multi-party /// is receiver, though this will change for multi-party
pub participant_data: Vec<ParticipantData>, pub participant_data: Vec<ParticipantData>,
/// Slate format version
pub version: Option<u64>,
} }
impl Slate { impl Slate {
@ -106,6 +108,7 @@ impl Slate {
height: 0, height: 0,
lock_height: 0, lock_height: 0,
participant_data: vec![], participant_data: vec![],
version:Some(1)
} }
} }