Skip to content

Commit c3096b5

Browse files
dependabot[bot]tac0turtle
andauthored
build(deps): Bump github.com/libp2p/go-libp2p-pubsub from 0.14.0 to 0.14.1 in the patch-updates group (#2403)
Bumps the patch-updates group with 1 update: [github.com/libp2p/go-libp2p-pubsub](https://github.com/libp2p/go-libp2p-pubsub). Updates `github.com/libp2p/go-libp2p-pubsub` from 0.14.0 to 0.14.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/libp2p/go-libp2p-pubsub/releases">github.com/libp2p/go-libp2p-pubsub's releases</a>.</em></p> <blockquote> <h2>v0.14.1</h2> <h2>What's Changed</h2> <ul> <li>fix(BatchPublishing): Make topic.AddToBatch threadsafe by <a href="https://github.com/MarcoPolo"><code>@​MarcoPolo</code></a> in <a href="https://redirect.github.com/libp2p/go-libp2p-pubsub/pull/622">libp2p/go-libp2p-pubsub#622</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/libp2p/go-libp2p-pubsub/compare/v0.14.0...v0.14.1">https://github.com/libp2p/go-libp2p-pubsub/compare/v0.14.0...v0.14.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/libp2p/go-libp2p-pubsub/commit/ae65ce484ebbf21d4baf92d5b875eade9f002057"><code>ae65ce4</code></a> Release v0.14.1 (<a href="https://redirect.github.com/libp2p/go-libp2p-pubsub/issues/623">#623</a>)</li> <li><a href="https://github.com/libp2p/go-libp2p-pubsub/commit/fedbccc0c69d091d1fcbcfe5709a3f03a2aecb9c"><code>fedbccc</code></a> fix(BatchPublishing): Make topic.AddToBatch threadsafe (<a href="https://redirect.github.com/libp2p/go-libp2p-pubsub/issues/622">#622</a>)</li> <li>See full diff in <a href="https://github.com/libp2p/go-libp2p-pubsub/compare/v0.14.0...v0.14.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/libp2p/go-libp2p-pubsub&package-manager=go_modules&previous-version=0.14.0&new-version=0.14.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: tac0turtle <you@example.com>
1 parent b03dac8 commit c3096b5

14 files changed

Lines changed: 39 additions & 21 deletions

File tree

CLAUDE.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,28 @@ Rollkit is a sovereign rollup framework built in Go that allows developers to bu
99
## Build and Development Commands
1010

1111
### Building
12+
1213
- `make build` - Builds the Testapp CLI to `./build/testapp`
1314
- `make install` - Installs Testapp CLI to your Go bin directory
1415
- `make build-all` - Builds all Rollkit binaries
1516
- `make docker-build` - Builds Docker image tagged as `rollkit:local-dev`
1617

1718
### Testing
19+
1820
- `make test` - Runs unit tests for all go.mod files
1921
- `make test-integration` - Runs integration tests (15m timeout)
2022
- `make test-e2e` - Runs end-to-end tests (requires building binaries first)
2123
- `make test-cover` - Generates code coverage report
2224
- `make test-all` - Runs all tests including Docker E2E tests
2325

2426
### Linting and Code Quality
27+
2528
- `make lint` - Runs all linters (golangci-lint, markdownlint, hadolint, yamllint, goreleaser check, actionlint)
2629
- `make lint-fix` - Auto-fixes linting issues where possible
2730
- `make vet` - Runs go vet
2831

2932
### Development Utilities
33+
3034
- `make deps` - Downloads dependencies and runs go mod tidy for all modules
3135
- `make proto-gen` - Generates protobuf files (requires Docker)
3236
- `make mock-gen` - Generates mocks using mockery
@@ -35,37 +39,44 @@ Rollkit is a sovereign rollup framework built in Go that allows developers to bu
3539
## Code Architecture
3640

3741
### Core Package Structure
42+
3843
The project uses a zero-dependency core package pattern:
44+
3945
- **core/** - Contains only interfaces and types, no external dependencies
4046
- **block/** - Block management, creation, validation, and synchronization
4147
- **p2p/** - Networking layer built on libp2p
4248
- **sequencing/** - Modular sequencer implementations
4349
- **testapp/** - Reference implementation for testing
4450

4551
### Key Interfaces
52+
4653
- **Executor** (core/executor.go) - Handles state transitions
4754
- **Sequencer** (core/sequencer.go) - Orders transactions
4855
- **DA** (core/da.go) - Data availability layer abstraction
4956

5057
### Modular Design
58+
5159
- Each component has an interface in the core package
5260
- Implementations are in separate packages
5361
- Components are wired together via dependency injection
5462
- Multiple go.mod files enable modular builds
5563

5664
### P2P Architecture
65+
5766
- Built on libp2p with GossipSub and Kademlia DHT
5867
- Nodes advertise capabilities (full/light, DA layers)
5968
- Automatic peer discovery with rendezvous points
6069

6170
## Testing Patterns
6271

6372
### Test Organization
73+
6474
- Unit tests: `*_test.go` files alongside code
6575
- Integration tests: `test/integration/`
6676
- E2E tests: `test/e2e/`
6777

6878
### Running Specific Tests
79+
6980
```bash
7081
# Run a single test
7182
go test -run TestSpecificFunction ./package/...
@@ -78,44 +89,51 @@ go test -race ./package/...
7889
```
7990

8091
### Mock Generation
92+
8193
- Mocks are defined in `.mockery.yaml`
8294
- Generate with `make mock-gen`
8395
- Mocks are placed in `mocks/` directories
8496

8597
## Code Style Guidelines
8698

8799
### Go Conventions
100+
88101
- Follow standard Go formatting (enforced by golangci-lint)
89102
- Use meaningful variable names
90103
- Keep functions small and focused
91104
- Document exported types and functions
92105
- Use context.Context for cancellation
93106

94107
### Error Handling
108+
95109
- Wrap errors with context using `fmt.Errorf`
96110
- Return errors early
97111
- Use custom error types for domain-specific errors
98112

99113
### Logging
114+
100115
- Use structured logging (look for existing patterns)
101116
- Include relevant context in log messages
102117
- Use appropriate log levels
103118

104119
## Common Development Tasks
105120

106121
### Adding a New DA Layer
122+
107123
1. Implement the `DA` interface from `core/da.go`
108124
2. Add configuration in the appropriate config package
109125
3. Wire it up in the initialization code
110126
4. Add tests following existing patterns
111127

112128
### Modifying Protobuf Definitions
129+
113130
1. Edit `.proto` files in `types/pb/`
114131
2. Run `make proto-gen` to regenerate Go code
115132
3. Update any affected code
116133
4. Run tests to ensure compatibility
117134

118135
### Adding New Tests
136+
119137
1. Place unit tests next to the code being tested
120138
2. Use table-driven tests where appropriate
121139
3. Mock external dependencies using mockery
@@ -150,4 +168,4 @@ go test -race ./package/...
150168
- All tests must pass (`make test-all`)
151169
- Follow the existing code patterns
152170
- Update tests when changing functionality
153-
- Keep commits focused and atomic
171+
- Keep commits focused and atomic

apps/evm/based/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ require (
178178
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
179179
github.com/libp2p/go-libp2p-kad-dht v0.29.1 // indirect
180180
github.com/libp2p/go-libp2p-kbucket v0.6.5 // indirect
181-
github.com/libp2p/go-libp2p-pubsub v0.14.0 // indirect
181+
github.com/libp2p/go-libp2p-pubsub v0.14.1 // indirect
182182
github.com/libp2p/go-libp2p-record v0.3.1 // indirect
183183
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 // indirect
184184
github.com/libp2p/go-msgio v0.3.0 // indirect

apps/evm/based/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ github.com/libp2p/go-libp2p-kad-dht v0.29.1 h1:RyD1RnnkXOh1gwBCrMQ6ZVfTJECY5yDOY
551551
github.com/libp2p/go-libp2p-kad-dht v0.29.1/go.mod h1:tZEFTKWCsY0xngypKyAIwNDNZOBiikSUIgd/BjTF5Ms=
552552
github.com/libp2p/go-libp2p-kbucket v0.6.5 h1:Fsl1YvZcMwqrR4DYrTO02yo9PGYs2HBQIT3lGXFMTxg=
553553
github.com/libp2p/go-libp2p-kbucket v0.6.5/go.mod h1:U6WOd0BvnSp03IQSrjgM54tg7zh1UUNsXLJqAQzClTA=
554-
github.com/libp2p/go-libp2p-pubsub v0.14.0 h1:+YxFHOdrk45szLb8G/fVsWwg4pdx0nVUXoZdLvYw2VY=
555-
github.com/libp2p/go-libp2p-pubsub v0.14.0/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
554+
github.com/libp2p/go-libp2p-pubsub v0.14.1 h1:XK/rPKZKhPvRrtsjvfwrOZPnQQbGLmaEg7u6qnJfn8U=
555+
github.com/libp2p/go-libp2p-pubsub v0.14.1/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
556556
github.com/libp2p/go-libp2p-record v0.3.1 h1:cly48Xi5GjNw5Wq+7gmjfBiG9HCzQVkiZOUZ8kUl+Fg=
557557
github.com/libp2p/go-libp2p-record v0.3.1/go.mod h1:T8itUkLcWQLCYMqtX7Th6r7SexyUJpIyPgks757td/E=
558558
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 h1:6LqS1Bzn5CfDJ4tzvP9uwh42IB7TJLNFJA6dEeGBv84=

apps/evm/single/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ require (
179179
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
180180
github.com/libp2p/go-libp2p-kad-dht v0.29.1 // indirect
181181
github.com/libp2p/go-libp2p-kbucket v0.6.5 // indirect
182-
github.com/libp2p/go-libp2p-pubsub v0.14.0 // indirect
182+
github.com/libp2p/go-libp2p-pubsub v0.14.1 // indirect
183183
github.com/libp2p/go-libp2p-record v0.3.1 // indirect
184184
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 // indirect
185185
github.com/libp2p/go-msgio v0.3.0 // indirect

apps/evm/single/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ github.com/libp2p/go-libp2p-kad-dht v0.29.1 h1:RyD1RnnkXOh1gwBCrMQ6ZVfTJECY5yDOY
551551
github.com/libp2p/go-libp2p-kad-dht v0.29.1/go.mod h1:tZEFTKWCsY0xngypKyAIwNDNZOBiikSUIgd/BjTF5Ms=
552552
github.com/libp2p/go-libp2p-kbucket v0.6.5 h1:Fsl1YvZcMwqrR4DYrTO02yo9PGYs2HBQIT3lGXFMTxg=
553553
github.com/libp2p/go-libp2p-kbucket v0.6.5/go.mod h1:U6WOd0BvnSp03IQSrjgM54tg7zh1UUNsXLJqAQzClTA=
554-
github.com/libp2p/go-libp2p-pubsub v0.14.0 h1:+YxFHOdrk45szLb8G/fVsWwg4pdx0nVUXoZdLvYw2VY=
555-
github.com/libp2p/go-libp2p-pubsub v0.14.0/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
554+
github.com/libp2p/go-libp2p-pubsub v0.14.1 h1:XK/rPKZKhPvRrtsjvfwrOZPnQQbGLmaEg7u6qnJfn8U=
555+
github.com/libp2p/go-libp2p-pubsub v0.14.1/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
556556
github.com/libp2p/go-libp2p-record v0.3.1 h1:cly48Xi5GjNw5Wq+7gmjfBiG9HCzQVkiZOUZ8kUl+Fg=
557557
github.com/libp2p/go-libp2p-record v0.3.1/go.mod h1:T8itUkLcWQLCYMqtX7Th6r7SexyUJpIyPgks757td/E=
558558
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 h1:6LqS1Bzn5CfDJ4tzvP9uwh42IB7TJLNFJA6dEeGBv84=

apps/testapp/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ require (
8484
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
8585
github.com/libp2p/go-libp2p-kad-dht v0.29.1 // indirect
8686
github.com/libp2p/go-libp2p-kbucket v0.6.5 // indirect
87-
github.com/libp2p/go-libp2p-pubsub v0.14.0 // indirect
87+
github.com/libp2p/go-libp2p-pubsub v0.14.1 // indirect
8888
github.com/libp2p/go-libp2p-record v0.3.1 // indirect
8989
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 // indirect
9090
github.com/libp2p/go-msgio v0.3.0 // indirect

apps/testapp/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ github.com/libp2p/go-libp2p-kad-dht v0.29.1 h1:RyD1RnnkXOh1gwBCrMQ6ZVfTJECY5yDOY
254254
github.com/libp2p/go-libp2p-kad-dht v0.29.1/go.mod h1:tZEFTKWCsY0xngypKyAIwNDNZOBiikSUIgd/BjTF5Ms=
255255
github.com/libp2p/go-libp2p-kbucket v0.6.5 h1:Fsl1YvZcMwqrR4DYrTO02yo9PGYs2HBQIT3lGXFMTxg=
256256
github.com/libp2p/go-libp2p-kbucket v0.6.5/go.mod h1:U6WOd0BvnSp03IQSrjgM54tg7zh1UUNsXLJqAQzClTA=
257-
github.com/libp2p/go-libp2p-pubsub v0.14.0 h1:+YxFHOdrk45szLb8G/fVsWwg4pdx0nVUXoZdLvYw2VY=
258-
github.com/libp2p/go-libp2p-pubsub v0.14.0/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
257+
github.com/libp2p/go-libp2p-pubsub v0.14.1 h1:XK/rPKZKhPvRrtsjvfwrOZPnQQbGLmaEg7u6qnJfn8U=
258+
github.com/libp2p/go-libp2p-pubsub v0.14.1/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
259259
github.com/libp2p/go-libp2p-record v0.3.1 h1:cly48Xi5GjNw5Wq+7gmjfBiG9HCzQVkiZOUZ8kUl+Fg=
260260
github.com/libp2p/go-libp2p-record v0.3.1/go.mod h1:T8itUkLcWQLCYMqtX7Th6r7SexyUJpIyPgks757td/E=
261261
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 h1:6LqS1Bzn5CfDJ4tzvP9uwh42IB7TJLNFJA6dEeGBv84=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/ipfs/go-log/v2 v2.6.0
2020
github.com/libp2p/go-libp2p v0.41.1
2121
github.com/libp2p/go-libp2p-kad-dht v0.29.1
22-
github.com/libp2p/go-libp2p-pubsub v0.14.0
22+
github.com/libp2p/go-libp2p-pubsub v0.14.1
2323
github.com/mitchellh/mapstructure v1.5.0
2424
github.com/multiformats/go-multiaddr v0.16.0
2525
github.com/prometheus/client_golang v1.21.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ github.com/libp2p/go-libp2p-kad-dht v0.29.1 h1:RyD1RnnkXOh1gwBCrMQ6ZVfTJECY5yDOY
250250
github.com/libp2p/go-libp2p-kad-dht v0.29.1/go.mod h1:tZEFTKWCsY0xngypKyAIwNDNZOBiikSUIgd/BjTF5Ms=
251251
github.com/libp2p/go-libp2p-kbucket v0.6.5 h1:Fsl1YvZcMwqrR4DYrTO02yo9PGYs2HBQIT3lGXFMTxg=
252252
github.com/libp2p/go-libp2p-kbucket v0.6.5/go.mod h1:U6WOd0BvnSp03IQSrjgM54tg7zh1UUNsXLJqAQzClTA=
253-
github.com/libp2p/go-libp2p-pubsub v0.14.0 h1:+YxFHOdrk45szLb8G/fVsWwg4pdx0nVUXoZdLvYw2VY=
254-
github.com/libp2p/go-libp2p-pubsub v0.14.0/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
253+
github.com/libp2p/go-libp2p-pubsub v0.14.1 h1:XK/rPKZKhPvRrtsjvfwrOZPnQQbGLmaEg7u6qnJfn8U=
254+
github.com/libp2p/go-libp2p-pubsub v0.14.1/go.mod h1:MKPU5vMI8RRFyTP0HfdsF9cLmL1nHAeJm44AxJGJx44=
255255
github.com/libp2p/go-libp2p-record v0.3.1 h1:cly48Xi5GjNw5Wq+7gmjfBiG9HCzQVkiZOUZ8kUl+Fg=
256256
github.com/libp2p/go-libp2p-record v0.3.1/go.mod h1:T8itUkLcWQLCYMqtX7Th6r7SexyUJpIyPgks757td/E=
257257
github.com/libp2p/go-libp2p-routing-helpers v0.7.4 h1:6LqS1Bzn5CfDJ4tzvP9uwh42IB7TJLNFJA6dEeGBv84=

sequencers/based/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ require (
3030
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
3131
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
3232
github.com/libp2p/go-libp2p v0.41.1 // indirect
33-
github.com/libp2p/go-libp2p-pubsub v0.14.0 // indirect
33+
github.com/libp2p/go-libp2p-pubsub v0.14.1 // indirect
3434
github.com/libp2p/go-msgio v0.3.0 // indirect
3535
github.com/mattn/go-colorable v0.1.14 // indirect
3636
github.com/mattn/go-isatty v0.0.20 // indirect

0 commit comments

Comments
 (0)