tecc_fast: require libsecp256k1 on lightning, channel graph breaks electrum without - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 9862fe5c0ca08480054d878ebe8fb9069e431470
DIR parent 1988b552e172c83be995e5abb5b5381a8ee18120
HTML Author: Janus <ysangkok@gmail.com>
Date: Thu, 27 Sep 2018 16:41:03 +0200
ecc_fast: require libsecp256k1 on lightning, channel graph breaks electrum without
Diffstat:
M electrum/ecc_fast.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
DIR diff --git a/electrum/ecc_fast.py b/electrum/ecc_fast.py
t@@ -186,10 +186,8 @@ def _prepare_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
def do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
if not _libsecp256k1:
- # FIXME logging 'verbosity' is not yet initialised
- _logger.info('libsecp256k1 library not available, falling back to python-ecdsa. '
- 'This means signing operations will be slower.')
- return
+ raise Exception('libsecp256k1 library not available. '
+ 'Verifying Lightning channels is too computationally expensive without libsecp256k1, aborting.')
if not _patched_functions.prepared_to_patch:
raise Exception("can't patch python-ecdsa without preparations")
ecdsa.ecdsa.Private_key.sign = _patched_functions.fast_sign