Skip to content
Snippets Groups Projects
Commit cb9ef198 authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] #95 set time argument optional in SimpleTransaction

parent c08d15b5
No related branches found
No related tags found
No related merge requests found
...@@ -832,7 +832,7 @@ Comment: {comment} ...@@ -832,7 +832,7 @@ Comment: {comment}
unlocks, unlocks,
outputs, outputs,
comment, comment,
time, time=time,
version=version, version=version,
) )
...@@ -1005,7 +1005,7 @@ class SimpleTransaction(Transaction): ...@@ -1005,7 +1005,7 @@ class SimpleTransaction(Transaction):
unlocks: List[Unlock], unlocks: List[Unlock],
outputs: List[OutputSource], outputs: List[OutputSource],
comment: str, comment: str,
time: int, time: int = 0,
signing_key: SigningKey = None, signing_key: SigningKey = None,
version: int = VERSION, version: int = VERSION,
) -> None: ) -> None:
...@@ -1021,7 +1021,7 @@ class SimpleTransaction(Transaction): ...@@ -1021,7 +1021,7 @@ class SimpleTransaction(Transaction):
:param unlocks: List of Unlock instances :param unlocks: List of Unlock instances
:param outputs: List of OutputSource instances :param outputs: List of OutputSource instances
:param comment: Comment field :param comment: Comment field
:param time: time when the transaction enters the blockchain :param time: time when the transaction enters the blockchain (default=0)
:param signing_key: SigningKey instance to sign the document (default=None) :param signing_key: SigningKey instance to sign the document (default=None)
:param version: Document version (default=transaction.VERSION) :param version: Document version (default=transaction.VERSION)
""" """
...@@ -1034,7 +1034,7 @@ class SimpleTransaction(Transaction): ...@@ -1034,7 +1034,7 @@ class SimpleTransaction(Transaction):
unlocks, unlocks,
outputs, outputs,
comment, comment,
time, time=time,
signing_key=signing_key, signing_key=signing_key,
version=version, version=version,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment