Skip to content

Commit a855408

Browse files
fix: use calculate_hash for job uuid to prevent different txs with the same uuid (#142)
1 parent 65d71f2 commit a855408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

txstratum/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
"""
6060
self._tx: BaseTransaction = tx_or_block_from_bytes(data)
6161

62-
self.uuid: bytes = self._tx.get_funds_hash()
62+
self.uuid: bytes = self._tx.calculate_hash()
6363
self.add_parents: bool = add_parents
6464
self.propagate: bool = propagate
6565
self.timeout: Optional[float] = timeout

0 commit comments

Comments
 (0)