aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2022-08-15 19:50:34 -0700
committerj-berman <justinberman@protonmail.com>2022-09-06 17:20:23 -0600
commitb03d7091f7a0c2bd78f28ccb27a6481bb409d4dd (patch)
treedefa75066d02f7b535e826ad88aebb9769bd9195 /src/wallet/wallet2.h
parentwallet2: do not assume imported outputs must be non empty (diff)
downloadmonero-b03d7091f7a0c2bd78f28ccb27a6481bb409d4dd.tar.xz
wallet2: fixes for export/import output flow
- only allow offline wallets to import outputs - don't import empty outputs - export subaddress indexes when exporting outputs
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 6598dea10..06d4e636e 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -406,6 +406,8 @@ private:
BEGIN_SERIALIZE_OBJECT()
VERSION_FIELD(1)
+ if (version < 1)
+ return false;
FIELD(m_pubkey)
VARINT_FIELD(m_internal_output_index)
VARINT_FIELD(m_global_output_index)