Closed tomyrd closed 2 weeks ago
Just finished implementing the new additional information for the note status. I also modified the PR title and description to better reflect the new changes.
I feel like all of the other changes discussed here should be implemented in separate PRs. These are the changes that are left unfinished:
closes #328
This PR looks to add more information about a note status and consumability in the client. This is achieved by a few new features:
NoteStatus
variant calledProcessing
was created to represent the state betweenComitted
andConsumed
. It's a state where locally you executed a transaction to consume a note but the client doesn't know if the node confirmed it.NoteStatus
variants:Pending
: A timestamp of the creation of the note in the client.Commited
: The block height where the note was commited in the node.Processing
: The id of the consumer account of the note and the timestamp of the submition of transaction that is currently consuming the note.Consumed
: The id of the consumer account of the note (if known) and the block height where the note was consumed.get_note_consumability
) to allow the user to check a note's consumability (in addition to the previousget_consumable_notes
).Screenshot of the new status info: