-
Notifications
You must be signed in to change notification settings - Fork 621
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
nip-86: updating methods, adding new ones. #1734
base: master
Are you sure you want to change the base?
Conversation
@mikedilger @fiatjaf fyi. if you think this is ok, i will work on the chorus and khatru implementation myself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't spend time checking this, just noticed this one thing.
@fiatjaf notice names changed to snake_case so anything that is out there already will break, but Kehiy seems keen to code this in both our relays. Personally I prefer snake_case to mashedcase. |
i think the |
I don't know what methods are being added because you reformatted the entire thing. I prefer the old formatting. |
you can check the parsed version and then we can talk about protocol changes, later i will update the formatting to the old one. its a little time-consuming and im not able to update it atm. |
@mikedilger @fiatjaf ive updated the formatting. |
I think the changes are like this (this took a while to figure out):
|
|
@mikedilger thank you for summarizing the changes! yes, they are correct. and i agree that list allowed events is a little weird. my idea was when you have a relay where all events are disallowed by default. like the idea behind white listing. but it would have a very limited use-case, we can remove it as well. |
list_disallow_kinds is also renamed to list_disallowed_kinds. |
any updates guys? |
These renames are all completely unnecessary. I'm fine with adding |
@fiatjaf i believe snake_case is much more readable. why not use it? the the |
Because it's a completely unnecessary breaking change. Also I don't believe it is much more readable.
There is no point in having a specification that doesn't specify anything.
I said it doesn't make sense because relays have these fields mostly hardcoded, generated based on other properties or configured by config files or environment variables. It doesn't make sense to change these things from an RPC command. The relay would then have to save that information and then act on it? How? It would be a mess. I'm not saying it wouldn't be doable or perhaps even useful in some cases, but in practice this is a confusing hassle that no one will use and will just bloat the spec. |
Kehiy started with a bunch of separate well defined stat commands. But I know what will happen in practice is that there will be a 5 second lag while clients request each stat one at a time until they get them all. It doesn't make sense to do lots of round trips for individual statistics. Basically the meaning of the stats fields probably don't carry much meaning for software to act upon, the whole blob can just be displayed to the end user. |
In this case I like it. |
@mikedilger thanks a lot for explanation. @fiatjaf i can turn back the name cases, but i still prefer snake case. also, i believe nip11 setting is a better replacement for one command per field like but i will remove |
@mikedilger @fiatjaf spec updated. nip11 command removed and naming is same as before. |
I also like snake case, but I don't like breaking things, and I expected this outcome which is why I never tried to change the names. I didn't scour it again, but it looks good to me. |
read parsed version.
these changes are based on discussions on: mikedilger/chorus#39.
and methods needed by the mangostr client: https://github.com/dezh-tech/mangostr.
method names are used to use snake_case since they are much more readable.