babylonlabs-io / babylon-staking-indexer

Other
1 stars 2 forks source link

Error in fetching params #63

Open gusin13 opened 1 week ago

gusin13 commented 1 week ago
│ {"level":"debug","time":"2024-11-22T09:00:41Z","message":"Fetched 21 events from block 8708"}                                                                                    │
│ panic: interface conversion: interface {} is primitive.D, not *bbnclient.StakingParams                                                                                           │
│                                                                                                                                                                                  │
│ goroutine 805 [running]:                                                                                                                                                         │
│ github.com/babylonlabs-io/babylon-staking-indexer/internal/db.(*Database).GetStakingParams(0xc001e90d20?, {0x3652150, 0xc001e70960}, 0x0)                                        │
│     /go/src/github.com/babylonlabs-io/babylon-staking-indexer/internal/db/params.go:91 +0x1e5                                                                                    │
│ github.com/babylonlabs-io/babylon-staking-indexer/internal/services.(*Service).handleSpendingUnbondingTransaction(0xc001356e80, {0x3652150, 0xc001e70960}, 0xc002546f40, 0x0, 0x │
│ c001dd6600)                                                                                                                                                                      │
│     /go/src/github.com/babylonlabs-io/babylon-staking-indexer/internal/services/watch_btc_events.go:174 +0x53                                                                    │
│ github.com/babylonlabs-io/babylon-staking-indexer/internal/services.(*Service).watchForSpendUnbondingTx(0xc001356e80, 0xc001b8dba0, 0xc001dd6600)                                │
│     /go/src/github.com/babylonlabs-io/babylon-staking-indexer/internal/services/watch_btc_events.go:62 +0x168                                                                    │
│ created by github.com/babylonlabs-io/babylon-staking-indexer/internal/services.(*Service).registerUnbondingSpendNotification in goroutine 1                                      │
│     /go/src/github.com/babylonlabs-io/babylon-staking-indexer/internal/services/delegation_helpers.go:58 +0x46b