Neil Booth
22c75a6216
Remove deprecated "with await" syntax
2018-02-11 22:10:07 +08:00
ThomasV
2d7403f2ef
New protocol: ( #330 )
...
- add method mempool.get_fee_histogram
- bump protocol version to 1.2
2018-01-20 08:51:38 -04:00
Neil Booth
7126864052
Wait for mempool to sync before starting external servers
...
Closes #335
2018-01-12 15:26:12 +08:00
TheLazieR Yip
e61490a5ba
Remove support for Electrum-Dash 2.6.4 ( #347 )
2018-01-11 18:50:04 +08:00
TheLazieR Yip
a6e466e37e
Update DashElectrumX follow notification process of ElectrumX. ( #346 )
2018-01-11 18:05:18 +08:00
Neil Booth
e5b4f5f316
Change read_tx interface of deserializer
...
Most callers didn't want the hash, so create a separate call
that does both. Add a new call that returns the TX and its vsize.
2018-01-11 15:45:10 +08:00
Neil Booth
b01139bb93
Don't iterate over mempool_statuses
...
Fixes #321
2017-11-28 18:56:36 +09:00
Neil Booth
ddf65fa9c2
Don't send notifications to LocalRPC sessions
...
Fixes #320
2017-11-28 18:51:49 +09:00
Neil Booth
cb33dd115f
Clean up client notifications
...
- mempool informed of new block; it notifies controller synchronously
- controller notifies sessions synchronously
- sessions are notified of new height synchronously. Any address touch
notifications are returned to the controller and scheduled
asynchronously.
Also, remove a redundant notification of height on initial header
subscriptions - the subscription response gives the current height;
we also used to send a notification as we didn't update our idea
of notified height.
2017-11-27 18:22:32 +09:00
Neil Booth
c764d1de18
Tweak mempool code
...
Precede 2 private functions with _. Removed unused arg.
2017-11-27 17:05:31 +09:00
Neil Booth
bcb36e0cb4
Prepare 1.2.1
2017-11-27 16:36:31 +09:00
Neil Booth
35dd1f6199
Remove IRC support
2017-11-27 15:05:42 +09:00
Neil Booth
72fce87088
Put server_features() on the environment object
...
Fixes #302
2017-11-16 20:14:49 +00:00
SomberNight
e2b15d7fe1
fix: estimatesmartfee when there is no feerate from daemon ( #306 )
2017-11-04 00:21:46 +07:00
SomberNight
8293da1e10
use estimatesmartfee for fee estimation ( #300 )
...
* use estimatesmartfee for fee estimation, in case of BitcoinSegwit
* use estimatesmartfee in daemon if available
* daemon._is_rpc_available() now catches DaemonError instead of using HTTP error code
2017-11-01 15:30:27 +07:00
Neil Booth
cf99f733d9
Remove the get_proof RPC.
...
The client will get an unknown method error message instead.
2017-10-15 16:27:10 +09:00
Neil Booth
74cb4c2f45
Require Python 3.6
2017-10-14 11:51:11 +09:00
Neil Booth
9bf220dec6
Widen min and max columns
2017-10-12 14:19:28 +09:00
Neil Booth
e039ba4b15
Prepare 1.2
2017-10-12 14:11:11 +09:00
Neil Booth
56d03625f6
Keep P2PK scripts separate from P2PKH scripts
...
This makes the DB incompatible with prior versions,
so the DB version is bumped.
2017-10-12 14:02:22 +09:00
Neil Booth
1cf084fb69
Prepare 1.1.2
2017-10-12 14:02:22 +09:00
Neil Booth
346385680e
Fix listunspent methods to remove mempool spends
...
Fixes #277
2017-10-12 13:56:46 +09:00
Neil Booth
81947d796b
Enhance PEER_DISCOVERY environment variable
...
It is now tri-state - ON, OFF or SELF.
Fixes #287
2017-10-11 13:54:13 +09:00
Neil Booth
7fa7d290ca
Prepare 1.1.1
2017-09-28 09:05:51 +08:00
Neil Booth
3e376a79eb
Rename lib/env to lib/env_base
2017-09-28 08:57:44 +08:00
Neil Booth
366c556c5f
Split out lib/server_base.py
2017-09-28 08:56:12 +08:00
Neil Booth
ae03ea6cb6
Add env object for wallet engine
...
Split out common Env parts to a base class.
2017-09-21 18:16:37 +08:00
cipig
b16a4f5a94
fix DASH set_protocol_handlers ( #271 )
...
fix NameError: name 'masternode_announce_broadcast_1_0' is not defined
2017-09-21 09:32:42 +08:00
Luke Childs
0e6b59eb92
Add ALLOW_ROOT option ( #268 )
...
* Add ALLOW_ROOT option
* Document ALLOW_ROOT option
* Update controller.py
* Update ENVIRONMENT.rst
2017-09-20 08:14:06 +08:00
Neil Booth
131344715a
Minor environment variable improvements
...
- COIN and NET strip surrounding whitespace
- new environment variable RPC_HOST, similar to HOST, but
for RPC. Permits fine-grained control of which addresses
the RPC server listens on.
- HOST and RPC_HOST strip surrounding whitespace from hostnames
and IP addresses
- tests and documentation updated to match
2017-09-09 22:00:54 +09:00
Justin Turner Arthur
0c2e5c6368
Minor optimizations to Bitcoin tx processing ( #214 )
...
* Construct unpacking functions for byte format up front to save time
wasted on parsing format string every iteration.
* Store length ahead of time as the overhead adds up.
* Reduce object attribute lookups in hash functions.
* Clean up lib pkg API changes. Unit test new "public" API members.
Underscore prefix for internal hash module funcs. Make bytes.fromhex a
public function.
* Document recent performance findings.
2017-09-09 11:06:46 +07:00
Neil Booth
8cfa42ed9c
Prepare 1.1
2017-09-09 10:51:43 +09:00
Neil Booth
2f69aaa487
Remove dead code
2017-09-09 10:39:13 +09:00
Neil Booth
305fd89740
Stop persisting peers; resdiscover on restart
2017-09-08 17:39:48 +09:00
Neil Booth
40fa79da63
Remove exception for onion peers
...
Like clearnet peers, they are only returned in server.peers.subscribe
if there was a successful connection.
2017-09-08 17:31:46 +09:00
Neil Booth
9dd5541f82
RPCError has msg member, not message
2017-09-08 17:02:37 +09:00
Neil Booth
f723455992
Prepare 1.1pre2
2017-09-08 11:28:23 +09:00
Neil Booth
4f5a219438
Dash: return errors in JSON error field for protocol 1.1
2017-09-08 11:09:30 +09:00
Neil Booth
06693c5880
Fix handling of failed transaction broadcast
2017-09-08 10:55:09 +09:00
Neil Booth
794e1d86ff
Peerdisc: handle protocol 1.1 server.version replies
2017-09-07 17:03:17 +09:00
Neil Booth
c1c4906fba
Prepare 1.1pre1
2017-09-07 14:16:22 +09:00
Neil Booth
3cc5b5ea43
Make COIN env variable mandatory.
...
- make a clean split between the Cash and Segwit flavours of bitcoin
by giving them their own COIN names. They can then both have a NET
of mainnet.
- The previous Bitcoin COIN names no longer exist, and the env var is
now mandatory, so everyone will need to set COIN and NET appropriately
for their flavour of bitcoin and mainnet or testnet.
2017-09-07 13:53:44 +09:00
Neil Booth
2684f3b888
Require protocol_version to be given if >= 1.1
2017-09-07 13:20:39 +09:00
Neil Booth
09783aeacc
Accept protocols down to 0.9 for Electrum 1.x clients
...
Fixes #248
2017-09-07 13:13:47 +09:00
Neil Booth
2a955a922a
Improved handler handling
...
- move server.donation_address to the session from controller
- session controls handler map, no longer lives partly on controller
2017-09-07 13:13:34 +09:00
Neil Booth
a978ca6df7
Permit HOST to be a comma-separated list.
...
Update documentation to match.
2017-09-06 20:19:59 +09:00
Neil Booth
37c15f7018
Show protocol version in sessions RPC call
2017-09-06 18:14:52 +09:00
Neil Booth
f2f2b1e7b6
Update protocol documentation
2017-09-06 17:56:23 +09:00
Neil Booth
9c25685eb9
Handle client protocol range requests.
...
Add more tests.
2017-09-06 17:11:18 +09:00
Neil Booth
e7601a23cd
Implement other address methods for scripthash
2017-09-06 16:41:14 +09:00