Commit Graph

1065 Commits

Author SHA1 Message Date
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
255b88388a Update protocol docs for "height".
Closes #269
2017-09-21 18:27:11 +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
accbdf6884 Update TX_ stats for BitcoinCash 2017-09-12 21:54:06 +09:00
cryptcoin-junkey
ac8e394114 Support BitZeny. (#260)
* Update coins.py

Signed-off-by: Cryptcoin Junkey <cryptcoin.junkey@gmail.com>

* change default settings bitzeny

Signed-off-by: Cryptcoin Junkey <cryptcoin.junkey@gmail.com>

* Update coins.py

Signed-off-by: Cryptcoin Junkey <cryptcoin.junkey@gmail.com>
2017-09-12 17:02:11 +07:00
cryptcoin-junkey
4b7ab9c032 Fix WIF_BYTE for Monacoin (#259)
WIF_BYTE was changed \xb2 to \xb0 since Monacoin-core develop-0.10 brance.
2017-09-12 07:35:37 +07: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
9d853cf190 Refresh hard-coded peer lists 2017-09-08 17:47:34 +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
f4cc1e2926 Fix protocol version reported in server.peers.subscribe
- new library function protocol_version_string() with tests
- remove ad-hoc class functions

Fixes #251
2017-09-08 10:54:56 +09:00
Neil Booth
7349bef13f Fix doc typos 2017-09-08 10:21:46 +09:00
SomberNight
79a065a398 fix typos in changelog for Version 1.1pre1 (#253)
* fix typos in changelog for Version 1.1pre1

* found another typo (priveleged -> privileged)
2017-09-08 08:19:04 +07:00
Neil Booth
794e1d86ff Peerdisc: handle protocol 1.1 server.version replies 2017-09-07 17:03:17 +09:00
Neil Booth
af9c82dbdb Doc updates 2017-09-07 17:00:39 +09:00
Neil Booth
8f004785af Update tests for COIN changes 2017-09-07 14:26:16 +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
SuBPaR42
6e357a53c8 Updated Server Name for Bitcoin-Segwit (#247)
A better (long-term) server address.
2017-09-07 11:31:30 +07:00
Anoxy
76581c3b4e Added support for Bitbay (BAY) (#249)
Added support for Bitbay (BAY)
2017-09-07 11:30:07 +07: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
Neil Booth
135ab68f74 Simple protocol negotiation and setting of handlers
It turns out clients pass 0.10 instead of 1.0 as the protocol version.
Distinguish some handlers for 1.0 and 1.1 protocols.
Log protocol version request
Add tests of new library function
2017-09-06 16:24:56 +09:00
Neil Booth
eb91522d20 Merge remote-tracking branch 'github/master' 2017-09-06 15:29:32 +09:00
EagleTM
80f1a8edc0 Update HOWTO.rst: Add iptables example for running on privileged port (#245) 2017-09-02 16:26:46 +07:00
Neblio Team
2a6fa0489e Add Neblio support to electrumx (#240)
* add neblio

* update daemon & deserializer and add header_hash

* remove LegacyRPDaemon usage for Neblio

getblock() RPC was updated in nebliod to eliminate the need for LegacyRPCDaemon support in electrumx
2017-09-01 08:22:44 +07:00
Neil Booth
f8a838c589 Add "hash_function" member to server.features.
Update documentation
2017-08-26 15:37:59 +09:00
Neil Booth
efe86c67f2 Exclude tests directory from installation
Fixes #223
2017-08-26 15:05:50 +09:00
Neil Booth
137236712f Add EVENT_LOOP_POLICY environment variable
Based on #215 by JustinTArthur.

- Accept EVENT_LOOP_POLICY of uvloop
- Move initilisation from electrumx_server to controller
- SocksProxy now requires a loop
- Update tests
2017-08-26 14:03:02 +09:00
Neil Booth
1f3e942cbc Some further cleanup 2017-08-26 12:47:47 +09:00
John L. Jegutanis
885872f0b5 Various improvements (#233)
* Fix formatting

* Refactor daemons

Replaced FujiDaemon with FakeEstimateFeeDaemon that simulates estimate
fee calls and provide the same functionality.
Removed the parameter False for LegacyRPCDaemon's getblock RPC call as
it is not needed.

* Fix Crown coin P2SH_VERBYTES and add REORG_LIMIT
2017-08-26 12:33:20 +09:00
Neil Booth
3d4d382178 Remove 2 segwit peers from Bitcoin cash list 2017-08-24 23:54:28 +09:00
Neil Booth
e5101e4757 Change the not.fyi server on request 2017-08-22 21:13:11 +09:00