From 4b45fbc3e1757b9aa2c06609d316336c04a58421 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 11 Jan 2021 10:35:32 -0500 Subject: [PATCH] bulk insert --- lbry/db/database.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lbry/db/database.py b/lbry/db/database.py index e3e95188f..3ca8de3e4 100644 --- a/lbry/db/database.py +++ b/lbry/db/database.py @@ -263,11 +263,11 @@ class Database: async def insert_blocks(self, blocks): return await self.run(q.insert_blocks, blocks) - async def insert_block_filter(self, height: int, factor: int, address_filter: bytes): - return await self.run(q.insert_block_filter, height, factor, address_filter) + async def insert_block_filters(self, filters): + return await self.run(q.insert_block_filters, filters) - async def insert_tx_filter(self, tx_hash: bytes, height: int, address_filter: bytes): - return await self.run(q.insert_tx_filter, tx_hash, height, address_filter) + async def insert_tx_filters(self, filters): + return await self.run(q.insert_tx_filters, filters) async def insert_transaction(self, block_hash, tx): return await self.run(q.insert_transaction, block_hash, tx)