Compare commits

..
Author SHA1 Message Date
Victor Shyba abfe0be81e do a reatriable call so the service doesnt die 2020-02-21 17:26:31 -03:00
Victor Shyba 820b7a6753 check its broadcasted 2020-02-21 17:26:04 -03:00
2 changed files with 0 additions and 27 deletions

No files matched your search

-19
View File
@@ -1151,25 +1151,6 @@ class Daemon(metaclass=JSONRPCServerType):
wallet.save()
return {key: value}
def jsonrpc_preference_clear(self, key, wallet_id=None):
"""
Clear daemon preference
Usage:
preference_clear (<key>) [--wallet_id=<wallet_id>]
Options:
--key=<key> : (str) key associated with value
--wallet_id=<wallet_id> : (str) restrict operation to specific wallet
Returns:
(dict) Updated dictionary of daemon preferences
"""
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
del wallet.preferences[key]
wallet.save()
return wallet.preferences.to_dict_without_ts()
WALLET_DOC = """
Create, modify and inspect wallets.
"""
@@ -239,14 +239,6 @@ class WalletEncryptionAndSynchronization(CommandTestCase):
{"one": "1", "two": "2", "conflict": "2", "another": "B", "fruit": ["peach", "apricot"]}
)
daemon.jsonrpc_preference_clear("one")
self.assertDictEqual(
# "two" key added and "conflict" value changed to "2"
daemon.jsonrpc_preference_get(),
{"two": "2", "conflict": "2", "another": "B", "fruit": ["peach", "apricot"]}
)
# Channel Certificate
channel = await daemon2.jsonrpc_channel_create('@foo', '0.1')
await self.confirm_tx(channel.id, self.daemon2.ledger)