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

Add restriction per for lightningd runes #6617

Merged

Conversation

ShahanaFarooqui
Copy link
Collaborator

No description provided.

@rustyrussell
Copy link
Contributor

wallet/wallet.c:5689:	else 
Extraneous whitespace found
make: *** [Makefile:522: check-whitespace/wallet/wallet.c] Error 1

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Minor comments, and importantly, still needs test for per...

wallet/db.c Outdated Show resolved Hide resolved
wallet/wallet.c Outdated Show resolved Hide resolved
lightningd/runes.c Outdated Show resolved Hide resolved
common/json_stream.c Show resolved Hide resolved
@rustyrussell
Copy link
Contributor

Ack f7143a0

@rustyrussell
Copy link
Contributor

Ah, you can't call your helper function test_... since pytest tries to run that. Simple rename pushed.

Changelog-Added: JSON-RPC: `showrunes` new field `last_used`
json_add_timeabs only printed in milliseconds and json_add_time outputs a string which is weird

Changelog-Changed: JSON-RPC time fields now have full nanosecond precision (i.e. 9 decimals not 3): `listfowards` `received_time` `resolved_time` `listpays`/`listsendpays` `created_at`.
… restriction

Changelog-Added: runes: `per=Nsec/min/hour/msec/usec/nsec` for general ratelimiting
@rustyrussell
Copy link
Contributor

Ah, and valgrind caught that we missed initializing a variable (if there's no rune in db, we left last_used uninitialized for json_add_rune).

Fixed. This time for sure!

@rustyrussell rustyrussell merged commit f60882f into ElementsProject:master Sep 21, 2023
39 checks passed
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