Skip to content

Commit 5454c56

Browse files
qdm12ARR4N
andauthored
Simplify eth/fetcher/block_fetcher.go
Co-authored-by: Arran Schlosberg <[email protected]> Signed-off-by: Quentin McGaw <[email protected]>
1 parent b2c9e55 commit 5454c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/fetcher/block_fetcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ func (f *BlockFetcher) loop() {
686686
// Mark the body matched, reassemble if still unknown
687687
matched = true
688688
if f.getBlock(hash) == nil {
689-
body := &types.Body{Transactions: task.transactions[i], Uncles: task.uncles[i]}
690-
block := types.NewBlockWithHeader(announce.header).WithBody(*body)
689+
body := types.Body{Transactions: task.transactions[i], Uncles: task.uncles[i]}
690+
block := types.NewBlockWithHeader(announce.header).WithBody(body)
691691
block.ReceivedAt = task.time
692692
blocks = append(blocks, block)
693693
} else {

0 commit comments

Comments
 (0)