Skip to content

Commit 8a04ec0

Browse files
committed
Exposes _get_block_handler publicly in both async and sync substrate interfaces.
1 parent 5535515 commit 8a04ec0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,8 @@ async def result_handler(
13941394
response["result"]["block"], block_data_hash=block_hash
13951395
)
13961396

1397+
get_block_handler = _get_block_handler
1398+
13971399
async def get_block(
13981400
self,
13991401
block_hash: Optional[str] = None,

async_substrate_interface/sync_substrate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,8 @@ def result_handler(message: dict, subscription_id: str) -> tuple[Any, bool]:
11411141
response["result"]["block"], block_data_hash=block_hash
11421142
)
11431143

1144+
get_block_handler = _get_block_handler
1145+
11441146
def get_block(
11451147
self,
11461148
block_hash: Optional[str] = None,

0 commit comments

Comments
 (0)