Mint Database: Get Spent and pending proof should be proofs #236

Closed
opened 2024-07-12 07:18:54 +00:00 by thesimplekid · 0 comments
thesimplekid commented 2024-07-12 07:18:54 +00:00 (Migrated from github.com)

The way the mint uses this function it should be proofs not a specific proof as its interested in all the proofs included in a transaction just just one. If any one proof is already spent or pending the whole transaction will fail

The way the mint uses this function it should be proofs not a specific proof as its interested in all the proofs included in a transaction just just one. If any one proof is already spent or pending the whole transaction will fail - [x] Spent https://github.com/cashubtc/cdk/blob/920e5d1fd70ebd66b692dc4983b2650b41f33a9f/crates/cdk/src/cdk_database/mod.rs#L223-L225 - [x] Pending https://github.com/cashubtc/cdk/blob/920e5d1fd70ebd66b692dc4983b2650b41f33a9f/crates/cdk/src/cdk_database/mod.rs#L230-L235 - [x] In most cases mint will be adding multiple so make this accept a vec https://github.com/cashubtc/cdk/blob/920e5d1fd70ebd66b692dc4983b2650b41f33a9f/crates/cdk/src/cdk_database/mod.rs#L239-L244 - [x] Change this to update keyset status as the keyset info has to be added separately this name is confusing https://github.com/cashubtc/cdk/blob/920e5d1fd70ebd66b692dc4983b2650b41f33a9f/crates/cdk/src/cdk_database/mod.rs#L166-L167
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cashubtc/cdk#236
No description provided.