listtransactions: don't create a msat field called "satoshis".

That's a terrible, terrible idea.  (Documentation comes in later patch
which has the schema).

Also, blockheight is a u32, so simplify.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Deprecated: JSON-RPC: `listtransactions` `outputs` `satoshis` field (use `msat` instead).
This commit is contained in:
Rusty Russell
2021-06-16 10:31:17 +09:30
parent d8136d856b
commit 0a99b8c64c
2 changed files with 5 additions and 3 deletions

View File

@@ -937,7 +937,7 @@ def test_transaction_annotations(node_factory, bitcoind):
assert(len(txs) == 1)
tx = txs[0]
output = tx['outputs'][idx]
assert(output['type'] == 'deposit' and output['satoshis'] == '1000000000msat')
assert(output['type'] == 'deposit' and output['msat'] == Millisatoshi(1000000000))
# ... and all other output should be change, and have no annotations
types = []