Skip to content

Commit

Permalink
error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Nov 21, 2024
1 parent 1aa3701 commit 170b8f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func Migration0191(db types.DB) error {
changeWorkingTree := false
err = merkleDB.PrefixedIterate(merkletypes.WorkingTreeKey, nil, func(key, value []byte) (bool, error) {
if len(key) != len(merkletypes.WorkingTreeKey)+1+8 {
return false, nil
return true, fmt.Errorf("unexpected working tree key; expected: %d; got: %d", len(merkletypes.WorkingTreeKey)+1+8, len(key))
}

version := dbtypes.ToUint64Key(key[len(key)-8:])
Expand Down Expand Up @@ -210,6 +210,7 @@ func Migration0192(ctx context.Context, db types.DB, rpcClient *rpcclient.RPCCli
height := extraData.BlockNumber + 1
header, err := rpcClient.Header(ctx, &height)
if err != nil {
fmt.Printf("failed to get header for block height: %d; %s\n", height, err.Error())
continue
}

Expand Down

0 comments on commit 170b8f4

Please sign in to comment.