Skip to content

Commit

Permalink
fix: chain
Browse files Browse the repository at this point in the history
  • Loading branch information
distributedstatemachine committed Dec 30, 2024
1 parent 6ba6564 commit ea07a3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
node:
image: ghcr.io/tplr-ai/templar:v0.0.6
image: ghcr.io/tplr-ai/templar:v0.0.9
container_name: templar-${NODE_TYPE:-miner}-${WALLET_HOTKEY}
restart: unless-stopped
volumes:
Expand Down
3 changes: 2 additions & 1 deletion src/tplr/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,11 @@ async def commit(self, wallet: "bt.wallet", bucket: Bucket) -> None:
wallet (bt.wallet): Wallet to sign the commitment
bucket (Bucket): Bucket configuration to commit
"""
subtensor = bt.subtensor(config=self.config)
concatenated = (
bucket.account_id + bucket.access_key_id + bucket.secret_access_key
)
self.subtensor.commit(wallet, self.netuid, concatenated)
subtensor.commit(wallet, self.netuid, concatenated)
logger.info(
f"Committed bucket configuration to chain for hotkey {wallet.hotkey.ss58_address}"
)
Expand Down

0 comments on commit ea07a3a

Please sign in to comment.