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.
9 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
ThomasV
233fd8ed77
revert 175bfae9e6
. store last known height in wallet instead
10 years ago
Neil Booth
175bfae9e6
Move away from requiring network and blockchain objects to be able to request local height.
We store it in the config object instead of in the blockchain object.
The blockchain object now refers to its config, and calls refresh_height() to update it.
The network objects also refer to the config rather than the blockchain.
This is the first of many small steps to untangle the verifier from stored state and so
permit the history tab to work in offline mode. The refactoring will simultaneously clean
up a lot of accumulated cruft.
10 years ago
ThomasV
d9874ecb01
add 10 second timeout to header requests
10 years ago
ThomasV
f50a62755c
use self.print_error
10 years ago
ThomasV
a4cb70649d
fix synchronizer hanging when not connected.
10 years ago
ThomasV
72688a5cfa
clean implementation of daemon threads
10 years ago
ThomasV
e389745491
remove appdata_dir and data_dir
10 years ago
Tafelpoot
d9c5250a6f
removed trailing whitespace and fixed indentation in history widget
10 years ago
ThomasV
ed8f9666df
remove interface.synchronous_get
11 years ago
ThomasV
28df27fba2
update interface.py
11 years ago
Chris Glass
8997c760a2
Do not use mutables as default values!
This blog article explains why (just an example, many other articles
discuss this ad nauseam):
http://pythonconquerstheuniverse.wordpress.com/2012/02/15/mutable-default-arguments/
11 years ago
wozz
5a312290e2
Target Calculation Update
fix #686
11 years ago
ThomasV
9bebc05149
fix bug in chunk validation
11 years ago
ThomasV
df76aac2db
fix bug with hex_to_int; remove unused function
11 years ago
Bryan Stitt
91061752cf
stop using eval
11 years ago
Bryan Stitt
225d8b83a3
don't use bare except
11 years ago
ThomasV
7deec48705
pass chain to get_target (fixes issue #316 )
11 years ago
ThomasV
3aa76f1808
fix bug with chunk requestor
11 years ago
ThomasV
116b10cc11
replace blockchain.height with height(), and fix server_lag issue
11 years ago