mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
plugins/sql: add bkpr-listaccountevents and bkpr-listincome support.
This *would* be a 1-line change (add it to Makefile) except that we previously assumed a "list" prefix on commands. These use the default refreshing, but they could be done better using the time-range parameters. Suggested-by: @niftynei Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Alex Myers
parent
9a591277f5
commit
d8320f015f
@@ -3727,7 +3727,61 @@ def test_sql(node_factory, bitcoind):
|
||||
{'name': 'type',
|
||||
'type': 'string'},
|
||||
{'name': 'channel',
|
||||
'type': 'short_channel_id'}]}}
|
||||
'type': 'short_channel_id'}]},
|
||||
'bkpr_accountevents': {
|
||||
'columns': [{'name': 'account',
|
||||
'type': 'string'},
|
||||
{'name': 'type',
|
||||
'type': 'string'},
|
||||
{'name': 'tag',
|
||||
'type': 'string'},
|
||||
{'name': 'credit_msat',
|
||||
'type': 'msat'},
|
||||
{'name': 'debit_msat',
|
||||
'type': 'msat'},
|
||||
{'name': 'currency',
|
||||
'type': 'string'},
|
||||
{'name': 'timestamp',
|
||||
'type': 'u32'},
|
||||
{'name': 'outpoint',
|
||||
'type': 'string'},
|
||||
{'name': 'blockheight',
|
||||
'type': 'u32'},
|
||||
{'name': 'origin',
|
||||
'type': 'string'},
|
||||
{'name': 'payment_id',
|
||||
'type': 'hex'},
|
||||
{'name': 'txid',
|
||||
'type': 'txid'},
|
||||
{'name': 'description',
|
||||
'type': 'string'},
|
||||
{'name': 'fees_msat',
|
||||
'type': 'msat'},
|
||||
{'name': 'is_rebalance',
|
||||
'type': 'boolean'},
|
||||
{'name': 'part_id',
|
||||
'type': 'u32'}]},
|
||||
'bkpr_income': {
|
||||
'columns': [{'name': 'account',
|
||||
'type': 'string'},
|
||||
{'name': 'tag',
|
||||
'type': 'string'},
|
||||
{'name': 'credit_msat',
|
||||
'type': 'msat'},
|
||||
{'name': 'debit_msat',
|
||||
'type': 'msat'},
|
||||
{'name': 'currency',
|
||||
'type': 'string'},
|
||||
{'name': 'timestamp',
|
||||
'type': 'u32'},
|
||||
{'name': 'description',
|
||||
'type': 'string'},
|
||||
{'name': 'outpoint',
|
||||
'type': 'string'},
|
||||
{'name': 'txid',
|
||||
'type': 'txid'},
|
||||
{'name': 'payment_id',
|
||||
'type': 'hex'}]}}
|
||||
|
||||
# Very rough checks of other list commands (make sure l2 has one of each)
|
||||
l2.rpc.offer(1, 'desc')
|
||||
|
||||
Reference in New Issue
Block a user