1
0
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:
Pavol Rusnak 2017-07-31 14:00:26 +02:00
parent b6dc73ce9c
commit 32fa08f38b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 0 additions and 15 deletions

View File

@ -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()

View File

@ -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