Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Feat: Configurable RPC Apis #349

Merged
merged 29 commits into from
Jul 26, 2021
Merged

Conversation

crypto-facs
Copy link
Contributor

Closes: #174

Description

Given that we now support some debug endpoints. It is necessary to allow nodes to enable the desired api namespaces to avoid undesired stress on the nodes from expensive requests.

This PR just enables to specify which namespaces to have open from the namespaces that we support. Left eth namespace open by default.


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

docs/basics/json_rpc.md Outdated Show resolved Hide resolved
ethereum/rpc/apis.go Outdated Show resolved Hide resolved
ethereum/rpc/apis.go Outdated Show resolved Hide resolved
Copy link
Contributor

@leejw51crypto leejw51crypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! minor comments

CHANGELOG.md Outdated Show resolved Hide resolved
cmd/ethermintd/config/config.go Outdated Show resolved Hide resolved
cmd/ethermintd/config/config.go Outdated Show resolved Hide resolved
cmd/ethermintd/config/config.go Outdated Show resolved Hide resolved
cmd/ethermintd/config/config.go Outdated Show resolved Hide resolved
ethereum/rpc/apis.go Outdated Show resolved Hide resolved
ethereum/rpc/apis.go Outdated Show resolved Hide resolved
init.sh Outdated Show resolved Hide resolved
server/start.go Outdated Show resolved Hide resolved
tests/solidity/init-test-node.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The only thing left is preventing adding the APIs namespaces more than once (convert slice to set)

ethereum/rpc/apis.go Show resolved Hide resolved
ethereum/rpc/apis.go Show resolved Hide resolved
ethereum/rpc/apis.go Outdated Show resolved Hide resolved
testutil/network/util.go Outdated Show resolved Hide resolved
server/evmrpc.go Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
docs/basics/json_rpc.md Outdated Show resolved Hide resolved
docs/basics/json_rpc.md Outdated Show resolved Hide resolved
@fedekunze fedekunze enabled auto-merge (squash) July 26, 2021 11:08
@fedekunze fedekunze merged commit d121272 into evmos:main Jul 26, 2021
@crypto-facs crypto-facs deleted the configurable-rpcs branch July 26, 2021 11:19
yihuang referenced this pull request in yihuang/ethermint Sep 14, 2023
* Problem: native action could results inconsistent balance

Solution:
- change statedb's balance operation to native

fix unit tests

* fix unit test

* Update x/evm/keeper/keeper.go

Signed-off-by: yihuang <[email protected]>

* fix lint

* Update x/evm/keeper/keeper.go

Co-authored-by: mmsqe <[email protected]>
Signed-off-by: yihuang <[email protected]>

---------

Signed-off-by: yihuang <[email protected]>
Co-authored-by: mmsqe <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configurable RPC and WS APIs
5 participants