Skip to content

Commit 6ade81f

Browse files
committed
Fix trying to iterate through a int
1 parent 4ab3948 commit 6ade81f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bitHopper/LongPoll_Listener/Learning.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ def extract_vector(current_block):
5757

5858
def calculate_block(current_block):
5959
print 'calculate block called'
60-
if len(weights) != len(extract_vector(current_block)):
61-
print 'Lengths do not match'
62-
print weights, extract_vector(current_block)
63-
if sum(vec_mult(weights, extract_vector(current_block))) > 0:
60+
if vec_mult(weights, extract_vector(current_block)) > 0:
6461
print 'triggered'
6562
btcnet_info.get_pool('deepbit').namespace.get_node('shares').set_value(0)
6663
#Reset shares on deepbit

0 commit comments

Comments
 (0)