Skip to content

Commit

Permalink
Merge commit '543b887'
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jun 23, 2015
2 parents 55e1fb1 + 543b887 commit 4804138
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion merklemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def __init__(self, *a, **k):
self.SubsidyAlgo = lambda height: 5000000000 >> (height // 210000)

def _prepare(self):
self.UseTemplateChecks = True
if getattr(self, 'TemplateChecks', True) is None:
self.TemplateChecks = ()
self.UseTemplateChecks = False
self.TemplateSources = list(getattr(self, 'TemplateSources', ()))
self.TemplateChecks = list(getattr(self, 'TemplateChecks', ()))
if getattr(self, 'BlockSubmissions', None) is None:
Expand Down Expand Up @@ -394,9 +398,11 @@ def _ProcessGBT(self, MP, TS = None):
return newMerkleTree

def _CheckTemplate(self, newMerkleTree, TS):
if not self.UseTemplateChecks:
return (None, None)
TCList = self.TemplateChecks
if not TCList:
if TCList is None or 'proposal' not in newMerkleTree.oMP.get('capabilities', ()):
if 'proposal' not in newMerkleTree.oMP.get('capabilities', ()):
return (None, None)
TCList = (
{
Expand Down

0 comments on commit 4804138

Please sign in to comment.