Skip to content

Commit

Permalink
cosmetic changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristure committed Aug 7, 2024
1 parent 2126233 commit a8bd56e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions process/outportBlockConverter.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (o *outportBlockConverter) handleHeaderV1(headerBytes []byte, shardBlockDat
}

header := &hyperOutportBlocks.Header{}
shardBlockData.Header = header
header.Nonce = blockHeader.Nonce
header.PrevHash = blockHeader.PrevHash
header.PrevRandSeed = blockHeader.PrevRandSeed
Expand Down Expand Up @@ -180,8 +181,6 @@ func (o *outportBlockConverter) handleHeaderV1(headerBytes []byte, shardBlockDat
header.AccumulatedFees = accumulatedFees
header.DeveloperFees = developerFees

shardBlockData.Header = header

return nil
}

Expand All @@ -193,6 +192,7 @@ func (o *outportBlockConverter) handleHeaderV2(headerBytes []byte, shardBlockDat
}

header := &hyperOutportBlocks.Header{}
shardBlockData.Header = header
header.Nonce = blockHeader.Header.Nonce
header.PrevHash = blockHeader.Header.PrevHash
header.PrevRandSeed = blockHeader.Header.PrevRandSeed
Expand Down Expand Up @@ -265,8 +265,6 @@ func (o *outportBlockConverter) handleHeaderV2(headerBytes []byte, shardBlockDat
shardBlockData.ScheduledGasPenalized = blockHeader.ScheduledGasPenalized
shardBlockData.ScheduledGasRefunded = blockHeader.ScheduledGasRefunded

shardBlockData.Header = header

return nil
}

Expand Down

0 comments on commit a8bd56e

Please sign in to comment.