From ea07a3a3e52f1e2f9b654efebd269914f78e8c40 Mon Sep 17 00:00:00 2001 From: distributedstatemachine! Date: Mon, 30 Dec 2024 14:52:27 +0000 Subject: [PATCH] fix: chain --- docker/compose.yml | 2 +- src/tplr/chain.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/compose.yml b/docker/compose.yml index 42b86b1..d6b427e 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -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: diff --git a/src/tplr/chain.py b/src/tplr/chain.py index a3f5598..7aaef82 100644 --- a/src/tplr/chain.py +++ b/src/tplr/chain.py @@ -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}" )