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:
Rusty Russell
2023-01-30 16:36:03 +10:30
committed by Alex Myers
parent 578f075407
commit 611795beee
25 changed files with 23 additions and 235 deletions

View File

@@ -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