diff --git a/electrum_nmc/electrum/commands.py b/electrum_nmc/electrum/commands.py index 9a5973b94a23..0d8e7c41812b 100644 --- a/electrum_nmc/electrum/commands.py +++ b/electrum_nmc/electrum/commands.py @@ -1132,7 +1132,15 @@ async def getfeerate(self, fee_method=None, fee_level=None): return self.config.fee_per_kb(dyn=dyn, mempool=mempool, fee_level=fee_level) @command('n') - async def name_show(self, identifier, stream_id=None): + async def name_show(self, identifier, options=None, stream_id=None): + # Handle Bitcoin-Core-style options + if options is not None: + if "streamID" in options: + if stream_id is None: + stream_id = options["streamID"] + else: + raise Exception("stream_id specified in both Electrum and Core style") + # TODO: support non-ASCII encodings identifier_bytes = identifier.encode("ascii") sh = name_identifier_to_scripthash(identifier_bytes) @@ -1372,6 +1380,7 @@ def eval_bool(x: str) -> bool: 'value': (None, "The value to assign to the name"), 'trigger_txid':(None, "Broadcast the transaction when this txid reaches the specified number of confirmations"), 'trigger_name':(None, "Broadcast the transaction when this name reaches the specified number of confirmations"), + 'options': (None, "Options in Bitcoin-Core-style dict"), }