Comments (4)
Strange, i can see both floor and blockcount in the v23.11.2 node.proto
from lightning.
@daywalker90
Sorry for the unclear description. The problem is that it is missing in the primitives. I want to set the feerate for the withdraw endpoint, but cannot create a feerate object with the desired values to pass as input for the withdraw command:
lightning/cln-grpc/proto/primitives.proto
Lines 72 to 80 in 76cd323
from lightning.
Hm you mean like this?
def test_grpc_feerates(bitcoind, node_factory):
LOGGER = logging.getLogger(__name__)
""" Check that conversions of this rather complex type work.
"""
grpc_port = reserve()
l1, l2 = node_factory.line_graph(
2,
opts=[{"grpc-port": str(grpc_port)}, {}],
announce_channels=True, # Do not enforce scid-alias
)
l1.fundwallet(10_000_000)
stub = l1.grpc
feerates = stub.Feerates(clnpb.FeeratesRequest(style="PERKB"))
LOGGER.info(f"{feerates}")
newaddr = stub.NewAddr(clnpb.NewaddrRequest())
LOGGER.info(f"{newaddr}")
withdraw = stub.Withdraw(
clnpb.WithdrawRequest(
destination=newaddr.bech32,
satoshi=clnpb.AmountOrAll(amount=clnpb.Amount(msat=500_000_000)),
feerate=clnpb.Feerate(perkb=feerates.perkb.floor),
)
)
LOGGER.info(f"{withdraw}")
withdraw = stub.Withdraw(
clnpb.WithdrawRequest(
destination=newaddr.bech32,
satoshi=clnpb.AmountOrAll(amount=clnpb.Amount(msat=500_000_000)),
feerate=clnpb.Feerate(perkb=feerates.perkb.estimates[0].blockcount),
)
)
LOGGER.info(f"{withdraw}")
Because that works for me.
from lightning.
Ah, thank you so much. This was my mistake.
With your help I was finally able to implement it in Java.
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 1
- `askrene`: memleak HOT 1
- status "pending" from "sendpay_failure" HOT 3
- `getroutes`: allocating more than `spendable_msat` HOT 2
- 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.