Skip to content

Commit

Permalink
update gossipsub blocks to handle deneb blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cortze committed Mar 21, 2024
1 parent 08d9ea8 commit 3ae577b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ networks:

services:
db:
image: postgres:14.1-alpine
image: postgres:latest
restart: unless-stopped
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DATABASE=armiarmadb
volumes:
- type: bind
source: ./app-data/init-armiarma.sql
Expand Down
6 changes: 3 additions & 3 deletions pkg/networks/ethereum/gossip_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package ethereum
import (
"bytes"
"fmt"
"github.com/protolambda/zrnt/eth2/beacon/phase0"
"time"

// bls "github.com/phoreproject/github.com/bls/g1pubs"

"github.com/migalabs/armiarma/pkg/gossipsub"
"github.com/protolambda/zrnt/eth2/beacon/capella"
"github.com/protolambda/zrnt/eth2/beacon/common"
"github.com/protolambda/zrnt/eth2/beacon/phase0"
"github.com/protolambda/zrnt/eth2/beacon/deneb"
"github.com/protolambda/zrnt/eth2/configs"
"github.com/protolambda/ztyp/codec"

Expand Down Expand Up @@ -140,7 +140,7 @@ func (mh *EthMessageHandler) BeaconBlockMessageHandler(msg *pubsub.Message) (gos
return nil, err
}
msgBuf := bytes.NewBuffer(msgBytes)
bblock := new(capella.SignedBeaconBlock)
bblock := new(deneb.SignedBeaconBlock)

err = bblock.Deserialize(configs.Mainnet, codec.NewDecodingReader(msgBuf, uint64(len(msgBuf.Bytes()))))
if err != nil {
Expand Down

0 comments on commit 3ae577b

Please sign in to comment.