mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
listtransactions: get rid of per-tx type annotations.
We didn't actually populate them properly, and the real annotations are on inputs and outputs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: JSON-RPC: `listtransactions` `channel` and `type` field removed at top level.
This commit is contained in:
committed by
Alex Myers
parent
578f075407
commit
611795beee
@@ -511,8 +511,6 @@ def listtransactions_transactions2py(m):
|
||||
"rawtx": hexlify(m.rawtx), # PrimitiveField in generate_composite
|
||||
"blockheight": m.blockheight, # PrimitiveField in generate_composite
|
||||
"txindex": m.txindex, # PrimitiveField in generate_composite
|
||||
"type": [str(i) for i in m.type], # ArrayField[composite] in generate_composite
|
||||
"channel": m.channel, # PrimitiveField in generate_composite
|
||||
"locktime": m.locktime, # PrimitiveField in generate_composite
|
||||
"version": m.version, # PrimitiveField in generate_composite
|
||||
"inputs": [listtransactions_transactions_inputs2py(i) for i in m.inputs], # ArrayField[composite] in generate_composite
|
||||
|
||||
Reference in New Issue
Block a user