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

Commits on Sep 20, 2023

  1. wallet: add last_used_nsec in runes table

    We will use this for better rate limiting
    ShahanaFarooqui authored and rustyrussell committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    627b3ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d73219 View commit details
    Browse the repository at this point in the history
  3. lightning/runes: added last_used in showrunes

    Changelog-Added: JSON-RPC: `showrunes` new field `last_used`
    ShahanaFarooqui authored and rustyrussell committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    99fea9d View commit details
    Browse the repository at this point in the history
  4. common: make json_add_timeabs full precision & renamed json_add_time

    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`.
    ShahanaFarooqui authored and rustyrussell committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    b7033f8 View commit details
    Browse the repository at this point in the history
  5. lightningd/runes: Added last_time_check for validating rune for per

    … restriction
    
    Changelog-Added: runes: `per=Nsec/min/hour/msec/usec/nsec` for general ratelimiting
    ShahanaFarooqui authored and rustyrussell committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    b143737 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    968d5d9 View commit details
    Browse the repository at this point in the history