Commit Graph

229 Commits

Author SHA1 Message Date
AmiT177
1da936a59b Added HOdlcoin support. (#350)
* Added HOdlcoin support.

* Update coins.py

* HOdlcoin block test
2018-01-19 04:49:48 -04:00
Neil Booth
81a08d13ac Fix recursion in prior commit 2018-01-11 15:57:26 +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
Rhett Creighton
4dd226f9c0 Add Zclassic (#337)
* Add Zclassic with EquihashMixin
2018-01-02 08:23:30 +08:00
Lucas Betschart, Hyperion Capital
14a12e8842 Add Feathercoin (#336) 2018-01-01 12:24:42 +08:00
cipig
f236446e7c add CHIPS (#326) 2017-12-06 22:51:25 +09:00
Neil Booth
4558e0d8ef Replace obsolete BCH peer 2017-11-27 15:14:40 +09:00
Neil Booth
35dd1f6199 Remove IRC support 2017-11-27 15:05:42 +09:00
Neil Booth
509069cce4 Add ScryptMixin and use it 2017-11-27 14:22:54 +09:00
Duke Leto
02438e488d Add Hush using the shiny new EquihashMixin (#319) 2017-11-27 10:39:01 +09:00
cipig
1888a03577 add Komodo and Monaize (#318)
* add KMD

* KMD testblock

* clear peers

* add MNZ (KMD assetchain)

* fix mixin
2017-11-27 06:32:38 +09:00
Extrememist
18fc3d755e Updates (#317) 2017-11-25 07:30:08 +00:00
53r63rn4r
34d69eaed8 Clear peers for sibcoin (#316) 2017-11-17 12:09:21 +00:00
53r63rn4r
2e12dcfdef Added support for sibcoin, changed decode message in jsonrpc (#314)
* Added support for sibcoin, changed decode message in jsonrpc

* Revert decode message in jsonrpc
2017-11-17 03:03:57 +00:00
脇山P
9c834d6091 Add support for Monacoin testnet and update mainnet peers (#310) 2017-11-14 08:28:34 +09:00
John L. Jegutanis
f3fea9f8ee Equihash POW abstraction and Bitcoin Gold support (#311)
* Extract the Equihash mixin from Zcash

The extracted EquihashMixin and DeserializerEquihash are used when
the Equihash POW support is needed but the Zcash transaction parsing
is not.

* Add Bitcoin Gold support

* Minor formatting fixing
2017-11-14 08:27:57 +09:00
Neil Booth
8c9731f0ad Update BCH server list 2017-11-08 12:45:43 +09:00
Willmar Knikker
159db3f8e7 Add electrum-ltc.wilv.in to Litecoin Peers. (#299) 2017-10-29 17:52:40 +07:00
Neil Booth
c9b9e920f6 Compplete tests for lib/util.py 2017-10-15 18:02:18 +09:00
Neil Booth
5c7bf3cce9 Try and fix Viacoin 2017-10-14 12:20:14 +09:00
Sergii Vakula
9303153150 Add support for Emercoin (#284)
* Add parameters for emercoin.

* Add tests for emercoin.

* add block for test new read_header function

* add to daemon https protocol support
2017-10-13 10:12:24 +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
Jason (koad) Zvaniga
585e7be004 Add support for Canada eCoin mainnet. (#285) 2017-10-07 06:54:04 +09:00
SomberNight
aeccdc0cd9 update peers for BitcoinSegwitTestnet and BitcoinCashTestnet (#283) 2017-10-06 15:28:11 +09:00
Neil Booth
05d6351686 Strip boolean environment variable strings
Update tests
2017-10-05 18:01:45 +09:00
cryptcoin-junkey
47d54b1103 [Monacoin] Append the new seed node. (#280)
electrum-mona.bitbank.cc (tcp/ssl).

More info is in their technical blog entry (in Japanase).
https://bitbank.cc/blog/engineer20171005/
2017-10-05 16:49:42 +09:00
cipig
67d4641072 update EMC2 (#279)
EMC2 needs DeserializerSegWit to sync, also WIF_BYTE changed according to https://github.com/emc2foundation/einsteinium/blob/0.13_master_EMC2/src/chainparams.cpp#L132
2017-10-04 17:43:15 +09: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
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
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
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
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
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
9c25685eb9 Handle client protocol range requests.
Add more tests.
2017-09-06 17:11:18 +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
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
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
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