Skip to content

Commit 172fe5f

Browse files
committed
docs(wallet): fix stale locktime comment in send()
The "14 days" comment predated settings.locktime_delta_seconds (actual default: 1 day) and is now doubly wrong since locktime_seconds can come from the --timelock override.
1 parent 17aca3e commit 172fe5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cashu/wallet/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def send(
157157
if timelock_seconds is not None
158158
else settings.locktime_delta_seconds
159159
)
160-
# we add a time lock to the P2PK lock by appending the current unix time + 14 days
160+
# we add a time lock by appending the current unix time + locktime_seconds
161161
if lock.startswith("P2PK:") or lock.startswith("P2PK-SIGALL:"):
162162
sigall = lock.startswith("P2PK-SIGALL:")
163163
logger.debug(f"Locking token to: {lock}")

0 commit comments

Comments
 (0)