Skip to content

Commit

Permalink
test, trezor: Check for warnings rather than needs_passphrase_sent
Browse files Browse the repository at this point in the history
Since bitcoin-core#644, not providing a passphrase to a trezor that has passphrases
enabled will only result in a warning rather than setting
`needs_passphrase_set` to false.
  • Loading branch information
achow101 committed Jan 11, 2023
1 parent 203c844 commit c3f490f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_trezor.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def test_passphrase(self):
result = self.do_command(self.dev_args + ['enumerate'])
for dev in result:
if dev['type'] == 'trezor' and dev['path'] == 'udp:127.0.0.1:21324':
self.assertTrue(dev['needs_passphrase_sent'])
self.assertIn("warnings", dev)
break
else:
self.fail("Did not enumerate device")
Expand Down

0 comments on commit c3f490f

Please sign in to comment.