35 Commits (e138b02bac25630f7fe053a7452afc09a8186873)

Author SHA1 Message Date
SomberNight 7e2d9c48d1
blockchain: fix bugs in bits_to_target and target_to_bits 4 years ago
SomberNight ee10e8e4d3
blockchain: bits_to_target: small clean-up 4 years ago
SomberNight 6033471853
blockchain: clarify MAX_TARGET by referencing bitcoin core source 4 years ago
bitromortac 63308f94a0
reorganize with_lock decorator 5 years ago
SomberNight 4acf884790
blockchain.py: maybe fix rare deadlock 5 years ago
SomberNight 2eec7e1600
network: smarter switch_unwanted_fork_interface 6 years ago
SomberNight 54e1520ee4
ln: check if chain tip is stale when receiving HTLC 6 years ago
SomberNight ce81957d25
blockchain: move init_headers_file from network.py to blockchain.py 6 years ago
SomberNight 9d2629c5c3
blockchain.fork: better exception if datadir was deleted while running 6 years ago
SomberNight 3385a94753
logging: basics 7 years ago
SomberNight bca6ad5241
verifier: fix logic bug. after reorg, some verifs were not undone 7 years ago
SomberNight 9a71120090
blockchain: fix bug when swapping chain with parent 7 years ago
ghost43 dc19cf1fa1
wallet: randomise locktime of transactions a bit. also check if stale. (#4967) 7 years ago
SomberNight 73e2b09ba8
blockchain: check best chain on disk is consistent with checkpoints 7 years ago
SomberNight bddea809ec
storage/blockchain: use os.replace 7 years ago
SomberNight d7c5949365
prefer int.from_bytes over int('0x'+hex, 16) 7 years ago
SomberNight 65ce3deeaa
blockchain: chain hierarchy based on most work, not length 7 years ago
SomberNight 141ff99580
blockchain.py: generalise fork ids to get rid of conflicts 7 years ago
SomberNight a8e6eaa247
blockchain: fix difficulty retarget 7 years ago
SomberNight e37da62a1c
fix most "scripts" 7 years ago
SomberNight 082a83dd85
rename crypto.Hash to sha256d 7 years ago
SomberNight 81cc20039e
more type annotations in core lib 7 years ago
SomberNight 37206ec08e
network: auto-switch servers to preferred fork (or longest chain) 7 years ago
SomberNight 4360a785ad
blockchain: blockchains_lock needed to write/iterate global dict 7 years ago
SomberNight 1635bc8cb3
blockchain: use HEADER_SIZE named constant instead of magic numbers 7 years ago
SomberNight 8cd08cc0fa
network: rm dead code; simplify 7 years ago
SomberNight a5b3f809ce
blockchain.py: add type annotations 7 years ago
SomberNight cdca74aa39
move max_checkpoint from network to constants 7 years ago
SomberNight 3f0d79f07d
blockchain.py: better handling of missing headers. more restrictive verify_chunk. 7 years ago
Janus e9ceeb85af
async block headers 7 years ago
SomberNight 2a9f5db576
blockchain.py: fix: chunks in checkpoint region were not getting saved if we were on a fork 7 years ago
SomberNight 531cdeffa9
blockchain.py: rename 'checkpoint' to 'forkpoint' 7 years ago
SomberNight b44aca1654
network: disconnect from server on incorrect header length 8 years ago
Janus 097ac144d9 file reorganization with top-level module 8 years ago
Francisco J. Hernandez Heras 469565c188 Improving imports (#4448) 8 years ago
SomberNight 219c2a363a
fix #4401 8 years ago
ghost43 9b7a449057
util.make_dir: 0o700 permissions on folders (#4357) 8 years ago
SomberNight c8bed8791a
assert datadir available 8 years ago
SomberNight 7b50790584
do not raise BaseException 8 years ago
SomberNight 0180abc179
blockchain.py: check header length 8 years ago
SomberNight ec33463426 fix #4184 8 years ago
SomberNight 5fef1e7980 close #4125 8 years ago
SomberNight 81b6d65764 refactor network constants 8 years ago
SomberNight 151aa9d135 fix prev; offset is relative to last forking height 8 years ago
SomberNight 02c7524d75 logging: some extra network-related lines 8 years ago
ThomasV 0928ac961a fix #3955: fix interference between verifier and catch_up 8 years ago
ThomasV c8e67e2bd0 fix #3635 8 years ago
pooler 8bcefe6cfa Fix Blockchain.get_target() 8 years ago
ThomasV de01008992 blockchain: do not load forks that cannot connect to the main headers file 8 years ago
ThomasV 44a83c2401 read checkpoints file in NetworkConstants, add it to setup.py 8 years ago