mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 16:18:22 +00:00
core/tests: disable over_fee_threshold test
This commit is contained in:
parent
a99ccbc4d2
commit
0568379f8d
@ -21,9 +21,15 @@ from apps.wallet.sign_tx import helpers, signing
|
||||
class TestSignTxFeeThreshold(unittest.TestCase):
|
||||
# pylint: disable=C0301
|
||||
|
||||
# the following test is disabled, because there are not enough
|
||||
# inputs to trigger the excessive threshold warning
|
||||
#
|
||||
# this is being tested in the device test:
|
||||
# test_msg_signtx.test_testnet_fee_too_high
|
||||
|
||||
"""
|
||||
def test_over_fee_threshold(self):
|
||||
coin_bitcoin = coins.by_name('Bitcoin')
|
||||
coin_bitcoin.maxfee_kb = 500000
|
||||
|
||||
ptx1 = TransactionType(version=1, lock_time=0, inputs_cnt=2, outputs_cnt=1, extra_data_len=0)
|
||||
pinp1 = TxInputType(script_sig=unhexlify('483045022072ba61305fe7cb542d142b8f3299a7b10f9ea61f6ffaab5dca8142601869d53c0221009a8027ed79eb3b9bc13577ac2853269323434558528c6b6a7e542be46e7e9a820141047a2d177c0f3626fc68c53610b0270fa6156181f46586c679ba6a88b34c6f4874686390b4d92e5769fbb89c8050b984f4ec0b257a0e5c4ff8bd3b035a51709503'),
|
||||
@ -89,6 +95,7 @@ class TestSignTxFeeThreshold(unittest.TestCase):
|
||||
signer = signing.sign_tx(tx, keychain)
|
||||
for request, response in chunks(messages, 2):
|
||||
self.assertEqual(signer.send(request), response)
|
||||
"""
|
||||
|
||||
def test_under_threshold(self):
|
||||
coin_bitcoin = coins.by_name('Bitcoin')
|
||||
|
Loading…
Reference in New Issue
Block a user