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