This is part of #32189. I’m separating this out because it’s not immediately obvious that it’s just a refactor. SetHexDeprecated()
doesn’t do any correctness checks on the input, while FromHex()
does, so it’s theoretically possible that there’s a behavior change.
Replaces uint256::SetHexDeprecated()
calls with Txid::FromHex()
in four locations:
TransactionTableModel::updateTransaction
TransactionView::contextualMenu
TransactionView::abandonTx
TransactionView::bumpFee
The input strings in these cases aren’t user input, so they should only be valid hex strings from GetHex()
(through TransactionRecord::getTxHash()
). These conversions should be safe without additional checks.