From 59f4dcbaa5dce98ea72a8299ff9f7d41a56fd50c Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 11 Feb 2014 21:03:17 +0100 Subject: [PATCH] compute root node via bip39 in test_bip32_speed before checking speed --- tests/test_bip32_speed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_bip32_speed.py b/tests/test_bip32_speed.py index 9080a4798..7153f17b4 100644 --- a/tests/test_bip32_speed.py +++ b/tests/test_bip32_speed.py @@ -12,6 +12,8 @@ class TestAddresses(common.TrezorTest): label='test', language='english') + self.client.get_address('Bitcoin', [0]) # to compute root node via BIP39 + for depth in range(8): start = time.time() self.client.get_address('Bitcoin', range(depth)) @@ -28,6 +30,8 @@ class TestAddresses(common.TrezorTest): label='test', language='english') + self.client.get_address('Bitcoin', [0]) # to compute root node via BIP39 + for depth in range(8): start = time.time() self.client.get_address('Bitcoin', range(-depth, 0))