Skip to content

Commit

Permalink
fix: pyflakes F841
Browse files Browse the repository at this point in the history
local variable name is assigned to but never used

Ref: http://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes
  • Loading branch information
sbellem committed May 15, 2018
1 parent 3cbdaa9 commit cef8de2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions honeybadgerbft/core/honeybadger.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def aba_bcast(o):
broadcast(('ACS_ABA', j, o))

aba_recvs[j] = Queue()
aba = gevent.spawn(binaryagreement, sid+'ABA'+str(j), pid, N, f, coin,
aba_inputs[j].get, aba_outputs[j].put_nowait,
aba_bcast, aba_recvs[j].get)
gevent.spawn(binaryagreement, sid+'ABA'+str(j), pid, N, f, coin,
aba_inputs[j].get, aba_outputs[j].put_nowait,
aba_bcast, aba_recvs[j].get)

def rbc_send(k, o):
"""Reliable broadcast operation.
Expand Down
25 changes: 14 additions & 11 deletions honeybadgerbft/crypto/ecdsa/ecdsa_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,20 @@ def main():
# ethalone keys
ec_secret = '' + \
'a0dc65ffca799873cbea0ac274015b9526505daaaed385155425f7337704883e'
ec_private = '308201130201010420' + \
'a0dc65ffca799873cbea0ac274015b9526505daaaed385155425f7337704883e' + \
'a081a53081a2020101302c06072a8648ce3d0101022100' + \
'fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f' + \
'300604010004010704410479be667ef9dcbbac55a06295ce870b07029bfcdb2d' + \
'ce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a6' + \
'8554199c47d08ffb10d4b8022100' + \
'fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141' + \
'020101a14403420004' + \
'0791dc70b75aa995213244ad3f4886d74d61ccd3ef658243fcad14c9ccee2b0a' + \
'a762fbc6ac0921b8f17025bb8458b92794ae87a133894d70d7995fc0b6b5ab90'

# TODO: cleanup ... variable ``ec_private`` is unused but its value may
# be of some use, so leaving there for now.
# ec_private = '308201130201010420' + \
# 'a0dc65ffca799873cbea0ac274015b9526505daaaed385155425f7337704883e' + \
# 'a081a53081a2020101302c06072a8648ce3d0101022100' + \
# 'fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f' + \
# '300604010004010704410479be667ef9dcbbac55a06295ce870b07029bfcdb2d' + \
# 'ce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a6' + \
# '8554199c47d08ffb10d4b8022100' + \
# 'fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141' + \
# '020101a14403420004' + \
# '0791dc70b75aa995213244ad3f4886d74d61ccd3ef658243fcad14c9ccee2b0a' + \
# 'a762fbc6ac0921b8f17025bb8458b92794ae87a133894d70d7995fc0b6b5ab90'

k = KEY()
k.generate(ec_secret.decode('hex'))
Expand Down

0 comments on commit cef8de2

Please sign in to comment.