async def set_used_up_to(self, index: uint32, in_transaction=False) -> None:
    "\n        Sets a derivation path to used so we don't use it again.\n        "
    if (not in_transaction):
        (await self.db_wrapper.lock.acquire())
    try:
        cursor = (await self.db_connection.execute('UPDATE derivation_paths SET used=1 WHERE derivation_index<=?', (index,)))
        (await cursor.close())
    finally:
        if (not in_transaction):
            (await self.db_connection.commit())
            self.db_wrapper.lock.release()
Sets a derivation path to used so we don't use it again.
async def set_used_up_to(self, index: uint32, in_transaction=False) -> None:
    "\n        \n        "
    if (not in_transaction):
        (await self.db_wrapper.lock.acquire())
    try:
        cursor = (await self.db_connection.execute('UPDATE derivation_paths SET used=1 WHERE derivation_index<=?', (index,)))
        (await cursor.close())
    finally:
        if (not in_transaction):
            (await self.db_connection.commit())
            self.db_wrapper.lock.release()