Skip to content

Commit

Permalink
[chain-exporter] fix minor bug in getBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybxyz committed Aug 12, 2020
1 parent 7a698e1 commit cbf16a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain-exporter/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (db *Database) InsertExportedData(block *schema.Block, txs []*schema.Transa
vals []*schema.Validator, precommits []*schema.PreCommit) error {

err := db.RunInTransaction(func(tx *pg.Tx) error {
err := tx.Insert(&block)
err := tx.Insert(block)
if err != nil {
return fmt.Errorf("failed to insert block: %s", err)
}
Expand Down

0 comments on commit cbf16a7

Please sign in to comment.