Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Aug 23, 2024
1 parent b640d33 commit a324f59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/evm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,25 @@ var verkleCommand = &cli.Command{
},
{
Name: "single-key",
Aliases: []string{"V"},
Aliases: []string{"vk"},
Usage: "compute the verkle tree key given an address and optional slot number",
Action: t8ntool.VerkleKey,
},
{
Name: "code-chunk-key",
Aliases: []string{"VCK"},
Aliases: []string{"vck"},
Usage: "compute the verkle tree key given an address and chunk number",
Action: t8ntool.VerkleCodeChunkKey,
},
{
Name: "chunkify-code",
Aliases: []string{"VCC"},
Aliases: []string{"vcc"},
Usage: "chunkify a given bytecode",
Action: t8ntool.VerkleChunkifyCode,
},
{
Name: "state-root",
Aliases: []string{"VR"},
Aliases: []string{"vsr"},
Usage: "compute the state-root of a verkle tree for the given alloc",
Action: t8ntool.VerkleRoot,
Flags: []cli.Flag{
Expand Down
2 changes: 2 additions & 0 deletions consensus/beacon/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/ethereum/go-ethereum/core/overlay"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/trie"
Expand Down Expand Up @@ -365,6 +366,7 @@ func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.
// fmt.Println("at block", header.Number, "performing transition?", state.Database().InTransition())
parent := chain.GetHeaderByHash(header.ParentHash)
if err := overlay.OverlayVerkleTransition(state, parent.Root, chain.Config().OverlayStride); err != nil {
log.Error("error performing the transition", "err", err)
panic(fmt.Sprintf("error performing the transition: %s", err))
}
}
Expand Down
1 change: 1 addition & 0 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func (ga *GenesisAlloc) flush(db ethdb.Database, triedb *trie.Database, blockhas
}

for addr, account := range *ga {
// TODO set back to AddBalance after rebase
statedb.SetBalance(addr, account.Balance)
statedb.SetCode(addr, account.Code)
statedb.SetNonce(addr, account.Nonce)
Expand Down

0 comments on commit a324f59

Please sign in to comment.