Comments (1)
Highlightning the difference between AND vs OR
future_time=$(($(date +%s) + 24*60*60))
OR_restrictions='[["time<'$future_time'","rate=2"]]'
AND_restrictions='[["time<'$future_time'"],["rate=2"]]'
lightning-cli decode string=$(lightning-cli createrune restrictions=$AND_restrictions | jq .rune) | jq .restrictions
[
{
"alternatives": [
"time<1715762646"
],
"summary": "time (in seconds since 1970) less than 1715762646 (approximately 23 hours 59 minutes from now)"
},
{
"alternatives": [
"rate=2"
],
"summary": "rate (max per minute) equal to 2"
}
]
lightning-cli decode string=$(lightning-cli createrune restrictions=$OR_restrictions | jq .rune) | jq .restrictions
[
{
"alternatives": [
"time<1715762646",
"rate=2"
],
"summary": "time (in seconds since 1970) less than 1715762646 (approximately 23 hours 58 minutes from now) OR rate (max per minute) equal to 2"
}
]
Perhaps a safer way to create AND restrictions is to create hierarchical runes where the parent rune has a time to live ("time<'$future_time'") and the child rune has a rate limit.
from lightning.
Related Issues (20)
- Using fetchinvoice on a Phoenix Bolt12 offer crashes CLN HOT 10
- pytest on Windows requires higher version of python-bitcoinlib HOT 1
- nix build on recent master fails
- renepay fell over HOT 1
- bkpr - get entries by payment id
- CI Complaint about spend_tag in test_onchain_their_unilateral_out[True] HOT 1
- renepay crash on `linearize_channel` HOT 2
- Fix and enable github action for `Publish Python distributions to PyPI and TestPyPI`
- Bad commit sig in splicing (CI fail) HOT 2
- Lock values in documentation examples
- `getroutes`: amounts and delays are wrong HOT 4
- `askrene-reserve`: "guide_must_be: Assertion `actual == c' failed" HOT 2
- `askrene-inform-channel`: maximum_msat minimum_msat mismatch HOT 2
- bkpr-listaccountevents crashing and bringing down lightningd HOT 2
- `askrene`: memleak HOT 1
- status "pending" from "sendpay_failure" HOT 4
- `getroutes`: allocating more than `spendable_msat` HOT 3
- Is CI not checking for memory leaks? HOT 2
- Valgrind errors while scanning for memory leaks HOT 2
- plugins repo: MEMLEAK HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning.