Skip to content

Commit

Permalink
Seperate protocol handling to its own class
Browse files Browse the repository at this point in the history
The Electrum protocol handling is now in its own file and class.
This is for better organization, and for later writing of tests
which test only the protocol handling code without needing to
create any sockets. The seperation will also be useful in future
when coding the feature to support multiple simultaneous client
connections.
  • Loading branch information
chris-belcher committed Dec 7, 2019
1 parent 3204a69 commit b7f723b
Show file tree
Hide file tree
Showing 3 changed files with 510 additions and 448 deletions.
7 changes: 7 additions & 0 deletions electrumpersonalserver/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@
from electrumpersonalserver.server.peertopeer import (
tor_broadcast_tx,
)
from electrumpersonalserver.server.electrumprotocol import (
SERVER_VERSION_NUMBER,
ElectrumProtocol,
get_block_header,
get_current_header,
get_block_headers_hex,
)
Loading

0 comments on commit b7f723b

Please sign in to comment.