From 6d61d9bddcf950d698a6655a6a095e36aceeaeab Mon Sep 17 00:00:00 2001 From: Cryptoforge Date: Sun, 9 Aug 2020 20:12:29 -0700 Subject: [PATCH] wallet tx version 5 --- lib/src/lightwallet/data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/lightwallet/data.rs b/lib/src/lightwallet/data.rs index d6877f4..10f3dda 100644 --- a/lib/src/lightwallet/data.rs +++ b/lib/src/lightwallet/data.rs @@ -399,7 +399,7 @@ pub struct WalletTx { impl WalletTx { pub fn serialized_version() -> u64 { - return 6; + return 5; } pub fn new(height: i32, datetime: u64, txid: &TxId) -> Self { @@ -444,7 +444,7 @@ impl WalletTx { // Outgoing metadata was only added in version 2 let outgoing_metadata = Vector::read(&mut reader, |r| OutgoingTxMetadata::read(r))?; - let outgoing_metadata_change = if version >= 6 { + let outgoing_metadata_change = if version >= 5 { Vector::read(&mut reader, |r| OutgoingTxMetadata::read(r))? } else { vec![]