specify Returns correctly for docs gen

This commit is contained in:
Victor Shyba 2021-01-28 18:20:04 -03:00 committed by Lex Berezhny
parent 4905e65f14
commit f6cfe266e0

View file

@ -2808,7 +2808,12 @@ class Daemon(metaclass=JSONRPCServerType):
for channel certificates, defaults to all accounts.
--wallet_id=<wallet_id> : (str) restrict operation to specific wallet
Returns: {}
Returns:
(dict) Signature if successfully made, (None) or an error otherwise
{
"signature": (str) The signature of the comment,
"signing_ts": (str) The timestamp used to sign the comment,
}
"""
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
assert not wallet.is_locked, "Cannot spend funds with locked wallet, unlock first."