Neil Booth
41e734caeb
Clean up controller interface with other parts
7 years ago
Neil Booth
bd636a75ad
Clean up the process of opening the DBs, make asynchronous
7 years ago
Neil Booth
a019656a5e
Make it clear where BlockProcessor is instantiated
7 years ago
Omar Cruz
227696636d
Added Motion Coin mainnet ( #528 )
* Motion added
7 years ago
Neil Booth
023e463748
Prepare 1.6
7 years ago
Neil Booth
049017aa8c
Fix doc linkage
7 years ago
Neil Booth
94d1f7a651
Save raw blocks to disk for reorg purposes
We used to rely on the daemon being able to return the
orphaned blocks, but some old daemon codebases are buggy
and fail to do so.
Fixes #258 #315 #479
7 years ago
Neil Booth
813fc09d64
Use JSON RPC terms in docs, not Python
7 years ago
Neil Booth
7ce91b1a43
Minor tweaks
7 years ago
Neil Booth
f5926cf865
Label as 1.6pre3
7 years ago
Neil Booth
391e69b66c
Introduce ChainState object
- reduces the tangle of object dependencies
- rationalizes responsibilities
7 years ago
Neil Booth
53425ce585
Move task logic to Tasks object
This helps to rationalize the inter-object
dependencies.
7 years ago
Neil Booth
22b01d4dfb
Move masternode cache.
It was mistakenly made a pylru cache...
Don't force non-Dash coins to carry the cache.
7 years ago
Neil Booth
9cf3b5358f
Move raw_header to session manager
Ultimately this stuff belongs in a ChainState object.
7 years ago
Neil Booth
b7572ce9c0
More refactoring of controller
- remove the header cache - not needed for higher protocol versions
- simplify session notification; move to session manager
- move history cache to session manager
7 years ago
Neil Booth
c8c896a14c
Minor tweaks.
7 years ago
ghost43
c7f3f7ac6d
new protocol method: blockchain.transaction.id_from_pos ( #524 )
7 years ago
Neil Booth
60435c0c06
Fix peer discovery for protocol >= 1.4
7 years ago
Neil Booth
c7f6f3ede6
Move get_utxos to session
7 years ago
Neil Booth
c712d4be32
Fix session_count invocation
(thanks to nijel)
7 years ago
Neil Booth
a3d3bbe9a7
Move more code out of controller to sessions
Disable a test that will require significant work
7 years ago
Neil Booth
0b55a3f7f2
Mark as pre2
7 years ago
Neil Booth
e41d1db25c
Create SessionManager class
Break out controller functionality for session management.
7 years ago
Neil Booth
c35c062780
Move more code to session class from controller
7 years ago
Neil Booth
063f1b2eff
Move block_get_header and estimate_fee to session
7 years ago
Neil Booth
ca777ed427
Move three more methods from the controller to session
7 years ago
Neil Booth
3dbc10bca0
Move address handlers from controller to session
7 years ago
Neil Booth
4f99f254ea
Move scripthash handlers from controller to session
7 years ago
Neil Booth
739bb687fc
Convert PROTOCOL_MIN, PROTOCOL_MAX to tuples
7 years ago
Neil Booth
c790fd567c
Move things from Controller to session class
which better belong there:
- PROTOCOL_MIN, PROTOCOL_MAX
- server_features()
- server_version_args()
- inline protocol_tuple()
7 years ago
Neil Booth
fdb34e7d25
Store session's protocol version as a tuple, not string
7 years ago
Neil Booth
5ba5d05add
Protocol 1.4: only accept a single server.version message
- remove unused self.client_version
- coerce client_name to a str
7 years ago
Neil Booth
382fc5ed44
Improve logging of client version requests
7 years ago
Neil Booth
8630c9136c
Have the header merkle cache handle reorgs
Cleanest to move the mc_cache to the block processor
7 years ago
Neil Booth
e5ea1c10e2
Update docs for raw headers.
7 years ago
Neil Booth
362499778a
Prepare 1.6pre1
7 years ago
Neil Booth
061cac51a8
Implement merkle proof for blockchain.block.headers
7 years ago
Neil Booth
46d8e0c608
Implement merkle proofs for blockchain.block.header
7 years ago
Neil Booth
20884170e6
Remove raw argument to blockchain.headers.subscribe
7 years ago
Neil Booth
0ee27970af
Update documentation for protocol 1.4
7 years ago
Neil Booth
d390b38acf
Add cache truncation and tests
7 years ago
Neil Booth
26d8026938
Increase merkle cache test coverage to 100%
7 years ago
Neil Booth
4168341857
Implement a markle cache with tests
7 years ago
Neil Booth
997a1be377
Prepare 1.5.2
7 years ago
Neil Booth
73a46df17f
Remove hash_to_str
7 years ago
Neil Booth
3c3a1b7017
Fix thinko in prior
Rename function to prevent similar mistakes in future
Also hash_to_str -> hash_to_hex_str
7 years ago
Neil Booth
c22b7d455c
Have server code use merkle library
7 years ago
Neil Booth
af45363eeb
Add merkle library with tests
7 years ago
Neil Booth
70f8d7c4b9
Partial reversion of 2cb89814b6
Fixes #523
BU, XT and other coins based on older Core code require integers
not booleans
7 years ago
Neil Booth
e1e4129e17
Prepare 1.5.1
7 years ago