Commit Graph

709 Commits

Author SHA1 Message Date
Neil Booth
f2f19aeffc Cast verbose to int for daemon RPC
Fixes #506
2018-07-03 18:16:41 -07:00
Neil
2cb89814b6
Force verbose to be a boolean (#503)
Fixes #502
2018-06-26 12:19:35 -04:00
Neil Booth
4ae6af6959 Fix typo (contributed by gabriel-samfira) 2018-06-17 12:45:28 +01:00
elmora-do
50e2785256 Update masternode doc and masternode_list rpc method (#493)
* Update protocol-methods.rst

* Error is raised if the payees is not a list in RPC method masternode_list
2018-06-13 01:30:05 +08:00
Neil Booth
46adf543fc Enforce pycodestyle in server/ 2018-06-10 18:39:12 +09:00
Neil Booth
e29b692b9d Fix typo 2018-06-10 18:21:19 +09:00
elmora-do
7baf6cf68d Add $PAC (#474)
* Add $PAC

* Refactor and improve masternode notifications
* Update DASH/$PAC RPC documentation

These RPC commands were documented:

masternode.announce.broadcast
masternode.subscribe
masternode.list
masternode.info
2018-06-06 09:15:36 +09:00
Neil Booth
2559751ead Display aiorpcX version on startup 2018-06-05 00:10:11 +09:00
Neil Booth
52658cfc9c Set the shutdown event via call_soon
Fixes #480

Require aiorpcx 0.5.6, handle ConnectionError appropriately;
this ensures the same bug would give a better error message
2018-06-04 13:22:30 +09:00
Neil Booth
69754a62eb Be more careful closing history DB
Fixes #485
2018-06-02 15:56:58 +09:00
Neil Booth
7d9ffbbed0 Minimum supported protocol version is 1.1 2018-05-29 13:31:40 +08:00
Neil Booth
e0186d7661 Move clean_db() logic to when hist DB is opened 2018-05-26 09:27:24 +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
John L. Jegutanis
c813918b8b Add version to the getinfo result (#471) 2018-05-19 01:16:02 +08:00
Neil Booth
55e060c318 RPC member is 'message' not 'msg'
Fixes #455
2018-04-25 01:04:46 +08:00
脇山P
a858b3fc2d fix height is not define (#450) 2018-04-13 23:34:05 +08:00
Neil Booth
ec2565679a Force close stale sessions that aren't closing 2018-04-12 21:43:25 +08:00
Neil Booth
0dc99d7c63 Fix RPCError import
Closes #443
2018-04-10 14:16:49 +09:00
Neil Booth
1a0eea25c3 ElectrumX 1.4.3
Close connections more aggressively on shutdown

We need VERSION in its own file, unfortunately
Fixes #442
2018-04-09 21:34:46 +09:00
Neil Booth
142aa48dbb Release 1.4.2
Requires aiorpcX 0.5.5
2018-04-09 14:41:50 +09:00
Neil Booth
f54c4e6e25 Resolve address locally if proxy and not tor
and report it correctly in peers output

Requires aiorpcX 0.5.5
Closes #301
2018-04-09 14:35:26 +09:00
Neil Booth
4eebf420e8 Cleaner shutdown
Use aiorpcX task functionality

Shut down peer sessions cleanly
2018-04-09 10:14:12 +09:00
Neil Booth
fec2ee1d8f Set PROTOCOL_MIN to 1.0
Earlier protocol versions are used by 2.9.x clients of Electrum and
Electron Cash.  They all have the local daemon vulnerability, so
it seems a good time to phase out support for those clients.
2018-04-09 09:37:07 +09:00
Neil Booth
8bf30fba0e Move server/version.py to Controller class 2018-04-09 09:37:07 +09:00
Neil Booth
837bea217a Remove controller.groups 2018-04-08 17:51:00 +09:00
Neil Booth
e92c9bd486 ElectrumX 1.4 2018-04-08 10:16:36 +09:00
Neil Booth
415552989b Fix group consolidation logic 2018-04-08 10:16:36 +09:00
Neil Booth
bc6093a8fe Fully integrate aiorpcX 2018-04-08 10:16:36 +09:00
Neil Booth
e69b1d930f Convert PeerSession to use aiorpcX 2018-04-05 15:28:46 +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
Neil Booth
c1ba211d43 Remove code appropriate for future aiorpcX
Closes #428
2018-03-26 21:20:35 +09:00
Neil Booth
a2635f4df9 Bump reported version to 1.3.1 2018-03-26 17:27:48 +09:00
Neil Booth
81141eb390 Proxy detection improvements
- don't detect in a loop.  Only detect at startup, and later if
  needed and 15 minutes has passed since the last attempt
2018-03-26 17:27:47 +09:00
Neil Booth
c11ad5d189 Bump to aiorpcX version 0.4.4
Update peers.py to not pass local_addr to proxy
2018-03-13 15:32:49 +08:00
Roman Zeyde
19565a136d Fix small typo in server/db.py (#412) 2018-03-12 17:15:55 +08:00
Neil Booth
74bc80ffbd Revert "Log from Peer Manager directly"
This reverts commit d2e6f7d75b.
2018-03-12 08:25:03 +08:00
Neil Booth
d2e6f7d75b Log from Peer Manager directly 2018-03-10 13:06:37 +08:00
Neil Booth
80fc334449 Switch to aiorpcX for SOCKS proxying. 2018-03-10 13:06:37 +08:00
Neil Booth
ebc83b4028 Import peers in main_loop
Also only if peer discovery is enabled.  It's less confusing
that way.
2018-03-10 09:48:04 +08:00
Neil Booth
5e3ab51e5e Suffix a + to version post-release 2018-03-09 08:05:13 +08:00
Neil Booth
b5e97b6d37 Log supported protocol versions 2018-03-09 08:01:31 +08:00
Neil Booth
bfca87d13a Release 1.3 2018-03-08 16:43:16 +08:00
Neil Booth
47f65ffda2 Add raw header subscriptions. 2018-03-08 16:14:03 +08:00
Neil Booth
bab8d9f915 Add server.ping RPC call 2018-03-08 14:28:57 +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
521227c2b8 coin is on the controller, unfortunately 2018-03-06 23:02:39 +08:00
Neil Booth
62220f64db Remove dead code left over from prior 2018-03-06 22:25:54 +08:00
Neil Booth
5109990ea4 Add blockchain.block.headers RPC call 2018-03-03 18:39:24 +08:00