mirror of
https://github.com/wownero/wownero.git
synced 2026-12-03 14:34:01 +01:00
Merge pull request #11076
1a8ca87 wallet: add pending_tx sanity checker (koe)
ACKs: j-berman, jpk68, selsta, thomasbuilds
This commit is contained in:
@@ -2519,6 +2519,9 @@ void WalletImpl::pendingTxPostProcess(PendingTransactionImpl * pending)
|
||||
tools::wallet2::signed_tx_set exported_txs;
|
||||
std::vector<cryptonote::address_parse_info> dsts_info;
|
||||
|
||||
// NOTE: We expect `cold_sign_tx` to validate `pending->m_pending_tx` with `sanity_check_pending_tx`.
|
||||
// It is not possible to pre-validate here because the pending tx may be 'half-formed' at this point (e.g.
|
||||
// trezor makes a tx proposal with no key images and the cold wallet has to supply those).
|
||||
m_wallet->cold_sign_tx(pending->m_pending_tx, exported_txs, dsts_info, pending->m_tx_device_aux);
|
||||
pending->m_key_images = exported_txs.key_images;
|
||||
pending->m_pending_tx = exported_txs.ptx;
|
||||
|
||||
Reference in New Issue
Block a user