Watch for spends to function without txindex.

BTC -> XMR works.
This commit is contained in:
tecnovert
2020-11-30 01:05:30 +02:00
parent 9b4a0dd276
commit 4913ac7a2b
4 changed files with 225 additions and 138 deletions

View File

@@ -35,3 +35,8 @@ class PARTInterface(BTCInterface):
def getNewAddress(self, use_segwit):
return self.rpc_callback('getnewaddress', ['swap_receive'])
def haveSpentIndex(self):
version = self.getDaemonVersion()
index_info = self.rpc_callback('getinsightinfo' if int(str(version)[:2]) > 19 else 'getindexinfo')
return index_info['spentindex']