Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions bittensor/core/async_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import copy
import ssl
from datetime import datetime, timezone
from typing import cast, Optional, Any, Union, Iterable, TYPE_CHECKING, Literal
from typing import TYPE_CHECKING, Any, Iterable, Literal, Optional, Union, cast

import asyncstdlib as a
import scalecodec
Expand All @@ -14,17 +14,17 @@
from scalecodec import GenericCall

from bittensor.core.chain_data import (
CrowdloanInfo,
CrowdloanConstants,
CrowdloanInfo,
DelegateInfo,
DynamicInfo,
MetagraphInfo,
NeuronInfoLite,
NeuronInfo,
NeuronInfoLite,
ProposalVoteData,
ProxyAnnouncementInfo,
ProxyInfo,
ProxyConstants,
ProxyInfo,
ProxyType,
RootClaimType,
SelectiveMetagraphIndex,
Expand Down Expand Up @@ -69,9 +69,9 @@
)
from bittensor.core.extrinsics.asyncex.mev_shield import submit_encrypted_extrinsic
from bittensor.core.extrinsics.asyncex.move_stake import (
transfer_stake_extrinsic,
swap_stake_extrinsic,
move_stake_extrinsic,
swap_stake_extrinsic,
transfer_stake_extrinsic,
)
from bittensor.core.extrinsics.asyncex.proxy import (
add_proxy_extrinsic,
Expand All @@ -83,8 +83,8 @@
proxy_extrinsic,
reject_announcement_extrinsic,
remove_announcement_extrinsic,
remove_proxy_extrinsic,
remove_proxies_extrinsic,
remove_proxy_extrinsic,
)
from bittensor.core.extrinsics.asyncex.registration import (
burned_register_extrinsic,
Expand Down Expand Up @@ -3330,7 +3330,7 @@ async def get_next_epoch_start_block(
netuid=netuid, tempo=tempo, block_hash=block_hash
)

if not blocks_until:
if blocks_until is None:
return None

return current_block + blocks_until + 1
Expand Down
2 changes: 1 addition & 1 deletion bittensor/core/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,7 @@ def get_next_epoch_start_block(
netuid=netuid, tempo=tempo, block=current_block
)

if not blocks_until:
if blocks_until is None:
return None

return current_block + blocks_until + 1
Expand Down
Loading