mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
device/trezor: dummy payment ID fix
This commit is contained in:
parent
31bdf7bd11
commit
75e5aafdcb
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue