Skip to content

Commit

Permalink
Add temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Apr 14, 2022
1 parent 3cbef04 commit 3343955
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions minter-connector/cmd/mhub-minter-connector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,23 @@ func relayMinterEvents(ctx context.Context) context.Context {
for _, block := range blocks.Blocks {
ctx.SetLastCheckedMinterBlock(block.Height)
ctx.Logger.Debug("Checking block", "height", block.Height)

// temp fix for missed withdrawal
if block.Height == 10233000 {
ctx.Logger.Debug("Applying temp fix", "height", block.Height)

batches = append(batches, cosmos.Batch{
BatchNonce: ctx.LastBatchNonce(),
EventNonce: ctx.LastEventNonce(),
CoinId: 2107,
TxHash: "Mt46922c03e9d0a40991c3ab54f227bc8c833bf7230d9e1c43a66e00f3abeee163",
Height: block.Height,
})

ctx.SetLastEventNonce(ctx.LastEventNonce() + 1)
ctx.SetLastBatchNonce(ctx.LastBatchNonce() + 1)
}

for _, tx := range block.Transactions {
if tx.Type == uint64(transaction.TypeSend) {
data, _ := tx.Data.UnmarshalNew()
Expand Down

0 comments on commit 3343955

Please sign in to comment.