Skip to content

supports go.work#2376

Closed
islishude wants to merge 3 commits intoethereum-optimism:developfrom
islishude:feat-gowork
Closed

supports go.work#2376
islishude wants to merge 3 commits intoethereum-optimism:developfrom
islishude:feat-gowork

Conversation

@islishude
Copy link
Contributor

Description
A clear and concise description of the features you're adding in this pull request.

go 1.18 introduced go workpace feature, it supports mulit-modules better.

Additional context

Screen Shot 2022-03-28 at 11 38 55

Metadata

https://go.dev/ref/mod#workspaces

@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2022

⚠️ No Changeset found

Latest commit: fd39949

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added 2-reviewers A-cannon Area: cannon A-ops Area: ops labels Mar 28, 2022
@tynes
Copy link
Contributor

tynes commented Mar 28, 2022

Thanks for the work! I'd prefer to do this in sections instead of in a single PR. The first section could be updating the versions of go in each go module + dockerfiles. The next section could be introducing the workspaces

@islishude
Copy link
Contributor Author

Okay then

@islishude islishude closed this Mar 29, 2022
theochap added a commit that referenced this pull request Dec 10, 2025
#2376)

## Description

This PR refactors the network driver and moves it inside the network
actor. This reduces the levels of indirection and allow the network
actor to comply more with the new builder refactor of the node services
by avoiding to define channels inside the driver.

Changes:

- Removes the `net` module inside `kona-p2p`. Moves the relevant files
to the `kona-node-services` crate.
- Removes the `broadcast` module inside the network actor. This can now
be directly handled using a mpsc channel inside the network actor to
implement the notion of queue. Outer interactions with the network actor
happen through the `NetworkActor` context (see for instance
op-rs/kona@main...theo/send-payloads-to-network#diff-b4e04fd02334c1ae45e956ad21312e81efacba5a7c1d477b176711dbae458c32R87-R126
or
op-rs/kona@main...theo/send-payloads-to-network#diff-00c31e9f9de711af31ebbd3b81f610ea12ea100a6a8d0db6a2ef86f52f298849L80-R75)
- Divides the network actor module with the following pattern to
propagate the lower level abstractions (resp
`Discv5Driver`/`Discv5Handler`/`GossipDriver`):
```
NodeBuilder ->build NodeDriver ->(async) start NodeHandler
```

Close #2365
theochap added a commit that referenced this pull request Dec 10, 2025
)

## Description

Rewire the sequencer unsafe payload sender from the engine to the
network.

Previously, the sequencer was sending the unsafe blocks it received from
the network `BuildTask` back to the network to call `InsertUnsafeTask`.
Since the `BuildTask` inserts the newly built payloads to the engine
state (like what the `InsertUnsafeTask` would do), this resulted in a
no-op.

Instead, the sequencer should send the payloads to the network to gossip
them to the p2p mesh.

## Misc

Close #2244
Built on top of #2376
theochap added a commit that referenced this pull request Jan 14, 2026
…-rs/kona#2378)

## Description

Rewire the sequencer unsafe payload sender from the engine to the
network.

Previously, the sequencer was sending the unsafe blocks it received from
the network `BuildTask` back to the network to call `InsertUnsafeTask`.
Since the `BuildTask` inserts the newly built payloads to the engine
state (like what the `InsertUnsafeTask` would do), this resulted in a
no-op.

Instead, the sequencer should send the payloads to the network to gossip
them to the p2p mesh.

## Misc

Close #2244
Built on top of #2376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cannon Area: cannon A-ops Area: ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants