Skip to content

Commit ffde983

Browse files
authored
Merge pull request #108 from opentensor/feat/thewhaleking/expose-get_block_handler-publicly
2 parents 7ffbff9 + 8a04ec0 commit ffde983

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
@@ -1557,6 +1557,8 @@ async def result_handler(
15571557
response["result"]["block"], block_data_hash=block_hash
15581558
)
15591559

1560+
get_block_handler = _get_block_handler
1561+
15601562
async def get_block(
15611563
self,
15621564
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
@@ -1297,6 +1297,8 @@ def result_handler(message: dict, subscription_id: str) -> tuple[Any, bool]:
12971297
response["result"]["block"], block_data_hash=block_hash
12981298
)
12991299

1300+
get_block_handler = _get_block_handler
1301+
13001302
def get_block(
13011303
self,
13021304
block_hash: Optional[str] = None,

0 commit comments

Comments
 (0)