Skip to content

Commit

Permalink
better log to find HandleNoneSplitPayments fk issue
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Nov 8, 2023
1 parent 67b8249 commit 83c3512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/psql.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (p *Psql) HandleNoneSplitPayments(dbBlockID int64, payments []*pb.NoSplitPa
//todo: detect drive vs fleet from backend api
_, err = p.db.Exec("INSERT INTO hivemapper.no_split_payments (mint_id) VALUES ($1) RETURNING id", mintDbID)
if err != nil {
return fmt.Errorf("inserting payment: %w", err)
return fmt.Errorf("inserting NoneSplitPayments with mint_id %d mint_to %q tx %q: %w", mintDbID, payment.Mint.To, payment.Mint.TrxHash, err)
}
}
return nil
Expand Down

0 comments on commit 83c3512

Please sign in to comment.