mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-11 17:55:47 +00:00
wallet tx version 5
This commit is contained in:
parent
546196e756
commit
6d61d9bddc
@ -399,7 +399,7 @@ pub struct WalletTx {
|
|||||||
|
|
||||||
impl WalletTx {
|
impl WalletTx {
|
||||||
pub fn serialized_version() -> u64 {
|
pub fn serialized_version() -> u64 {
|
||||||
return 6;
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new(height: i32, datetime: u64, txid: &TxId) -> Self {
|
pub fn new(height: i32, datetime: u64, txid: &TxId) -> Self {
|
||||||
@ -444,7 +444,7 @@ impl WalletTx {
|
|||||||
// Outgoing metadata was only added in version 2
|
// Outgoing metadata was only added in version 2
|
||||||
let outgoing_metadata = Vector::read(&mut reader, |r| OutgoingTxMetadata::read(r))?;
|
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))?
|
Vector::read(&mut reader, |r| OutgoingTxMetadata::read(r))?
|
||||||
} else {
|
} else {
|
||||||
vec![]
|
vec![]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user