Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
add missing async chaindb method
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Apr 7, 2019
1 parent e470ee9 commit 8a56ff9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trinity/db/beacon/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ async def coro_get_canonical_block_root_by_slot(self, slot: int) -> Hash32:
async def coro_get_canonical_head(self, block_class: Type[BaseBeaconBlock]) -> BaseBeaconBlock:
pass

@abstractmethod
async def coro_get_canonical_head_root(self)-> Hash32:
pass

@abstractmethod
async def coro_get_finalized_head(self, block_class: Type[BaseBeaconBlock]) -> BaseBeaconBlock:
pass
Expand Down Expand Up @@ -124,6 +128,7 @@ class AsyncBeaconChainDBPreProxy(BaseAsyncBeaconChainDB):
coro_get_canonical_block_by_slot = async_method('get_canonical_block_by_slot')
coro_get_canonical_block_root_by_slot = async_method('get_canonical_block_root_by_slot')
coro_get_canonical_head = async_method('get_canonical_head')
coro_get_canonical_head_root = async_method('get_canonical_head_root')
coro_get_finalized_head = async_method('get_finalized_head')
coro_get_block_by_root = async_method('get_block_by_root')
coro_get_score = async_method('get_score')
Expand Down

0 comments on commit 8a56ff9

Please sign in to comment.