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
ThomasV
bc15caa84c
network: fix server lag detection
11 years ago
ThomasV
c0abd3c34e
show lag in status line
11 years ago
ThomasV
a38298c5ee
handle network.interface being None when network is disconnected
11 years ago
thomasv
50c9830f79
show 'server lagging' icon if server lags and client does not use auto-connect
11 years ago
ThomasV
e462ef48cd
restore minimum lag for server swiching
11 years ago
ThomasV
c18a49b8fe
auto-cycle: switch to the longest chain
11 years ago
ThomasV
41878dc5e0
rename menu: create tx
11 years ago
thomasv
6b6c508976
replace wallet.interface everywhere
11 years ago
ThomasV
907dca6eb9
simplify interface: use callbacks
11 years ago
thomasv
77871b97af
fixes, resend_subscriptions
11 years ago
thomasv
73901a001a
pass network to NetworkDialog and Blockchain
11 years ago
thomasv
047e4b3478
move callbacks to the network class
11 years ago
ThomasV
328315f94b
separate blockchain and network
11 years ago
ThomasV
022b3eed9b
notify wallet wheit height changes
11 years ago
ThomasV
7204dceeac
download headers chunks
11 years ago
ThomasV
1650eefdd3
synchronizer: wait for interface
11 years ago
thomasv
2a6e8927dd
select the longest blockchain from several servers
11 years ago
thomasv
48efc62b2d
simplify directories: electrum_dir
11 years ago
ThomasV
e9b103b283
fix regressions in tx verifier
11 years ago
ThomasV
7ba686e16f
wizard: start wallet threads
11 years ago