Commit Graph

41 Commits

Author SHA1 Message Date
Neil Booth
4305e506fb Add testcase for prior 2018-11-02 14:38:52 -04:00
Neil Booth
6f43910f2d Fix daemon logging rate limiter
Based on #602 but with test fix
2018-09-23 22:46:37 +01:00
Gabriel
3a33675e11 Add TokenPay (#495)
This commit adds TokenPay as a supported coin.
2018-09-08 11:57:32 +01:00
Neil Booth
ab17b4d529 Add is_generation memeber to TxInput
Use it in preference to is_gen_outpoint
2018-09-04 17:08:19 +01:00
FABIANO S CUNHA
f5b3df9092 Add support for pivxTestnet (#585) 2018-08-18 10:51:17 +09:00
Neil Booth
44e715e6c9 Fix test_daemon 2018-08-18 10:34:57 +09:00
FABIANO S CUNHA
60d4ae52f7 Add support for Decred Testnet (#580)
* Add decred Testnet support
2018-08-17 18:15:38 +09:00
FABIANO S CUNHA
6dd7049339 Add support for BitcoinGreen (#581)
* Add support for BitcoinGreen
2018-08-17 09:57:46 +09:00
Neil Booth
b1eec85be8 Remove bad test
No one knows what the compact fee rules are...
2018-08-16 22:35:09 +09:00
Neil Booth
ba5d18d9d5 Fix randrange bug
Also make seed change daily only
2018-08-16 22:31:32 +09:00
John L. Jegutanis
a6d46fab8d Improve generation inputs handling
Fixes #570
2018-08-16 15:02:56 +02:00
Neil Booth
f0a2f128dc Merge branch 'devel' 2018-08-14 12:58:52 +09:00
Neil Booth
374ec8f26c Add daemon tests 2018-08-14 12:43:33 +09:00
John L. Jegutanis
47d9fb4b30 Use compiled structs and some code cleanup 2018-08-14 01:32:40 +02:00
Neil Booth
39f97cef90 Add comprehensive mempool tests 2018-08-11 16:15:55 +09:00
Neil Booth
f7c95986bf Fix failing test 2018-07-20 17:14:47 +08:00
Neil Booth
a3d3bbe9a7 Move more code out of controller to sessions
Disable a test that will require significant work
2018-07-17 20:20:28 +08:00
Neil Booth
739bb687fc Convert PROTOCOL_MIN, PROTOCOL_MAX to tuples 2018-07-17 10:59:41 +08:00
Neil Booth
73a46df17f Remove hash_to_str 2018-07-14 21:48:58 +08:00
Lex Berezhny
f8ebcf35b4 Env accepts custom Coin class (#517)
* + support for passing an actual coin class to Env()

* unit test for Env() accept coin class

* doc string explaining optional Coin argument to Env and assert to make sure a coin is a Coin
2018-07-11 08:48:57 +08:00
Neil
c28b5af309
Export Controller and Env from the package (#515) 2018-07-10 14:17:49 +08:00
Lex Berezhny
29289004e7 electrumx package (#511)
* moved wallet, server, lib into electrumx main module

* fixed imports and other path references affected by electrumx main package

* fixing formatting to pass the pycodetest on travis
2018-07-10 07:28:04 +08:00
Neil Booth
e88b8c0dec Update compaction test
Version -> 1.4.4pre1
2018-05-26 00:02:33 +08:00
Neil Booth
5e1ed3ffa6 Separate history management into its own object
- the object also manages unflushed history
- the history DB has its own version, starting at 0

This is the first step to making history management into
a separate service and to larger block sizes.

The next step is an improved history format, which I hope will both
save space and be a solution to issue #185.  The DB should be able to
upgrade in-place without re-syncing the chain.
2018-05-25 23:36:18 +08:00
Neil Booth
77051f83a4 Make HASHX_LEN a global, not a coin property 2018-05-22 11:44:27 +08:00
Neil Booth
bc6093a8fe Fully integrate aiorpcX 2018-04-08 10:16:36 +09:00
John L. Jegutanis
90f28314d2 Add DROP_CLIENT env variable (#432)
This will disconnect any client based on their version string,
using a regular expression.
Useful for dropping buggy/unsupported clients.
2018-04-05 06:49:56 +09:00
wilsonmeier
0f4f51d932 Changes for BTG (#409)
* Implemented electrum_header for BTG to include solution (needed for validation on clientside)
Add RPC_PORT for BTG node

* Added node regtest compatibility

* Updated unittests

* Changed chunksize and regtest rpc port

* Changed bits transfer format to decimal

* Add testnet v3 params and corrected coin name
2018-03-13 09:41:04 +08:00
dax
cf49b737d3 Enable verbose mode in blockchain.transaction.get (#397)
getrawtransaction: optional verbose mode

Update PROTOCOL.rst docs
2018-03-07 08:59:06 +08:00
Neil Booth
bf74b5f99f Fix pytest 3.3 failures 2018-01-03 10:52:18 +08:00
Neil Booth
35dd1f6199 Remove IRC support 2017-11-27 15:05:42 +09:00
Neil Booth
08b80b9306 Improve coverage of Env tests 2017-10-15 16:50:04 +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
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
Neil Booth
8f004785af Update tests for COIN changes 2017-09-07 14:26:16 +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
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
2f26e81629 Implement history compression with tests.
Still to do: running compression in background when the flush
count reaches a certain level
2017-06-18 22:59:30 +09:00
Neil Booth
d216d5111b Prepare 1.0.9 2017-04-09 14:20:17 +09:00
Neil Booth
fde47d5739 Organise tests 2017-04-06 07:32:56 +09:00
Neil Booth
f3de91180e Add tests for server/env.py 2017-04-06 07:27:48 +09:00