def is_valid(self): if not MoneyRange(self.nValue): return False script = CScript() if not script.tokenize(self.scriptPubKey): return False return True
def is_valid(self): script = CScript() if not script.tokenize(self.scriptSig): return False return True