cln-grpc: update listpeers json fixing tests

This commit is contained in:
Riccardo Casatta 2023-01-13 10:33:09 +01:00 committed by Vincenzo Palazzo
parent f1373fd98c
commit 6b977f0292
2 changed files with 13 additions and 5 deletions

View File

@ -190,7 +190,9 @@ mod test {
"funding": { "funding": {
"local_msat": "0msat", "local_msat": "0msat",
"remote_msat": "1000000000msat", "remote_msat": "1000000000msat",
"pushed_msat": "0msat" "pushed_msat": "0msat",
"local_funds_msat": "0msat",
"remote_funds_msat": "0msat"
}, },
"msatoshi_to_us": 0, "msatoshi_to_us": 0,
"to_us_msat": "0msat", "to_us_msat": "0msat",
@ -289,7 +291,9 @@ mod test {
"funding": { "funding": {
"local_msat": "1000000000msat", "local_msat": "1000000000msat",
"remote_msat": "0msat", "remote_msat": "0msat",
"pushed_msat": "0msat" "pushed_msat": "0msat",
"local_funds_msat": "0msat",
"remote_funds_msat": "0msat"
}, },
"msatoshi_to_us": 1000000000, "msatoshi_to_us": 1000000000,
"to_us_msat": "1000000000msat", "to_us_msat": "1000000000msat",

View File

@ -38,7 +38,9 @@ fn test_listpeers() {
"funding": { "funding": {
"local_msat": "0msat", "local_msat": "0msat",
"remote_msat": "1000000000msat", "remote_msat": "1000000000msat",
"pushed_msat": "0msat" "pushed_msat": "0msat",
"local_funds_msat": "0msat",
"remote_funds_msat": "0msat"
}, },
"msatoshi_to_us": 0, "msatoshi_to_us": 0,
"to_us_msat": "0msat", "to_us_msat": "0msat",
@ -137,7 +139,9 @@ fn test_listpeers() {
"funding": { "funding": {
"local_msat": "1000000000msat", "local_msat": "1000000000msat",
"remote_msat": "0msat", "remote_msat": "0msat",
"pushed_msat": "0msat" "pushed_msat": "0msat",
"local_funds_msat": "0msat",
"remote_funds_msat": "0msat"
}, },
"msatoshi_to_us": 1000000000, "msatoshi_to_us": 1000000000,
"to_us_msat": "1000000000msat", "to_us_msat": "1000000000msat",
@ -278,7 +282,7 @@ fn test_keysend() {
}], }],
}], }],
}), }),
extratlvs: None, extratlvs: None,
}; };
let u: cln_rpc::model::KeysendRequest = g.into(); let u: cln_rpc::model::KeysendRequest = g.into();