From 487763471c75a442d1f17f9665089f8dfbca6def Mon Sep 17 00:00:00 2001 From: CreativeBuilds Date: Fri, 13 Oct 2023 20:26:53 -0400 Subject: [PATCH] fixes tensors not hashing correctly --- bittensor/synapse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bittensor/synapse.py b/bittensor/synapse.py index b9e3479e72..9f5b57a53e 100644 --- a/bittensor/synapse.py +++ b/bittensor/synapse.py @@ -513,8 +513,7 @@ def body_hash(self) -> str: hashes = [] # Getting the fields of the instance - instance_fields = self.__dict__ - + instance_fields = self.dict() # __dict__ converts the Tensor types into strings causing a mismatch in the hash, so we use .dict() instead for field, value in instance_fields.items(): # If the field is required in the subclass schema, hash and add it. if field in self.required_hash_fields: