ThomasV
ca33ffaf77
store fork headers in separate directory
8 years ago
ThomasV
c522c6b4d0
blockchain: store reference to parent_id instead of parent, so that it gets updated after swap
8 years ago
ThomasV
c3615d0aa7
fix: rename files affected by chain swap
8 years ago
ThomasV
ab5a9f3ce4
fix: order files in save_chunk too
8 years ago
ThomasV
feb0f483f5
fix bug if headers file is empty
8 years ago
ThomasV
7a8f337d28
fix: swap parent
8 years ago
ThomasV
ac1ceb44ba
blockchain: remove filename field
8 years ago
ThomasV
47e3630dd5
always save headers on disk
8 years ago
ThomasV
b424a83a57
add blockchain.get_name method, update kivy gui
8 years ago
ThomasV
0b6d7dbbc9
fix swap
8 years ago
ThomasV
afda151bc6
fix get_branch_size
8 years ago
ThomasV
6ee0ad8499
fix: swap
8 years ago
ThomasV
a39e270bd3
test height
8 years ago
ThomasV
50ad656c87
blockchain: swap a chain with its parent, if the parent branch is too short to be saved on disk
8 years ago
ThomasV
702abf6581
simplification: do not request checkpoint, check headers against all known blockchains
8 years ago
ThomasV
b0277d5426
blockchain: size method, various fixes
8 years ago
ThomasV
b2116d87ea
minor fix
8 years ago
ThomasV
43c5657cb6
blockchain: parent pointer and recursive methods
8 years ago
ThomasV
cf84068fdb
blockchain fixes
8 years ago
ThomasV
8834ed9714
fix blockchain.height()
8 years ago
ThomasV
37143fd628
fix blockchain offset
8 years ago
ThomasV
bf7deaa1fb
remove blockchain fork detection threshold
8 years ago
ThomasV
ca220d8dbb
Detect blockchain splits and validate multiple chains
8 years ago
ThomasV
075dfb5ccb
separate truncate_headers for debugging
8 years ago
ThomasV
6321b14f9f
Locate blockchain connection point with binary search
8 years ago
ThomasV
1b14a18b1a
sanitize pass_checkpoint
8 years ago
ThomasV
d371e1c807
network: request checkpoint when opening a new connection
8 years ago
ThomasV
2fcdd458b3
add checkpoint dialog to the kivy gui
8 years ago
ThomasV
e6560b8d7f
fix moe used for truncate
8 years ago
ThomasV
9c70540a2f
add BIP9 and segwit_support methods
8 years ago
ThomasV
dd0b018a35
add configurable checkpoint to blockchain verification; use genesis as default
8 years ago
Neil Booth
8888a50549
Add support for BU's nolnet
Also update testnet servers
Add missing self. in print_error call
8 years ago
ThomasV
1358bebd37
network: do not wait for headers file on startup
8 years ago
ThomasV
4d41c36cbb
add headers url for testnet
8 years ago
ThomasV
d042d6e970
initial testnet support (petrkr)
8 years ago
ThomasV
8249f5ab67
init_headers in daemon thread, and fix #1996
8 years ago
ThomasV
4c7bbb4e86
android: move wallet data to internal storage.
9 years ago
ThomasV
305843999e
Relicensing
9 years ago
ThomasV
d8dfa62af8
more intuitive debug message
9 years ago
ThomasV
f30149ad49
fix #1579
9 years ago
Kirill Fomichev
d344ee0474
Small blockchain changes
9 years ago
ThomasV
2a1fbf01fe
simplify blockchain.py
9 years ago
ThomasV
81f070c83b
fix bug in get_target
9 years ago
Kirill Fomichev
334b84c3c3
Add assertions to get_target
9 years ago
Kirill Fomichev
e188929972
Fix proof of work assert in verify_chunk
9 years ago
Neil Booth
93b99ebded
Handy new class PrintError
Saves adding "def print_error" to endless classes.
10 years ago
Neil Booth
4c8408b42d
Print reason for failure to connect headers
Used to fail just with a "header didn't connect" message, now
it gives a reason too.
10 years ago
ThomasV
e879cb4552
https download of headers
10 years ago
ThomasV
ec9cdfaf48
blockchain: restore call to set_local_height, forgotten in previous commit
10 years ago
Neil Booth
d16714a1db
Make the blockchain class not a thread
Remove interface communication out of blockchain.py
into network.py. network.py handles protocol requests
for headers and chunks. blockchain.py continues to
handle their analysis and verification.
If an interface provides a header chain that doesn't
connect, it is dismissed, as per a previous TODO comment.
This removes a thread and another source of timeouts.
I see no performance issues with this when truncating the
blockchain.
Rename 'result' to 'header' for clarity.
10 years ago