Commit graph

123 commits

Author SHA1 Message Date
Francisco J. Hernandez Heras
469565c188 Improving imports (#4448) 2018-06-19 18:36:01 +02:00
SomberNight
219c2a363a
fix #4401 2018-06-03 17:17:56 +02:00
ghost43
9b7a449057
util.make_dir: 0o700 permissions on folders (#4357) 2018-05-28 14:22:54 +02:00
SomberNight
c8bed8791a
assert datadir available 2018-04-29 18:25:10 +02:00
SomberNight
7b50790584
do not raise BaseException 2018-04-07 17:10:30 +02:00
SomberNight
0180abc179
blockchain.py: check header length
related: #4212
2018-04-05 16:12:34 +02:00
SomberNight
ec33463426 fix #4184 2018-03-27 20:17:37 +02:00
SomberNight
5fef1e7980 close #4125
perhaps not proper fix but at least more descriptive exception text
2018-03-19 01:26:57 +01:00
SomberNight
81b6d65764 refactor network constants 2018-03-04 22:10:59 +01:00
SomberNight
151aa9d135 fix prev; offset is relative to last forking height 2018-02-22 16:59:37 +01:00
SomberNight
02c7524d75 logging: some extra network-related lines 2018-02-22 16:44:22 +01:00
ThomasV
0928ac961a fix #3955: fix interference between verifier and catch_up 2018-02-22 16:33:39 +01:00
ThomasV
c8e67e2bd0 fix #3635 2018-01-13 17:09:25 +01:00
pooler
8bcefe6cfa Fix Blockchain.get_target() 2018-01-08 21:48:09 +01:00
ThomasV
de01008992 blockchain: do not load forks that cannot connect to the main headers file 2017-12-13 13:43:51 +01:00
ThomasV
44a83c2401 read checkpoints file in NetworkConstants, add it to setup.py 2017-12-12 11:10:50 +01:00
ThomasV
d1b8a6fae6 Replace initial headers download with hardcoded checkpoints 2017-12-12 10:20:44 +01:00
SomberNight
c65d01ea96 file i/o: use 'with' keyword 2017-11-12 14:33:46 +01:00
SomberNight
0db5ea67a0 bitcoin.NetworkConstants: easier changing between testnet and mainnet 2017-11-09 17:47:57 +01:00
ThomasV
ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
ThomasV
bc591377e8 python3: fix integer division 2017-08-26 08:28:24 +02:00
Dmitry Sorokin
f02d18226b misc ui and lib fixes for py3 2017-08-26 08:27:47 +02:00
Dmitry Sorokin
5be78950ca py3 2017-08-26 08:27:47 +02:00
ThomasV
5872bd4722 force new headers download if file is corrupted 2017-08-03 14:25:50 +02:00
ThomasV
882e259a78 sanity check read_header 2017-08-01 11:00:12 +02:00
ThomasV
94f7a87e47 remove dead code 2017-07-25 18:57:34 +02:00
ThomasV
810f107229 follow-up commit 5f3e5866ad 2017-07-25 18:47:36 +02:00
ThomasV
5f3e5866ad blockchain write method, that flushes file 2017-07-25 10:03:15 +02:00
ThomasV
d71c9d5be3 make blockchain.size() threadsafe 2017-07-24 15:54:42 +02:00
ThomasV
ce977e0385 fix parent_branch_size in blockchain swap 2017-07-21 09:02:58 +02:00
ThomasV
313d53fe0b save header immediately when forking a chain 2017-07-21 07:52:38 +02:00
ThomasV
dd0d85b4f2 fix headers path for android 2017-07-20 21:28:27 +02:00
ThomasV
ca33ffaf77 store fork headers in separate directory 2017-07-20 15:29:22 +02:00
ThomasV
c522c6b4d0 blockchain: store reference to parent_id instead of parent, so that it gets updated after swap 2017-07-20 15:05:47 +02:00
ThomasV
c3615d0aa7 fix: rename files affected by chain swap 2017-07-20 11:36:59 +02:00
ThomasV
ab5a9f3ce4 fix: order files in save_chunk too 2017-07-20 07:56:54 +02:00
ThomasV
feb0f483f5 fix bug if headers file is empty 2017-07-19 17:23:46 +02:00
ThomasV
7a8f337d28 fix: swap parent 2017-07-19 14:26:44 +02:00
ThomasV
ac1ceb44ba blockchain: remove filename field 2017-07-19 11:26:13 +02:00
ThomasV
47e3630dd5 always save headers on disk 2017-07-19 11:23:10 +02:00
ThomasV
b424a83a57 add blockchain.get_name method, update kivy gui 2017-07-19 09:29:20 +02:00
ThomasV
0b6d7dbbc9 fix swap 2017-07-19 06:46:37 +02:00
ThomasV
afda151bc6 fix get_branch_size 2017-07-19 06:24:53 +02:00
ThomasV
6ee0ad8499 fix: swap 2017-07-19 05:45:41 +02:00
ThomasV
a39e270bd3 test height 2017-07-18 21:32:34 +02:00
ThomasV
50ad656c87 blockchain: swap a chain with its parent, if the parent branch is too short to be saved on disk 2017-07-18 18:10:22 +02:00
ThomasV
702abf6581 simplification: do not request checkpoint, check headers against all known blockchains 2017-07-17 19:32:10 +02:00
ThomasV
b0277d5426 blockchain: size method, various fixes 2017-07-17 08:44:09 +02:00
ThomasV
b2116d87ea minor fix 2017-07-16 08:07:47 +02:00
ThomasV
43c5657cb6 blockchain: parent pointer and recursive methods 2017-07-15 17:20:06 +02:00