Skip to content

Commit 5dc99fa

Browse files
committed
review changes
1 parent 6065308 commit 5dc99fa

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

hathor/manager.py

-8
Original file line numberDiff line numberDiff line change
@@ -914,14 +914,6 @@ def push_tx(self, tx: Transaction, allow_non_standard_script: bool = False,
914914
if not tx_from_lib.is_standard(max_output_script_size, not allow_non_standard_script):
915915
raise NonStandardTxError('Transaction is non standard.')
916916

917-
tx.update_reward_lock_metadata()
918-
919-
# Validate tx.
920-
try:
921-
self.verification_service.verify(tx)
922-
except TxValidationError as e:
923-
raise InvalidNewTransaction(str(e))
924-
925917
self.propagate_tx(tx, fails_silently=False)
926918

927919
def propagate_tx(self, tx: BaseTransaction, fails_silently: bool = True) -> bool:

hathor/vertex_handler/vertex_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _validate_vertex(
156156
self._verification_service.validate_full(vertex, reject_locked_reward=reject_locked_reward)
157157
except HathorError as e:
158158
if not fails_silently:
159-
raise InvalidNewTransaction('full validation failed') from e
159+
raise InvalidNewTransaction(f'full validation failed: {str(e)}') from e
160160
self._log.warn('on_new_tx(): full validation failed', tx=vertex.hash_hex, exc_info=True)
161161
return False
162162

0 commit comments

Comments
 (0)