mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-05-18 07:19:27 +00:00
feat(db): change function signature to avoid unpacking
This commit is contained in:
parent
2a780a4435
commit
aef4b1b876
@ -47,7 +47,7 @@ class BlockRepository:
|
||||
def __init__(self, client: DbClient):
|
||||
self.client = client
|
||||
|
||||
async def create(self, *blocks: Block, allow_chain_root: bool = False) -> None:
|
||||
async def create(self, blocks: List[Block], allow_chain_root: bool = False) -> None:
|
||||
"""
|
||||
Insert blocks into the database with proper height calculation.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user