Skip to content

Commit

Permalink
Use a more descriptive name for func rowToBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
agodnic committed Nov 21, 2024
1 parent 82e864b commit eaefec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/converter_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func txnRowToTransaction(row idb.TxnRow) (generated.Transaction, error) {
return txn, nil
}

func rowToBlock(blockHeader *sdk.BlockHeader) generated.Block {
func hdrRowToBlock(blockHeader *sdk.BlockHeader) generated.Block {

rewards := generated.BlockRewards{
FeeSink: blockHeader.FeeSink.String(),
Expand Down
2 changes: 1 addition & 1 deletion api/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ func (si *ServerImplementation) fetchBlockHeaders(ctx context.Context, bf idb.Bl
return row.Error
}

results = append(results, rowToBlock(&row.BlockHeader))
results = append(results, hdrRowToBlock(&row.BlockHeader))
lastRow = row
}

Expand Down

0 comments on commit eaefec7

Please sign in to comment.