mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
use msat_or_all for fundpsbt request amount
This commit is contained in:
parent
d4ef20d54a
commit
836a2aa261
5 changed files with 100 additions and 100 deletions
2
cln-grpc/proto/node.proto
generated
2
cln-grpc/proto/node.proto
generated
|
@ -988,7 +988,7 @@ message KeysendExtratlvs {
|
|||
}
|
||||
|
||||
message FundpsbtRequest {
|
||||
Amount satoshi = 1;
|
||||
AmountOrAll satoshi = 1;
|
||||
Feerate feerate = 2;
|
||||
uint32 startweight = 3;
|
||||
optional uint32 minconf = 4;
|
||||
|
|
2
cln-grpc/src/convert.rs
generated
2
cln-grpc/src/convert.rs
generated
|
@ -1355,7 +1355,7 @@ impl From<pb::KeysendRequest> for requests::KeysendRequest {
|
|||
impl From<pb::FundpsbtRequest> for requests::FundpsbtRequest {
|
||||
fn from(c: pb::FundpsbtRequest) -> Self {
|
||||
Self {
|
||||
satoshi: c.satoshi.unwrap().into(), // Rule #1 for type msat
|
||||
satoshi: c.satoshi.unwrap().into(), // Rule #1 for type msat_or_all
|
||||
feerate: c.feerate.unwrap().into(), // Rule #1 for type feerate
|
||||
startweight: c.startweight, // Rule #1 for type u32
|
||||
minconf: c.minconf, // Rule #1 for type u32?
|
||||
|
|
2
cln-rpc/src/model.rs
generated
2
cln-rpc/src/model.rs
generated
|
@ -899,7 +899,7 @@ pub mod requests {
|
|||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct FundpsbtRequest {
|
||||
#[serde(alias = "satoshi")]
|
||||
pub satoshi: Amount,
|
||||
pub satoshi: AmountOrAll,
|
||||
#[serde(alias = "feerate")]
|
||||
pub feerate: Feerate,
|
||||
#[serde(alias = "startweight")]
|
||||
|
|
192
contrib/pyln-testing/pyln/testing/node_pb2.py
generated
192
contrib/pyln-testing/pyln/testing/node_pb2.py
generated
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@
|
|||
],
|
||||
"properties": {
|
||||
"satoshi": {
|
||||
"type": "msat"
|
||||
"type": "msat_or_all"
|
||||
},
|
||||
"feerate": {
|
||||
"type": "feerate"
|
||||
|
|
Loading…
Add table
Reference in a new issue