Commit Graph

16 Commits

Author SHA1 Message Date
Vivek Teega
5fbb1d2dd2 latest upstream changes 2020-01-28 16:21:11 +00:00
John L. Jegutanis
47d9fb4b30 Use compiled structs and some code cleanup 2018-08-14 01:32:40 +02:00
John L. Jegutanis
fa0a58a280 Rename struct pack/unpack to reflect endianess 2018-08-14 01:20:26 +02:00
Neil Booth
471f50787f Add some utility functions and tests 2018-08-10 17:56:24 +09:00
Neil Booth
739bb687fc Convert PROTOCOL_MIN, PROTOCOL_MAX to tuples 2018-07-17 10:59:41 +08:00
Neil Booth
382fc5ed44 Improve logging of client version requests 2018-07-16 21:25:50 +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
b993bd8f8e Rename protocol_version_string to version_string 2018-06-05 00:07:16 +09:00
Neil Booth
bc6093a8fe Fully integrate aiorpcX 2018-04-08 10:16:36 +09:00
Neil Booth
c9b9e920f6 Compplete tests for lib/util.py 2017-10-15 18:02:18 +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
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
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
Neil Booth
3612b88e2e Permit underscores in hostnames.
Add tests.
2017-07-16 13:58:02 +09:00
Neil Booth
fde47d5739 Organise tests 2017-04-06 07:32:56 +09:00