Commit Graph

1044 Commits

Author SHA1 Message Date
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
Neil Booth
d324bdc0d1 Prepare 1.0.17 2017-08-21 23:41:30 +09:00
Neil Booth
fab3f5affe Have proxy.create_connection use kwargs
Fixes #227
2017-08-21 23:38:54 +09:00
Neil Booth
ab62092afc Add note about new NET assignments. 2017-08-21 20:59:51 +09:00
Neil Booth
7442bad66c Prepare 1.0.16 2017-08-21 20:52:02 +09:00
Neil Booth
00504b695a Split peer lists post fork 2017-08-21 20:30:21 +09:00
Neil Booth
4d2456e4b4 Explicitly bind to both IPv4 and IPv6. 2017-08-21 20:07:08 +09:00
mmouse-
69c1535d13 Use our listening Host/IP for outgoing connections also (#226)
Explicitely set the local IP for outgoing connections, if we're listening
on only one Hostname or IP (of a multi-IP machine). This makes sure our
peers see our outgoing connections coming from the same IP that we're
listening on when we have a specific HOST= configured.

For machines with more than one IP this avoids source-destination
mismatch errors when advertizing our peer. Resolves kyuupichan/electrumx#225
2017-08-21 05:47:05 +07:00
Kefkius
59d8421c87 Fix KeyError on incorrect genesis hash (#224)
Fix KeyError that occurs when creating an exception for an incorrect genesis hash.
2017-08-20 05:31:55 +07:00
FujiCoin
b4ac4b6a05 Add Fujicoin (#218)
* Add Fujicoin

* Add explanation of FujiDaemon
2017-08-18 15:05:54 +07:00
sam
5b475751f1 Correct 'seessions' (sessions) (#220) 2017-08-13 07:29:20 +07:00
cryptcoin-junkey
761213607c Add PEERS to Monacoin. (#219) 2017-08-12 10:27:00 +07:00
Extrememist
2031e88c20 Add Crown (#217)
* Add Crown

* Fix Parse
2017-08-11 07:05:19 +07:00
Riccardo Casatta
97ec00338d Adding regtest parameters (#213) 2017-08-04 23:12:34 +09:00
Neil Booth
620ee35af9 Merge branch 'master' of github.com:kyuupichan/electrumx 2017-08-03 23:13:23 +09:00
Neil Booth
f65fa2fd19 Update server list for BCC servers. 2017-08-03 23:12:56 +09:00
Neil Booth
92ba67037f Use None instead of localhost
See #211.  Some don't have localhost mapped, and
we should also bind to IPv6 interfaces.

Thanks to gaoyaxing24 for testing.
2017-08-02 16:54:58 +09:00
Justin Turner Arthur
28764936c4 Remove semicolons and a couple unused variables. (#212) 2017-08-02 15:55:44 +09:00
cryptcoin-junkey
ecad494f28 Add Monacoin. (#210)
Signed-off-by: Cryptcoin Junkey <cryptcoin.junkey@gmail.com>
2017-08-02 15:32:16 +09:00
Neil Booth
23b121e799 Prepare 1.0.15 2017-07-30 21:38:51 +09:00
Neil Booth
75feac5d1e Check prior header hashes to detect forks 2017-07-30 21:32:41 +09:00
Neil Booth
f696a7933d Prevent unnecessary copying of raw blocks 2017-07-30 20:47:54 +09:00