diff options
| author | tobtoht <tob@featherwallet.org> | 2026-06-10 17:14:27 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-06-10 17:14:27 +0000 |
| commit | 4f8835d51e5a011c48035348f1b42a908363e6cd (patch) | |
| tree | 510fc8a6a59bdcf1bdd6753af35b1069735d025f | |
| parent | 70d57adc4b08c39e391468369f1a29a532fb9a8e (diff) | |
| parent | 2de5e8227f356c31784e249ca5317e7faf4ba969 (diff) | |
| download | monzero-core-4f8835d51e5a011c48035348f1b42a908363e6cd.tar.gz monzero-core-4f8835d51e5a011c48035348f1b42a908363e6cd.tar.xz monzero-core-4f8835d51e5a011c48035348f1b42a908363e6cd.zip | |
Merge pull request #10718
2de5e82 Fix: check hwdev.generate_output_ephemeral_keys result (SChernykh)
| -rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index c350e24c4..7aea5cf50 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -453,11 +453,12 @@ namespace cryptonote crypto::public_key out_eph_public_key; crypto::view_tag view_tag; - hwdev.generate_output_ephemeral_keys(tx.version,sender_account_keys, txkey_pub, tx_key, + const bool r = hwdev.generate_output_ephemeral_keys(tx.version,sender_account_keys, txkey_pub, tx_key, dst_entr, change_addr, output_index, need_additional_txkeys, additional_tx_keys, additional_tx_public_keys, amount_keys, out_eph_public_key, use_view_tags, view_tag); + CHECK_AND_ASSERT_MES(r, false, "Failed to generate output ephemeral keys"); tx_out out; cryptonote::set_tx_out(dst_entr.amount, out_eph_public_key, use_view_tags, view_tag, out); |
