Commit Graph

13 Commits

Author SHA1 Message Date
Justin Turner Arthur 857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
ThomasV cc1b8f4dce fix peers type 2017-09-17 16:46:24 +02:00
ThomasV 70af22c9e4 update scripts/servers to display server version 2017-09-07 09:41:21 +02:00
ThomasV ff5074207c scripts: use config in get_peers 2017-09-06 17:35:41 +02:00
ThomasV 557b2c1896 update scripts for python3 2017-09-05 15:27:08 +02:00
Neil Booth 6f1367fea6 Unify message IDs between network and interfaces
Previously network.py had its own idea of request IDs,
and each interface had its own which was sent on the wire.
The interface would jump through hoops to translate one
to the other.

This unifies them so that a message ID is passed when
queueing a request, in addition to the method and params.
network.py is now solely responsible for message ID management.

Apart from being simpler and clearer, this also should be faster
as there is much less data structure manipulation and rebuilding
happening.
2015-09-09 21:00:25 +09:00
Neil Booth cd83b93e98 Return the result not the full dictionary 2015-08-31 18:26:14 +09:00
Neil Booth be8a87c322 Remove redundant line 2015-08-31 17:48:03 +09:00
Neil Booth 2a1b717a21 Fix scripts/peers
Needed an almost complete rewrite now we use select.
2015-08-31 17:44:50 +09:00
ThomasV 4bce96526b follow up to c07e956127 2015-05-05 14:59:56 +02:00
Neil Booth c07e956127 Pass the response_queue to the constructor, not start().
Removes an unnecessary Thread base-class override.  The python
documentation also strongly discourages overriding anything other
than run().
2015-05-05 20:37:25 +09:00
Neil Booth 9cf2eff16b Make is_connected into a member function. No change in logic. 2015-05-05 20:00:10 +09:00
ThomasV 43c8fd43c4 update peers and txradar scripts 2014-09-15 14:52:28 +02:00