@@ -461,29 +461,6 @@ def add_address_from_output(output: 'TxOutput') -> None:
461
461
462
462
return addresses
463
463
464
- def can_validate_full (self ) -> bool :
465
- """ Check if this transaction is ready to be fully validated, either all deps are full-valid or one is invalid.
466
- """
467
- assert self .storage is not None
468
- assert self ._hash is not None
469
- if self .is_genesis :
470
- return True
471
- deps = self .get_all_dependencies ()
472
- all_exist = True
473
- all_valid = True
474
- # either they all exist and are fully valid
475
- for dep in deps :
476
- meta = self .storage .get_metadata (dep )
477
- if meta is None :
478
- all_exist = False
479
- continue
480
- if not meta .validation .is_fully_connected ():
481
- all_valid = False
482
- if meta .validation .is_invalid ():
483
- # or any of them is invalid (which would make this one invalid too)
484
- return True
485
- return all_exist and all_valid
486
-
487
464
def set_validation (self , validation : ValidationState ) -> None :
488
465
""" This method will set the internal validation state AND the appropriate voided_by marker.
489
466
@@ -850,17 +827,6 @@ def clone(self, *, include_metadata: bool = True, include_storage: bool = True)
850
827
def get_token_uid (self , index : int ) -> TokenUid :
851
828
raise NotImplementedError
852
829
853
- def is_ready_for_validation (self ) -> bool :
854
- """Check whether the transaction is ready to be validated: all dependencies exist and are fully connected."""
855
- assert self .storage is not None
856
- for dep_hash in self .get_all_dependencies ():
857
- dep_meta = self .storage .get_metadata (dep_hash )
858
- if dep_meta is None :
859
- return False
860
- if not dep_meta .validation .is_fully_connected ():
861
- return False
862
- return True
863
-
864
830
@property
865
831
def static_metadata (self ) -> StaticMetadataT :
866
832
"""Get this vertex's static metadata. Assumes it has been initialized."""
0 commit comments