Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Better structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFangX committed Mar 12, 2016
1 parent bb67cb6 commit 6bf5583
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
13 changes: 7 additions & 6 deletions coinparty/peer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
class State:

def __init__(self):
self.mixing_peers = set()
self.input_peers = set()
from coinparty.components import State


def start():

return State()


def ping(state, request):

# return self_message(request.sender, response)
return True
19 changes: 19 additions & 0 deletions components.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class State:

def __init__(self):
self.mixing_peers = set()
self.input_peers = set()


class MixingPeer:

def __init__(self, location, index):
self.location = location
self.index = index


class InputPeer:

def __init__(self, location, index):
self.location = location
self.index = index

0 comments on commit 6bf5583

Please sign in to comment.