Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nwc sql #28

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Nwc sql #28

merged 3 commits into from
Aug 11, 2023

Conversation

TonyGiorgio
Copy link
Contributor

This probably doesn't work yet but it compiles and it's a start.

Will start testing tomorrow.

@TonyGiorgio TonyGiorgio force-pushed the nwc-sql branch 2 times, most recently from cbee208 to c5c60e1 Compare August 11, 2023 18:41
@TonyGiorgio TonyGiorgio marked this pull request as ready for review August 11, 2023 18:41
@TonyGiorgio
Copy link
Contributor Author

Works locally, just need to deploy onto staging and test there.

event.tags.extend(tags);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doing the tags like this might cause the signatures to be invalid, the tags need to be in the same order as before, should at least add a debug_assert to verify the signature is good.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just need to sort by id to get in the correct order

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nostr is retarded if that's the case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I log and remove events that don't verify
  2. NWC messages should be unaffected since they only have one tag
  3. tag inserts happen in order and they are now retrieved by an order by id.

@TonyGiorgio TonyGiorgio merged commit ef5c67f into master Aug 11, 2023
2 checks passed
@TonyGiorgio TonyGiorgio deleted the nwc-sql branch August 11, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants