Skip to content

Commit

Permalink
Merge pull request #30 from gballet/dump-eth1-block-and-root-hash
Browse files Browse the repository at this point in the history
dump eth1 block and root hash
  • Loading branch information
parithosh authored Oct 13, 2023
2 parents 64c9625 + dfd82e8 commit 73c065f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions verkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (g *VerkleGenesisCmd) Run(ctx context.Context, args ...string) error {

// Generate genesis block from the loaded config
eth1Block = eth1Genesis.ToBlock()
fmt.Println("genesis block: ", eth1Block)

// Set as default values
prevRandaoMix = common.Bytes32{}
Expand All @@ -129,6 +130,7 @@ func (g *VerkleGenesisCmd) Run(ctx context.Context, args ...string) error {
}

eth1BlockHash = common.Root(eth1Block.Hash())
fmt.Printf("eth1 block hash=%x\n", eth1BlockHash)

extra := eth1Block.Extra()
if len(extra) > common.MAX_EXTRA_DATA_BYTES {
Expand Down

0 comments on commit 73c065f

Please sign in to comment.