Skip to content

Commit

Permalink
used passed height, fix fractional shares error message
Browse files Browse the repository at this point in the history
  • Loading branch information
asamere committed Feb 14, 2023
1 parent 557f448 commit c45c564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/cosmos_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ func (c *CosmosIndexer) IndexDelegationsFromStateExport(dataDir, chain string, h
return errors.Wrapf(err, "%s delegation to %s error parsing shares %s", d.DelegatorAddress, d.ValidatorAddress, d.Shares)
}
if value <= 0 {
log.Warnf("%s delegation to %s with value %f. string shares: %s", d.DelegatorAddress, d.ValidatorAddress, value)
log.Warnf("%s delegation to %s with value %f. string shares: %s", d.DelegatorAddress, d.ValidatorAddress, value, d.Shares)
}
event := &types.CosmosStakingEvent{
Chain: c.chain.Name,
EventType: "initial",
Delegator: d.DelegatorAddress,
Validator: d.ValidatorAddress,
Value: value,
BlockNumber: c.chain.SnapshotStartBlock - 1,
BlockNumber: uint64(height),
TxHash: "00000000000000000000000000000000",
EventIndex: 0,
}
Expand Down

0 comments on commit c45c564

Please sign in to comment.