Neil Booth
06c8eda161
Preparations for peer discovery
...
DEFAULT_PORTS is a now a coin property.
Other miscellaneous updates to get things closer
2017-01-29 06:47:43 +09:00
Petr Kracík
5343c1a286
Changed litecoin genesis block hash ( #109 )
2017-01-22 23:41:45 +09:00
Neil Booth
15051124af
Make flushes and reorgs async
...
Apart from the flush on shutdown and the flush when caught up,
neither of which matter, this makes flushes asynchronous.
Also, block processing for reorgs is now asynchronous.
This also removes the FORCE_REORG debug envvar; I want to
put that into the RPC interface.
Closes #102
2017-01-09 16:15:17 +09:00
Neil Booth
540479ad23
Tweaks for prior; update README.
2017-01-08 12:10:56 +09:00
protonn
1aa55f2976
add digibyte and argentum ( #96 )
...
* add DigiByte and Argentum
2017-01-08 12:00:41 +09:00
Neil Booth
dcc2c92bd6
Rename NETWORK envvar to NET
...
For consistency with lib/coins.py
SegWit testnet needs its own NET
2017-01-08 10:07:58 +09:00
Neil Booth
4d62019b07
Check Genesis hash
...
Testnet RPC_PORT is 18332
2017-01-08 10:07:57 +09:00
Neil Booth
852753cb94
Implement deserialization of SegWit transactions
...
tx_hash needs to be that of the prior serialization, so
need to change internal read_block API.
Bitcoin core 0.13.1 broke backwards compat of the RPC interface.
Closes #92
2017-01-08 10:07:57 +09:00
Neil Booth
7f9cb9cd9d
Generic header length
...
If header lengths change in the future, only one function needs
to change in coins.py.
2017-01-07 11:51:12 +09:00
Neil Booth
2b2909f1c4
Move to hashX
...
The hashX of a script is the first 11 bytes of its sha256 hash.
Closes #72 .
2017-01-07 11:51:01 +09:00
Neil Booth
de201a247f
Double fetch size of mempool.
...
Set testnet genesis hash.
2017-01-07 11:51:01 +09:00
Neil Booth
8bd2e7ee06
Add constants for bitcoin testnet
2017-01-07 11:51:01 +09:00
Neil Booth
c6be118bab
Tweak Litecoin settings
2016-11-29 07:28:09 +09:00
Santzi
f1911140ef
Updated Litecoin mainnet parameters
2016-11-27 19:13:38 +02:00
Neil Booth
59733e4609
Move bitcoin-specific coin defaults to Bitcoin
2016-11-26 08:32:30 +09:00
TheLazieR Yip
dfaf36ae16
Remove header_hashes
2016-11-25 07:25:57 -05:00
TheLazieR Yip
6b63ecb439
Add header_hash and header_prevhash class methods
2016-11-25 07:25:56 -05:00
TheLazieR Yip
f075f0bb5f
Add coin's IRC parameters
2016-11-23 08:15:03 +07:00
TheLazieR Yip
5aae539476
Add DEFAULT_RPC_PORT for DASH
2016-11-20 19:11:22 +07:00
Neil Booth
87cdd2709d
Implement daemon failover
...
Daemon URLs can be comma-separated in the DAEMON_URL env var.
Surrounding whitespace is stripped.
http:// is preprended if missing.
The coin's default port is supplied if missing.
A trailing / is supplied if missing.
Closes #33
2016-11-20 20:52:54 +09:00
Neil Booth
66c493dbf4
Make the default reorg_limit a coin property
2016-11-18 19:21:38 +09:00
Neil Booth
85786b87a2
Save all UTXOs
...
Change the DB version
2016-11-13 20:35:03 +09:00
Neil Booth
fdb5b33fba
Prepare 0.4.2
2016-11-13 15:37:51 +09:00
TheLazieR Yip
66bf2570e5
Move dash stuff into Dash class
...
Modify DashTestnet class to use Dash class
2016-11-13 08:56:26 +07:00
TheLazieR Yip
ff834519aa
Update for DASH
...
- Update information for both mainnet and testnet
- Use x11_hash module when network name is Dash to process header_hashes
2016-11-13 00:51:53 +07:00
Neil Booth
e7a516c46e
Need to catch script errors
2016-11-06 16:01:02 +09:00
Neil Booth
e2ef9dceaf
Rework assertion logic in coins.py
2016-11-06 15:34:20 +09:00
Neil Booth
3ab07c1fb6
Speed up script parsing for ~3% faster throughput
...
Also improves the coin abstraction
2016-11-06 14:32:27 +09:00
Neil Booth
c0568daec3
Rework the DB API a bit
2016-11-03 19:09:21 +09:00
Neil Booth
be2475f617
Handle utxo.get_address
2016-11-03 19:08:25 +09:00
Neil Booth
ceecdc54ac
Server work
...
Avoid touching the block preprocessor hot loop for now
2016-11-03 17:26:50 +09:00
Neil Booth
d2ebb80fac
Extend copyright notice; improve comments
2016-11-03 16:45:06 +09:00
Neil Booth
30d1b7f77c
Add proper block chaining check
2016-10-27 07:38:39 +09:00
Neil Booth
6b513a91d0
CACHE_MB is now the environment var.
2016-10-14 07:56:25 +09:00
Neil Booth
3fce298835
Better time est. A couple of fixes.
2016-10-12 18:59:15 +09:00
Neil Booth
d8e9eb7796
Accurate cache accounting
2016-10-11 17:38:03 +09:00
Neil Booth
6644102441
Use hash168 to distinguish address types in DB
2016-10-10 11:42:33 +09:00
Neil Booth
ca11710fdd
Print balance in query tool
2016-10-09 09:14:59 +09:00
Neil Booth
64b7554b73
Fix some typos
2016-10-08 17:34:12 +09:00
Neil Booth
a3dbc68614
Initial revision
2016-10-08 17:17:43 +09:00