Skip to content

Commit

Permalink
fmting
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Sep 20, 2024
1 parent 9b7a357 commit 440c808
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ sequencer-shadow-sepolia:
--http-port=6066 \
--http-host=0.0.0.0 \
--db-path=../seq-db\
--log-level=debug \
--log-level=info \
--seq-enable \
--seq-shadow-mode \
--seq-block-time=5 \
--seq-shadow-mode-sync-to=1 \
--seq-shadow-mode-sync-to=0 \
--seq-rpc-endpoint="" \
--network sepolia \
--rpc-call-max-steps=4123000
Expand Down
4 changes: 3 additions & 1 deletion blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,9 @@ func (b *Blockchain) verifyAgainstReference(pending *Pending, commitments *core.
func (b *Blockchain) validateStateDiff(shadowStateUpdate, pendingStateUpdate *core.StateUpdate) error {
diffString, diffFound := pendingStateUpdate.StateDiff.Diff(shadowStateUpdate.StateDiff, "sequencer", "sepolia")
if diffFound {
return fmt.Errorf("state diff validation failed %s", diffString)
// Todo: make format nicely
fmt.Println(diffString)
return fmt.Errorf("state diff validation failed")
}
return nil
}
Expand Down
1 change: 0 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ func New(cfg *Config, version string) (*Node, error) { //nolint:gocyclo,funlen
if err != nil {
return nil, err
}
fmt.Println("head.Header", head.Header)
// We assume that there is at least one transaction in the block or that it is a pre-0.7 block.
if _, err = core.VerifyBlockHash(head, &cfg.Network, stateUpdate.StateDiff); err != nil {
return nil, errors.New("unable to verify latest block hash; are the database and --network option compatible?")
Expand Down

0 comments on commit 440c808

Please sign in to comment.