Merge pull request #8958

b0bf49a blockchain_db: add k-anonymity to txid fetching (jeffro256)
This commit is contained in:
luigi1111 2023-10-25 21:34:06 -04:00
commit d5da693866
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
13 changed files with 770 additions and 1 deletions

View file

@ -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',