@@ -61,8 +61,7 @@ def verify_unsigned_skip_pow(self, tx: Transaction) -> None:
61
61
""" Same as .verify but skipping pow and signature verification."""
62
62
tx .verify_unsigned_skip_pow ()
63
63
64
- @staticmethod
65
- def verify_parents_basic (tx : Transaction ) -> None :
64
+ def verify_parents_basic (self , tx : Transaction ) -> None :
66
65
"""Verify number and non-duplicity of parents."""
67
66
tx .verify_parents_basic ()
68
67
@@ -84,8 +83,7 @@ def verify_inputs(self, tx: Transaction, *, skip_script: bool = False) -> None:
84
83
"""Verify inputs signatures and ownership and all inputs actually exist"""
85
84
tx .verify_inputs (skip_script = skip_script )
86
85
87
- @staticmethod
88
- def verify_script (* , tx : Transaction , input_tx : TxInput , spent_tx : BaseTransaction ) -> None :
86
+ def verify_script (self , * , tx : Transaction , input_tx : TxInput , spent_tx : BaseTransaction ) -> None :
89
87
"""
90
88
:type tx: Transaction
91
89
:type input_tx: TxInput
@@ -104,8 +102,7 @@ def verify_sum(self, tx: Transaction) -> None:
104
102
"""
105
103
tx .verify_sum ()
106
104
107
- @staticmethod
108
- def verify_reward_locked (tx : Transaction ) -> None :
105
+ def verify_reward_locked (self , tx : Transaction ) -> None :
109
106
"""Will raise `RewardLocked` if any reward is spent before the best block height is enough, considering only
110
107
the block rewards spent by this tx itself, and not the inherited `min_height`."""
111
108
tx .verify_reward_locked ()
@@ -121,8 +118,7 @@ def verify_outputs(self, tx: BaseTransaction) -> None:
121
118
"""
122
119
tx .verify_outputs ()
123
120
124
- @staticmethod
125
- def update_token_info_from_outputs (tx : Transaction , * , token_dict : dict [TokenUid , TokenInfo ]) -> None :
121
+ def update_token_info_from_outputs (self , tx : Transaction , * , token_dict : dict [TokenUid , TokenInfo ]) -> None :
126
122
"""Iterate over the outputs and add values to token info dict. Updates the dict in-place.
127
123
128
124
Also, checks if no token has authorities on the outputs not present on the inputs
0 commit comments