This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |