Skip to content

Comments

Develop -> Master#2546

Merged
Inphi merged 2 commits intomasterfrom
develop
May 5, 2022
Merged

Develop -> Master#2546
Inphi merged 2 commits intomasterfrom
develop

Conversation

@Inphi
Copy link
Contributor

@Inphi Inphi commented May 5, 2022

  • contracts - Replace calls to getNetwork() with getChainId util
  • sdk - Updated dependencies [https://github.com/ethereum-optimism/optimism/commit/412688d5129485f8b86c23c6c23c0fea219d5621]
    @eth-optimism/contracts@0.5.23
  • integration-tests - replace calls to getNetwork() with getChainId util
  • message-relayer - Replace calls to getNetwork() with getChainId util
    @eth-optimism/sdk@1.1.3
  • proxyd - Proxy requests using batch JSON-RPC
  • teleportr - Fix confs_remaining calculation to prevent underflow

@changeset-bot
Copy link

changeset-bot bot commented May 5, 2022

⚠️ No Changeset found

Latest commit: c229192

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-integration Area: integration tests A-pkg-sdk Area: packages/sdk labels May 5, 2022
@Inphi Inphi merged commit 936033e into master May 5, 2022
theochap pushed a commit that referenced this pull request Dec 10, 2025
…#2546)

## Summary

Changes the `--rpc.port` CLI flag in `kona-node` to be `--port` while
maintaining backwards compatibility by keeping `--rpc.port` as an alias.

## Changes Made

### Code Changes
- **Updated `bin/node/src/flags/rpc.rs`**: Changed the primary flag from
`--rpc.port` to `--port` with `--rpc.port` as an alias
- **Updated tests**: Modified test cases to use `--port` and added test
coverage for the `--rpc.port` alias

### Documentation Updates
- **Updated `bin/node/README.md`**: Changed all examples to use `--port`
instead of `--rpc.port`
- **Updated `docs/docs/pages/node/faq/ports.mdx`**: Updated port
reference table to show `--port`
- **Updated `docs/docs/pages/node/configuration.mdx`**: Updated CLI
reference to show `--port`

## Backwards Compatibility

✅ **Fully backwards compatible** - existing configurations and scripts
using `--rpc.port` will continue to work without any changes.

- The `--rpc.port` flag remains functional as an alias
- Environment variable `KONA_NODE_RPC_PORT` is unchanged
- Default port value remains `9545`

## Usage Examples

### New recommended usage:
```bash
kona-node node --port 5060 [other-flags...]
```

### Legacy usage (still works):
```bash
kona-node node --rpc.port 5060 [other-flags...]
```

## Testing

- ✅ Manual verification that both `--port` and `--rpc.port` work
correctly
- ✅ Updated unit tests to cover both flags
- ✅ Build successfully completes
- ✅ Help output shows `--port` as the primary flag

## Migration

No migration required - this is a purely additive change. Users can:
1. Continue using `--rpc.port` (no changes needed)
2. Gradually migrate to `--port` for consistency
3. Update documentation/examples to use the new flag name

Fixes the requirement to standardize the port flag naming while ensuring
zero breaking changes.

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 Share your feedback on Copilot coding agent for the chance to win a
$200 gift card! Click
[here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) to
start the survey.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: refcell <21288394+refcell@users.noreply.github.com>
Co-authored-by: refcell <abigger87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-integration Area: integration tests A-pkg-sdk Area: packages/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant