Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Fix declare of variable #951

Merged
merged 30 commits into from
Oct 13, 2022
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7a76e47
adjust none end calculation
camfairchild Oct 5, 2022
049f05e
attempt to fix stop issue
camfairchild Oct 5, 2022
9bb48ff
modify stop
camfairchild Oct 5, 2022
3da133e
update nonce_start by correct amount
camfairchild Oct 7, 2022
418b3a4
fix nonce init to only random and update
camfairchild Oct 7, 2022
fed88a3
fix update amount
camfairchild Oct 7, 2022
8b0883c
add start values
camfairchild Oct 7, 2022
d6510d5
add test
camfairchild Oct 7, 2022
bf00515
try different hashrate calc
camfairchild Oct 9, 2022
1d0ecd2
try EWMA for hash_rate
camfairchild Oct 11, 2022
a20e992
oops bad import
camfairchild Oct 11, 2022
241f621
change name to worker
camfairchild Oct 11, 2022
cbd632c
extract helper and modify comment
camfairchild Oct 11, 2022
4f46cd9
fix time now
camfairchild Oct 11, 2022
4e86b5b
catch Full
camfairchild Oct 11, 2022
bd04152
Prometheus bug fix (#942)
Eugene-hu Oct 11, 2022
3a76a79
use a finished queue instead of times
camfairchild Oct 11, 2022
9ba253f
move constants to function params
camfairchild Oct 11, 2022
f09a2f0
[Fix] only reregister if flag is set (#937)
camfairchild Oct 12, 2022
c983aab
fix name of n
camfairchild Oct 12, 2022
7669faa
Merge branch 'nobunaga' into fix/3.3.4/multi_cuda_fix
camfairchild Oct 12, 2022
4579ba9
[BIT 584] [feature] btcli register output stats not in place (#923)
camfairchild Oct 12, 2022
5970ca2
Merge branch 'nobunaga' into fix/3.3.4/multi_cuda_fix
camfairchild Oct 12, 2022
945b766
fix verbose log
camfairchild Oct 12, 2022
bf97943
allow --output_in_place
camfairchild Oct 12, 2022
da5d1b1
fix n
camfairchild Oct 12, 2022
304adbb
change to --no_ouput_in_place
camfairchild Oct 12, 2022
147e853
fix test
camfairchild Oct 12, 2022
ce00e6d
Merge branch 'release/3.4.0' into fix/3.3.4/multi_cuda_fix
camfairchild Oct 13, 2022
e059531
fix ref to solution
camfairchild Oct 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bittensor/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ def solve_for_difficulty_fast( subtensor, wallet, output_in_place: bool = True,
logger.start()

solution = None
hash_rate = 0 # EWMA hash_rate (H/s)

hash_rates = [0] * n_samples # The last n true hash_rates
weights = [alpha_ ** i for i in range(n_samples)] # weights decay by alpha
Expand Down Expand Up @@ -746,6 +745,7 @@ def update_curr_block(block_number: int, block_bytes: bytes, diff: int, lock: mu
hash_rates = [0] * n_samples # The last n true hash_rates
weights = [alpha_ ** i for i in range(n_samples)] # weights decay by alpha

solution = None
while not wallet.is_registered(subtensor):
# Wait until a solver finds a solution
try:
Expand Down