Skip to content

Commit 2a3ec9f

Browse files
committed
lint
1 parent 3d9b7f9 commit 2a3ec9f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

block/internal/executing/executor.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,17 +402,17 @@ func (e *Executor) produceBlock() error {
402402
// Update header's AppHash if needed and recompute state's LastHeaderHash to match
403403
headerModified := false
404404
switch {
405-
case len(header.Header.AppHash) == 0:
406-
header.Header.AppHash = bytes.Clone(newState.AppHash)
405+
case len(header.AppHash) == 0:
406+
header.AppHash = bytes.Clone(newState.AppHash)
407407
headerModified = true
408-
case bytes.Equal(header.Header.AppHash, newState.AppHash):
408+
case bytes.Equal(header.AppHash, newState.AppHash):
409409
// already matches expected state root
410-
case bytes.Equal(header.Header.AppHash, currentState.AppHash):
410+
case bytes.Equal(header.AppHash, currentState.AppHash):
411411
// header still carries previous state's apphash; update it to the new post-state value
412-
header.Header.AppHash = bytes.Clone(newState.AppHash)
412+
header.AppHash = bytes.Clone(newState.AppHash)
413413
headerModified = true
414414
default:
415-
return fmt.Errorf("header app hash mismatch - got: %x, want: %x", header.Header.AppHash, newState.AppHash)
415+
return fmt.Errorf("header app hash mismatch - got: %x, want: %x", header.AppHash, newState.AppHash)
416416
}
417417

418418
// If we modified the header's AppHash, we need to update the state's LastHeaderHash

block/internal/syncing/syncer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ func (s *Syncer) trySyncNextBlock(event *common.DAHeightEvent) error {
554554
if len(newState.AppHash) == 0 {
555555
return fmt.Errorf("execution client returned empty app hash")
556556
}
557-
if len(header.Header.AppHash) != 0 && !bytes.Equal(header.Header.AppHash, newState.AppHash) {
558-
return fmt.Errorf("header app hash mismatch - got: %x, want: %x", header.Header.AppHash, newState.AppHash)
557+
if len(header.AppHash) != 0 && !bytes.Equal(header.AppHash, newState.AppHash) {
558+
return fmt.Errorf("header app hash mismatch - got: %x, want: %x", header.AppHash, newState.AppHash)
559559
}
560560

561561
// Update DA height if needed

pkg/da/jsonrpc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This package is a **trimmed copy** of code from `celestia-node` to stay JSON-com
77
- `blob.go` comes from `celestia-node/blob/blob.go` @ tag `v0.28.4` (release v0.28.4), with unused pieces removed (blob v1, proof helpers, share length calc, appconsts dependency, etc.).
88
- `submit_options.go` mirrors the exported JSON fields of `celestia-node/state/tx_config.go` @ the same tag, leaving out functional options, defaults, and Cosmos keyring helpers.
99

10-
## Why copy instead of import?
10+
## Why copy instead of import
1111

1212
- Avoids pulling Cosmos SDK / celestia-app dependencies into ev-node for the small surface we need (blob JSON and commitment for v0).
1313
- Keeps binary size and module graph smaller while remaining wire-compatible with celestia-node's blob service.

sequencers/based/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ When at an epoch end, the retriever fetches transactions from **all DA blocks in
5959
3. Fetches forced inclusion blobs from `epochEnd`
6060
4. Returns all transactions as a single `ForcedInclusionEvent`
6161

62-
### Why Epoch-Based?
62+
### Why Epoch-Based
6363

6464
- **Efficiency**: Reduces the number of DA queries
6565
- **Batching**: Allows processing multiple DA blocks worth of transactions together

0 commit comments

Comments
 (0)