opentensor / btcli

Bittensor command line tool
https://docs.bittensor.com/btcli
13 stars 3 forks source link

Handle Null Neurons #213

Closed thewhaleking closed 1 day ago

thewhaleking commented 1 day ago

message (12).txt

Discord user ccc_coder reported this error when running btcli wallet overview. I have tested that I get the same error if specifying a netuid in the command running testnet subtensor local chain.

The error stems from the way we receive and decode NeuronInfoLite. I want to change this to how we do it in rao branch, using:

hex_bytes_results = await subtensor.query_runtime_api(
    runtime_api="NeuronInfoRuntimeApi",
    method="get_neurons_lite",
    params=[netuid],
    block_hash=None,
)

However, while this works on rao, when run on testnet branch of subtensor (localchain), I always get None.