diff --git a/chia/data_layer/data_layer_util.py b/chia/data_layer/data_layer_util.py index 6d7eb688136d..5c14e0f71290 100644 --- a/chia/data_layer/data_layer_util.py +++ b/chia/data_layer/data_layer_util.py @@ -286,7 +286,6 @@ class ProofOfInclusion: # children before parents layers: list[ProofOfInclusionLayer] - @property def root_hash(self) -> bytes32: if len(self.layers) == 0: return self.node_hash @@ -315,7 +314,7 @@ def valid(self) -> bool: existing_hash = calculated_hash - if existing_hash != self.root_hash: + if existing_hash != self.root_hash(): return False return True diff --git a/chia/data_layer/data_layer_wallet.py b/chia/data_layer/data_layer_wallet.py index c0e3aacb6f80..a069e6f147f1 100644 --- a/chia/data_layer/data_layer_wallet.py +++ b/chia/data_layer/data_layer_wallet.py @@ -1272,7 +1272,7 @@ def verify_offer( raise OfferIntegrityError("maker: invalid proof of inclusion found") # TODO: verify each kv hash to the proof's node hash - roots = {proof.root_hash for proof in proofs} + roots = {proof.root_hash() for proof in proofs} if len(roots) > 1: raise OfferIntegrityError("maker: multiple roots referenced for a single store id") if len(roots) < 1: