pyln-client: convert every _msat field to Millisatoshi

This prepares for when they start being u64, not strings with msat appended.

This has a strange side effect on our schema: despite the name,
decodepay's `fee_base_msat` is actually a u64, which we now convert to
msat on decode.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-06-20 19:52:09 +09:30
parent 01411d70be
commit 5c208c1b06
4 changed files with 7 additions and 8 deletions

View File

@@ -356,7 +356,7 @@ def _extra_validator(is_request: bool):
return False
def is_msat_response(checker, instance):
"""String number ending in msat"""
"""String number ending in msat (deprecated) or integer"""
return type(instance) is Millisatoshi
def is_txid(checker, instance):