mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
lightningd: change msatoshi args to amount_msat.
This is consistent with our output changes, and increases consistency. It also keeps future sanity checks happy, that we only use JSON msat helpers with '_msat' fields. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice`: `msatoshi` argument is now called `amount_msat` to match other fields. Changelog-Deprecated: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice` `msatoshi` (use `amount_msat`)
This commit is contained in:
@@ -104,7 +104,7 @@ def test_grpc_connect(node_factory):
|
||||
print(response)
|
||||
|
||||
inv = stub.Invoice(nodepb.InvoiceRequest(
|
||||
msatoshi=AmountOrAny(any=True),
|
||||
amount_msat=AmountOrAny(any=True),
|
||||
description="hello",
|
||||
label="lbl1",
|
||||
preimage=b"\x00" * 32,
|
||||
@@ -119,7 +119,7 @@ def test_grpc_connect(node_factory):
|
||||
with pytest.raises(Exception, match=r'Duplicate label'):
|
||||
# This request creates a label collision
|
||||
stub.Invoice(nodepb.InvoiceRequest(
|
||||
msatoshi=AmountOrAny(amount=Amount(msat=12345)),
|
||||
amount_msat=AmountOrAny(amount=Amount(msat=12345)),
|
||||
description="hello",
|
||||
label="lbl1",
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user