Skip to content

Commit

Permalink
update blockUpgrader
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Sep 3, 2024
1 parent d1ead48 commit d6a54f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/firenear/tools_upgrade_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@ func blockUpgrader(block *pbbstream.Block) (*pbbstream.Block, error) {
block.Timestamp = timestamppb.New(nb.GetFirehoseBlockTime())
block.LibNum = nb.GetFirehoseBlockLIBNum()

err = block.Payload.MarshalFrom(nb)
if err != nil {
return nil, fmt.Errorf("marshaling block %d: %w", block.Number, err)
}

return block, nil
}

0 comments on commit d6a54f3

Please sign in to comment.