jsonrpc_channel_sign - Convert hexdata to a string before signing

Fixes #3533
This commit is contained in:
vertbyqb 2022-01-02 00:51:34 -06:00 committed by Victor Shyba
parent 8adec9d0ad
commit e066b2a9da

View file

@ -2907,6 +2907,7 @@ class Daemon(metaclass=JSONRPCServerType):
"signing_ts": (str) The timestamp used to sign the comment,
}
"""
hexdata = str(hexdata)
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
assert not wallet.is_locked, "Cannot spend funds with locked wallet, unlock first."
signing_channel = await self.get_channel_or_error(