Handling incorrect mint time #297
Labels
No labels
breaking change
bug
documentation
enhancement
needs discussion
needs implementation
new nut
ready
wallet-only
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo-admin/nuts#297
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently in NUT-06 we optionally return the mint time (https://github.com/cashubtc/nuts/blob/main/06.md). We added this to the spec because a mint using an incorrect time could lead to the spending condition path being allowed when it shouldn't or the reverse. However, we do not define that this time must be correct or within some tolerance.
When I added this to the cdk wallet I put in a check that the returned time was within 30 seconds without much thought, but it seems this is causing issues with some mints that are returning delayed times (https://github.com/cashubtc/cdk/issues/1194) reported up to 20 minutes off.
Since there isn't a tolerance in the spec, I guess cdk shouldn't be doing this check however I think it's an important check for spending conditions. Should we add a tolerance to the spec? I guess then it becomes a question of who has the correct time.
My latest update, I think 21mint is doing caching:
First, all mints are synced with each other and with my laptop here:
But then, I ran the same command multiple times in the following seconds. See that 21mint is not updating
Here there is 80 seconds of difference:
My coding agent thinks CDK is caching it: