Skip to content

Commit

Permalink
fix(en): Initialize SyncState in OutputHandler (#2618)
Browse files Browse the repository at this point in the history
## What ❔

OutputHandler must be added after ExternalIO, because the latter is
adding SyncStateResource

## Why ❔

Bug

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
popzxc authored Aug 8, 2024
1 parent 849c6a5 commit f0c8506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bin/external_node/src/node_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ impl ExternalNodeBuilder {
rocksdb_options,
);
self.node
.add_layer(persistence_layer)
.add_layer(io_layer)
.add_layer(persistence_layer)
.add_layer(main_node_batch_executor_builder_layer)
.add_layer(state_keeper_layer);
Ok(self)
Expand Down

0 comments on commit f0c8506

Please sign in to comment.