From 32fa08f38b7b2e9acabe3dd15c9555ccda568505 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 31 Jul 2017 14:00:26 +0200 Subject: [PATCH] tests: remove estimate_tx_size --- tests/device_tests/test_protection_levels.py | 6 ------ trezorlib/client.py | 9 --------- 2 files changed, 15 deletions(-) diff --git a/tests/device_tests/test_protection_levels.py b/tests/device_tests/test_protection_levels.py index e7b2b9ce1..4116e7077 100644 --- a/tests/device_tests/test_protection_levels.py +++ b/tests/device_tests/test_protection_levels.py @@ -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() diff --git a/trezorlib/client.py b/trezorlib/client.py index eb9923176..a42005b07 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -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