mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
beacon/blsync: ensure blobHashes list is not null
This commit is contained in:
parent
db01089c72
commit
ed3856de83
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ func (ec *engineClient) callNewPayload(fork string, event types.ChainHeadEvent)
|
||||||
return resp.Status, err
|
return resp.Status, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func collectBlobHashes(b *ctypes.Block) (list []common.Hash) {
|
func collectBlobHashes(b *ctypes.Block) []common.Hash {
|
||||||
|
list := make([]common.Hash, 0)
|
||||||
for _, tx := range b.Transactions() {
|
for _, tx := range b.Transactions() {
|
||||||
for _, h := range tx.BlobHashes() {
|
for _, h := range tx.BlobHashes() {
|
||||||
list = append(list, h)
|
list = append(list, h)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue