Skip to content

Update get_neuron_for_pubkey_and_subnet to use block_hash instead of block and block_hash#3084

Merged
basfroman merged 1 commit intoopentensor:stagingfrom
yuma-doc:patch-1
Oct 7, 2025
Merged

Update get_neuron_for_pubkey_and_subnet to use block_hash instead of block and block_hash#3084
basfroman merged 1 commit intoopentensor:stagingfrom
yuma-doc:patch-1

Conversation

@yuma-doc
Copy link
Contributor

@yuma-doc yuma-doc commented Oct 6, 2025

block_hash is retrieved above and adding both blockhash and block to the neron_for_uid call results in you getting "Only one of block, block_hash, or reuse_block can be specified." when the determine_block_hash call occurs later

fixes #3083

block_hash is retrieved above and adding both blockhash and block to the neron_for_uid call results in you getting "Only one of ``block``, ``block_hash``, or ``reuse_block`` can be specified." when the determine_block_hash call occurs later
@yuma-doc yuma-doc changed the title Updat get_neuron_for_pubkey_and_subnet to remove block Update get_neuron_for_pubkey_and_subnet to remove block Oct 6, 2025
@yuma-doc yuma-doc changed the base branch from master to staging October 6, 2025 21:11
@yuma-doc yuma-doc changed the title Update get_neuron_for_pubkey_and_subnet to remove block Update get_neuron_for_pubkey_and_subnet to use block_hash instead of block and block_hash Oct 6, 2025
@Swamination-Yuma
Copy link

Appears to force an extra block/hash/reuse value through neuron_for_uid() if specifying a uid, resulting in the error.

@basfroman basfroman merged commit b65bc43 into opentensor:staging Oct 7, 2025
488 of 491 checks passed
@ibraheem-abe ibraheem-abe mentioned this pull request Oct 8, 2025
basfroman added a commit that referenced this pull request Oct 14, 2025
Update get_neuron_for_pubkey_and_subnet to use block_hash instead of block and block_hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncSubtensor get_neuron_for_pubkey_and_subnet passes block and block_hash to future calls

4 participants