moved comment
@@ -61,6 +61,9 @@ class Tx(DataClassJsonMixin):
return ceil(self.weight / 4)
def assert_valid(self) -> None:
+
+ # TODO check version and locktime
+
if not self.vin:
raise BTClibValueError("A transaction must have at least one input")
for tx_in in self.vin:
@@ -70,8 +73,6 @@ class Tx(DataClassJsonMixin):
for tx_out in self.vout:
tx_out.assert_valid()
- # TODO check version and locktime
-
def serialize(self, include_witness: bool, assert_valid: bool = True) -> bytes:
if assert_valid:
