mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
tests: remove estimate_tx_size
This commit is contained in:
parent
b6dc73ce9c
commit
32fa08f38b
@ -158,12 +158,6 @@ class TestProtectionLevels(common.TrezorTest):
|
||||
binascii.unhexlify('209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80'),
|
||||
'This is an example of a signed message.')
|
||||
|
||||
def test_estimate_txsize(self):
|
||||
with self.client:
|
||||
self.setup_mnemonic_pin_passphrase()
|
||||
self.client.set_expected_responses([proto.TxSize()])
|
||||
self.client.estimate_tx_size('Bitcoin', [], [])
|
||||
|
||||
"""
|
||||
def test_simplesigntx(self):
|
||||
self.setup_mnemonic_pin_passphrase()
|
||||
|
@ -712,15 +712,6 @@ class ProtocolMixin(object):
|
||||
ask_on_decrypt=ask_on_decrypt,
|
||||
iv=iv))
|
||||
|
||||
@field('tx_size')
|
||||
@expect(proto.TxSize)
|
||||
def estimate_tx_size(self, coin_name, inputs, outputs):
|
||||
msg = proto.EstimateTxSize()
|
||||
msg.coin_name = coin_name
|
||||
msg.inputs_count = len(inputs)
|
||||
msg.outputs_count = len(outputs)
|
||||
return self.call(msg)
|
||||
|
||||
def _prepare_simple_sign_tx(self, coin_name, inputs, outputs):
|
||||
msg = proto.SimpleSignTx()
|
||||
msg.coin_name = coin_name
|
||||
|
Loading…
Reference in New Issue
Block a user