Skip to content

Commit

Permalink
minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Jun 15, 2017
1 parent 90d4cc2 commit 054327e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/client_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
headersTime = {'Content-Type': 'application/json', }
dataTime = 'login=' + nodeLogin + '&password=' + nodePswd


# PROTO V0.2 HYPOTHESES
# =====================
# > Sellers nodes to which the user IS CONNECTED through the relay may differ from vendors to whom the user purchased
Expand Down Expand Up @@ -212,12 +213,10 @@
channel = relaySellersChannels[listConnectedSellers.index(seller)]
print(" > channel = " + str(channel))

# channel = 0 # TODO : use a function to define the channel
data = "{" + str(nodeChannel) + ": True, " + str(nodeChannel + 1) + ": True, " + \
str(channel) + ": True, " + str(channel + 1) + ": True}"
print(" > data = " + str(data))
fct_relay.switchChannels(data)
# currentSeller = listConnectedSellers[relaySellersChannels.index(channel)]
currentSeller = seller
print(" > update current seller : " + str(currentSeller))
break
Expand Down Expand Up @@ -257,7 +256,6 @@
currentSeller = seller
print(" > update current seller : " + str(currentSeller))


# Producer
else:
# unlock account
Expand Down

0 comments on commit 054327e

Please sign in to comment.