Skip to content

accounts_balances returns error on unopened blocks #4064

@fossephate

Description

@fossephate

Summary

Seemingly starting in v24, on multiple nodes, querying an unopened block with accounts_balances returns:
"error": "Account not found"
The same block queried with account_balance returns as expected

Node version

v24RC2

Build details

N/A

OS and version

Windows, Linux

Steps to reproduce the behavior

  1. Send a block to a new, unopened address
  2. Call accounts_balances on the address

Expected behavior

https://docs.nano.org/commands/rpc-protocol/#accounts_balances

Actual behavior

{
    "balances": {
        "nano_37rc7hmpbhaxiiuycptn9shusdiefzwbmh6qj4mcfzex98idmqd4rtm9pkum": {
            "error": "Account not found"
        }
    }
}

Possible solution

This appears to be a bug related to changes introduced in v24, as the issue doesn't appear to be present in v23.3 nodes

Supporting files

Example account / RPC calls:

{
  "action": "account_balance",
  "account": "nano_37rc7hmpbhaxiiuycptn9shusdiefzwbmh6qj4mcfzex98idmqd4rtm9pkum"
}
{
  "action": "accounts_balances",
  "accounts": ["nano_37rc7hmpbhaxiiuycptn9shusdiefzwbmh6qj4mcfzex98idmqd4rtm9pkum"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrpcChanges related to Remote Procedure Calls

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions