aboutsummaryrefslogtreecommitdiff
path: root/src/device_trezor
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2019-02-20 02:00:14 +0100
committerDusan Klinec <dusan.klinec@gmail.com>2019-02-20 02:00:14 +0100
commit75e5aafdcb6834f940b71a929e64fc59597bd344 (patch)
treebd29412b735f9226f6d8fa3de86d424ce6cea084 /src/device_trezor
parentMerge pull request #4988 (diff)
downloadmonero-75e5aafdcb6834f940b71a929e64fc59597bd344.tar.xz
device/trezor: dummy payment ID fix
Diffstat (limited to 'src/device_trezor')
-rw-r--r--src/device_trezor/device_trezor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device_trezor/device_trezor.cpp b/src/device_trezor/device_trezor.cpp
index 8868fb995..3f0882c8d 100644
--- a/src/device_trezor/device_trezor.cpp
+++ b/src/device_trezor/device_trezor.cpp
@@ -393,7 +393,7 @@ namespace trezor {
const bool nonce_required = tdata.tsx_data.has_payment_id() && tdata.tsx_data.payment_id().size() > 0;
const bool has_nonce = cryptonote::find_tx_extra_field_by_type(tx_extra_fields, nonce);
- CHECK_AND_ASSERT_THROW_MES(has_nonce == nonce_required, "Transaction nonce presence inconsistent");
+ CHECK_AND_ASSERT_THROW_MES(has_nonce || !nonce_required, "Transaction nonce not present");
if (nonce_required){
const std::string & payment_id = tdata.tsx_data.payment_id();