diff options
author | luigi1111 <luigi1111w@gmail.com> | 2023-10-25 21:34:06 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2023-10-25 21:34:06 -0400 |
commit | d5da693866d6c31e34ac8d40af211f6733a3ff4f (patch) | |
tree | aaef4939b5fdd425b71dbb24cf106be27b2f9317 /utils/python-rpc | |
parent | Merge pull request #8933 (diff) | |
parent | blockchain_db: add k-anonymity to txid fetching (diff) | |
download | monero-d5da693866d6c31e34ac8d40af211f6733a3ff4f.tar.xz |
Merge pull request #8958
b0bf49a blockchain_db: add k-anonymity to txid fetching (jeffro256)
Diffstat (limited to 'utils/python-rpc')
-rw-r--r-- | utils/python-rpc/framework/daemon.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 43a1aa469..c7831d1ee 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -590,6 +590,18 @@ class Daemon(object): } return self.rpc.send_json_rpc_request(flush_cache) + def get_txids_loose(self, txid_template, num_matching_bits): + get_txids_loose = { + 'method': 'get_txids_loose', + 'params': { + 'txid_template': txid_template, + 'num_matching_bits': num_matching_bits + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_txids_loose) + def sync_txpool(self): sync_txpool = { 'method': 'sync_txpool', |