deso-protocol / deso-protocol/core

Rosetta API Response to Calculate Balance of an Account Address at a given BlockHeight is incorrect

Open
#389 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
327
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Node is synced. Following is the API response for /network/status
![image](https://user-images.githubusercontent.com/77955726/183615076-3dc63b00-98a0-4089-aadf-b3ff76d7c0ca.png)

But balance at a given height is returning 0 for earlier blocks.
**Request: /account/balance**
`{"network_identifier": { "blockchain": "DeSo", "network": "MAINNET" }, "account_identifier": { "address": "BC1YLj1TE7A7RsRwJQkzvqAuMtd44re4QdQ39HNQhrFN3mTQMM5JxRL" }, "block_identifier": { "index": 87100 }}`

**Incorrect Response:**
`{ "block_identifier": { "index": 87100, "hash": "0000000000001cba466fc7d707c0f2b3779e2a17baa549c05c1e4f2acc5719e4" }, "balances": [ { "value": "0", "currency": { "symbol": "DESO", "decimals": 9 } } ] }`

These are the latest transactions for the given address:
https://www.openprosper.com/u/Brad_Stephens/transactions
At any block after 82856, balance should be 56470 (https://www.openprosper.com/u/Brad_Stephens#user-section-wallet)

**But Response shows balance is 0**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.