Skip to content

[Bug]: Inconsistent annual-provisions values between v1 and v2 with --height flag #22302

@akhilkumarpilli

Description

@akhilkumarpilli

Description

There is an inconsistency in the annual-provisions values returned by v1 and v2 when querying with the --height flag. Specifically, when querying at initial block (height=1), v1 returns the expected provision values, while v2 returns 0.000000000000000000. This behavior should be consistent between both versions.

Steps to Reproduce

  1. Use the --height flag to query annual-provisions on both v1 and v2 for the same block height.
  2. Compare the returned values.

Example:

# Query using simd (v1) with height flag
$ simd q mint annual-provisions -o json --height 1
{
  "annual_provisions": "25000000.000000000000000000"
}
# Query using simdv2 (v2) with the same height flag
$ simdv2 q mint annual-provisions -o json --height 1
{
  "annual_provisions": "0.000000000000000000"
}

# Query using simdv2 (v2) with height 2 for comparison
$ simdv2 q mint annual-provisions -o json --height 2
{
  "annual_provisions": "25000000.000000000000000000"
}

Additional Context

It might be an issue with committing the state at genesis in v2, where height 1 is committed as an empty block.

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions