Skip to content

Error while processing summary: 'int' object has no attribute 'to_btc_str' #5546

@overcoin

Description

@overcoin

Issue and Steps to Reproduce

lightning-cli summary

{
   "code": -32600,
   "message": "Error while processing summary: 'int' object has no attribute 'to_btc_str'",
   "traceback": "Traceback (most recent call last):\n  File \"/home/XXX/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 627, in _dispatch_request\n    result = self._exec_func(method.func, request)\n  File \"/home/XXX/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 609, in _exec_func\n    return func(*ba.args, **ba.kwargs)\n  File \"/home/XXX/plugins/summary/summary.py\", line 169, in summary\n    reply['fees_collected'] = info['fees_collected_msat'].to_btc_str()\nAttributeError: 'int' object has no attribute 'to_btc_str'\n"
}

getinfo output

"version": "v0.12.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions