Open dustinxie opened 3 years ago
fairbank-Greenland
rosettacli test failed,because there's staking action in different height,when call api to get staking account's balance,there's error:
What version of iotex-core are you using (
ioctl version
)?latest
What operating system and processor architecture are you using?
don't care
What did you do? If possible, provide a recipe for reproducing the error.
when we handle the special account io000000000000000000000000stakingprotocol (staking protocol balance), it's balance is saved in-memory, and written to DB starting at Greenland height
for rosetta client in archive mode, this caused an issue b/c it cannot query the balance at a height that is below current tip height
so in archive mode, we also need to persist the staking protocol balance at each height (after native staking activation, and before Greenland) to DB
What did you expect to see?
What did you see instead?
@millken pls verify if this is still true
What version of iotex-core are you using (
ioctl version
)?latest
What operating system and processor architecture are you using?
don't care
What did you do? If possible, provide a recipe for reproducing the error.
when we handle the special account io000000000000000000000000stakingprotocol (staking protocol balance), it's balance is saved in-memory, and written to DB starting at Greenland height
for rosetta client in archive mode, this caused an issue b/c it cannot query the balance at a height that is below current tip height
so in archive mode, we also need to persist the staking protocol balance at each height (after native staking activation, and before Greenland) to DB
What did you expect to see?
What did you see instead?