Skip to content

Commit

Permalink
Merge commit '6ce65de'
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jul 5, 2015
2 parents 00eb752 + 6ce65de commit 9e37d47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions merklemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ def _updateMerkleTree_fromTS(self, TS):
newMerkleTree.source = TS['name']
newMerkleTree.source_uri = TS['uri']

if MP['version'] < self.BlockVersion:
self.logger.error('Template from \'%s\' has too low block version (%u < %u)' % (TS['name'], MP['version'], self.BlockVersion))
return None

(AcceptedScore, TotalScore) = self._CheckTemplate(newMerkleTree, TS)
if TotalScore is None:
return (0, newMerkleTree)
Expand Down

0 comments on commit 9e37d47

Please sign in to comment.