wallet: add sighash check to class Abstract_Wallet
qml: use backend sighash check and add user confirmation path qt: use backend sighash check and add user confirmation path qml: include get_warning_for_risk_of_burning_coins_as_fees test in txdetails qt: add warning icon to sighash warning add sighash and fee checks to wallet.sign_transaction, making all warnings fatal unless ignore_warnings is set to True tests: test sign_transaction on both code paths with ignore_warnings True and False, raise specific exceptions TransactionPotentiallyDangerousException and TransactionDangerousException
This commit is contained in:
committed by
accumulator
parent
6467db0b7d
commit
7b96a83350
@@ -469,10 +469,10 @@ class Commands:
|
||||
return tx.serialize()
|
||||
|
||||
@command('wp')
|
||||
async def signtransaction(self, tx, password=None, wallet: Abstract_Wallet = None):
|
||||
async def signtransaction(self, tx, password=None, wallet: Abstract_Wallet = None, iknowwhatimdoing: bool=False):
|
||||
"""Sign a transaction. The wallet keys will be used to sign the transaction."""
|
||||
tx = tx_from_any(tx)
|
||||
wallet.sign_transaction(tx, password)
|
||||
wallet.sign_transaction(tx, password, ignore_warnings=iknowwhatimdoing)
|
||||
return tx.serialize()
|
||||
|
||||
@command('')
|
||||
|
||||
Reference in New Issue
Block a user