Skip to content

Commit 5078145

Browse files
committed
Reverts readme changes
1 parent 493e495 commit 5078145

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,13 @@ ipython
5151

5252
then copy-past to ipython
5353
```python
54-
import bittensor as bt
5554
import numpy as np
5655
import bittensor_commit_reveal as crv3
5756
from bittensor.utils.weight_utils import convert_weights_and_uids_for_emit
5857

59-
subtensor = bt.subtensor("local")
60-
6158
uids = [1, 3]
6259
weights = [0.3, 0.7]
6360
version_key = 843000
64-
netuid = 1
65-
66-
subnet_reveal_period_epochs = subtensor.get_subnet_reveal_period_epochs(
67-
netuid=netuid
68-
)
69-
tempo = subtensor.get_subnet_hyperparameters(netuid).tempo
70-
current_block = subtensor.get_current_block()
7161

7262
if isinstance(uids, list):
7363
uids = np.array(uids, dtype=np.int64)
@@ -76,7 +66,7 @@ if isinstance(weights, list):
7666

7767
uids, weights = convert_weights_and_uids_for_emit(uids, weights)
7868

79-
print(crv3.get_encrypted_commit(uids, weights, version_key, tempo, current_block, netuid, subnet_reveal_period_epochs))
69+
print(crv3.get_encrypted_commit(uids, weights, version_key))
8070
```
8171
expected result
8272
```python

0 commit comments

Comments
 (0)