mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user