Neil Booth
f30090a321
Use network to get local height
9 years ago
Neil Booth
f11e46e479
Remove unused import
9 years ago
Neil Booth
be7cb011a3
Simply verifier now network is in-process
9 years ago
Neil Booth
2d05e7d891
Merge the network and network_proxy
9 years ago
Neil Booth
351272f0b6
Small optimization for large wallets
Previously the verifier job would scan all transactions in
unverified_tx each time it ran.
Nothing was ever removed from this map; it would essentially
be the full set of transactions.
As the job runs about 10 times a second, for a wallet with 500 txs
this would be 5,000 useless loops a second.
This patch makes unverified_tx be simply the set of confirmed
transactions that haven't yet been verified. txs are added once
confirmed, and removed once verified. Hence it will almost always be
empty.
9 years ago
Neil Booth
9455815ad0
Merge requested_merkle and merkle_roots.
9 years ago
Neil Booth
b64c42b1eb
Make the verifier a thread job instead of a thread
The verifier, like the synchronizer, now runs as part of the
network proxy thread.
9 years ago
Neil Booth
a056f9804b
Notify when a chunk of headers is validated
And a couple of cosmetic changes.
This should fix #1379 .
9 years ago
Roman Zeyde
cb4d3a78b4
verifier: fix typo
10 years ago
Neil Booth
37c3cce329
Remove wallet.get_transactions()
Because references are returned, it's not threadsafe as ThomasV
pointed out.
10 years ago
Neil Booth
a47881d72b
Move the verified and unverified txs to the wallet.
10 years ago
Neil Booth
79de458101
Preparation for moving the set of verified and unverified txs to the wallet.
The verifier will retain responsibility for verification, but will no longer
hold the transaction sets itself.
Change requires_fee to take a wallet.
Add new function add_unverified_tx()
Move get_confirmations() to the wallet from the verifier.
10 years ago
ThomasV
b2a13dbd9c
remove unused imports
10 years ago
ThomasV
5b8588ee90
rename spv class, use own 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
ThomasV
247f4944a6
do not store merkle root before verification succeeded. keep it in requested_merkle for the session
11 years ago
ThomasV
4f56cda0c3
do not stop thread if a tx is not verified
11 years ago
ThomasV
47b71eebfb
shorter timeout: verifier too
11 years ago
ThomasV
fb0574c5a0
fix callbacks
11 years ago
ThomasV
37127e563b
fix #750
11 years ago
ThomasV
b4bed1ccaa
remove blockchain object from verifier
11 years ago
ThomasV
2321cb9bb3
print less debug messages
11 years ago
ThomasV
1f13b2f4f3
network.send method
11 years ago
thomasv
b75f8d795a
new command: getrawtransaction
11 years ago
ThomasV
907dca6eb9
simplify interface: use callbacks
11 years ago
thomasv
74735bd64e
minor fixes
11 years ago
thomasv
047e4b3478
move callbacks to the network class
11 years ago
thomasv
2a6e8927dd
select the longest blockchain from several servers
11 years ago
ThomasV
e9b103b283
fix regressions in tx verifier
11 years ago
ThomasV
d47892b690
separate blockchain verifier from transaction verifier
11 years ago
ecdsa
c95c80163d
distinction between unconfirmed and unverified transactions
12 years ago
ecdsa
5cc05b0685
fix: verified tx contains pos
12 years ago
ecdsa
cac030e2ee
fix transaction order in history
12 years ago
thomasv
3b80ef7c60
rely only on the verifier to get the height of transactions
12 years ago
thomasv
bdb515dabd
print error received by verifier, and continue
12 years ago
thomasv
94e5263486
updating url for headers file
12 years ago
ThomasV
4dcac08ccf
trigger synchronize when block height is received
12 years ago
Eagle[TM]
12cc65abbd
add sockettimeout to header download by HTTP
12 years ago
thomasv
72b4ac97d0
use portable flag on android instead of explicit path for headers file. use urllib.retrieve()
12 years ago
thomasv
e2a2596479
fix: case where wdir path is empty (portable wallet)
12 years ago
thomasv
ba39f8bec0
do not bundle blockchain headers with packages
12 years ago
thomasv
16a81271e4
store timestamps in verifier
12 years ago
thomasv
108dfb6140
revert to daemon threads because some clients do not seem to close their sockets cleanly
12 years ago
ThomasV
9afbf21197
no daemon
12 years ago
ThomasV
0ad7f72d3d
nodaemon
12 years ago
thomasv
8ec2b16e21
use None as timestamp for pending transactions
12 years ago
thomasv
8fc042ee22
more fixes for the 0.6 servers
12 years ago
ThomasV
cc2ef02c2b
gui fixes
12 years ago