Commit Graph

20 Commits

Author SHA1 Message Date
SomberNight 2f1095510c bitcoin.py/transaction.py: API changes: rm most hex usage
Instead of some functions operating with hex strings,
and others using bytes, this consolidates most things to use bytes.

This mainly focuses on bitcoin.py and transaction.py,
and then adapts the API usages in other files.

Notably,
- scripts,
- pubkeys,
- signatures
should be bytes in almost all places now.
2024-04-29 17:10:26 +00:00
SomberNight 5e08d6e486 constants: add some more type hints 2024-04-29 16:50:19 +00:00
SomberNight 312f2641e7 don't use bare except
use "except Exception", or if really needed explicitly "except BaseException"
2023-04-24 12:58:01 +00:00
SomberNight 57e52da77f lnaddr: clean-up SEGWIT_HRP vs BOLT11_HRP confusion
With signet, SEGWIT_HRP != BOLT11_HRP, so the previous "currency" string
became a flawed concept. Instead we pass around net objects now.
2021-06-22 16:16:21 +02:00
wakiyamap 9f4d7ec6d1 Add net.BOLT11_HRP 2021-05-08 11:53:58 +09:00
wakiyamap 639cd94dcb add signet support 2021-05-06 19:47:22 +09:00
ThomasV a642a11936 add another DNS seed 2021-03-26 14:28:34 +01:00
Luke Childs 7b122d2679 Automated BIP39 Recovery, squashed 2020-08-20 17:50:39 +02:00
SomberNight 59a428ea7f lnworker: re-enable dns seeds for peer-finding bootstrap
but only for mainnet
2020-03-03 20:12:12 +01:00
SomberNight 6d8c605307 move lnworker.first_block to constants 2019-08-20 09:03:11 +02:00
SomberNight c02cc9bb3b persist recent peers. implement dns seed bootstrapping.
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
2019-08-20 09:03:10 +02:00
SomberNight a5b44d25b0 persist channel db on disk. verify channel gossip sigs. 2019-08-20 09:03:10 +02:00
SomberNight 8ffeb79d01 constants.py: remove duplicate Simnet declaration 2019-08-20 09:03:10 +02:00
SomberNight f174609158 constants.py: Simnet inherits from Testnet 2019-08-20 09:03:09 +02:00
Janus 8468fc8f68 use same servers for simnet as for regtest 2019-08-20 09:03:09 +02:00
Janus 0abfcd2b6a lightning: add --simnet and --lightning switches 2019-08-20 09:03:09 +02:00
SomberNight 650225e238 crash reporter UX
see #5483
2019-07-04 19:13:12 +02:00
SomberNight 85a7aa291e bip32: refactor whole module. clean-up. 2019-02-22 18:50:24 +01:00
SomberNight cdca74aa39 move max_checkpoint from network to constants 2018-09-09 05:00:09 +02:00
Janus 097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00