Closed RafilxTenfen closed 5 months ago
@gitferry the failing on CI https://app.circleci.com/jobs/github/babylonchain/staking-indexer/738 Is related to a invalid value here
I tried to hardcode the seed 28
to reproduce, but was not able to
Any tips?
Re the failing on CI https://app.circleci.com/jobs/github/babylonchain/staking-indexer/738
So this is flaky right now. I think the culprit is that Intn()
will panic when the input is 0
. This can happen if params.MaxStakingTime = params.MinStakingTime
. It would be good if you can fix it in this PR.
In testutils/datagen/params.go
, we change line 52:
maxStakingTime := uint16(r.Intn(10000)) + minStakingTime
-> maxStakingTime := uint16(r.Intn(10000)) + minStakingTime + 1
cli
package to avoid having more than one file inmain
packagebtc-headers
to query BTC client for block heights and outputs it into thex/btclightclient
genesis state formatCloses: #32
Example
It should generate 4 block 10 ~ 13 (inclusive)