Skip to content

Commit

Permalink
Merge pull request #434 from onflow/remove-genesis-block-patch
Browse files Browse the repository at this point in the history
Remove Genesis block patch introduced for PreviewNet
  • Loading branch information
devbugging authored Aug 14, 2024
2 parents 29a3b57 + 0582f45 commit bfafa2e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,18 +423,6 @@ func (b *BlockChainAPI) GetBlockByNumber(

block, err := b.blocks.GetByHeight(height)

// TEMP(m-Peter): Remove after PreviewNet
// This is a workaround to make available the Genesis Block.
if block == nil && blockNumber == rpc.EarliestBlockNumber {
block = models.GenesisBlock(b.config.FlowNetworkID)
apiBlock, err := b.prepareBlockResponse(ctx, block, fullTx)
if err != nil {
return handleError[*Block](err, l, b.collector)
}

return apiBlock, nil
}

if err != nil {
return handleError[*Block](err, l, b.collector)
}
Expand Down

0 comments on commit bfafa2e

Please sign in to comment.