mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
beacon/blsync: fix lint warnings
This commit is contained in:
parent
0089d3abdf
commit
2c924fe8a3
3 changed files with 3 additions and 5 deletions
|
|
@ -141,6 +141,6 @@ func (s *beaconBlockSync) updateEventFeed() {
|
|||
s.chainHeadFeed.Send(types.ChainHeadEvent{
|
||||
BeaconHead: head.Header,
|
||||
Block: execBlock,
|
||||
Finalized: common.Hash(finality.Finalized.PayloadHeader.BlockHash()),
|
||||
Finalized: finality.Finalized.PayloadHeader.BlockHash(),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ func TestBlockSync(t *testing.T) {
|
|||
var expNumber, headNumber uint64
|
||||
if expHead != nil {
|
||||
p, _ := expHead.ExecutionPayload()
|
||||
expNumber = uint64(p.NumberU64())
|
||||
expNumber = p.NumberU64()
|
||||
}
|
||||
select {
|
||||
case event := <-headCh:
|
||||
|
|
|
|||
|
|
@ -117,9 +117,7 @@ func (ec *engineClient) callNewPayload(fork string, event types.ChainHeadEvent)
|
|||
func collectBlobHashes(b *ctypes.Block) []common.Hash {
|
||||
list := make([]common.Hash, 0)
|
||||
for _, tx := range b.Transactions() {
|
||||
for _, h := range tx.BlobHashes() {
|
||||
list = append(list, h)
|
||||
}
|
||||
list = append(list, tx.BlobHashes()...)
|
||||
}
|
||||
return list
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue