status-go/_assets/patches/geth
Adam Babik 0d652c3851
Expose only public APIs in inproc RPC client [breaking-change] (#815)
`CallRPC` binding, which is used as a provider for web3.js, exposes only public or whitelisted APIs.
2018-04-12 18:17:10 +02:00
..
0000-accounts-hd-keys.patch Move non-go related files to the `_assets` folder. #621 (#630) 2018-02-09 14:38:18 +01:00
0004-whisper-notifications.patch Remove `notifications` package from go-ethereum. 2018-02-22 11:10:21 +01:00
0009-whisper-envelopes-tracing.patch Remove `notifications` package from go-ethereum. 2018-02-22 11:10:21 +01:00
0010-geth-17-fix-npe-in-filter-system.patch Fix a couple of patches where new files are created so that new files are marked as such 2018-02-12 15:56:03 +01:00
0012-disable-filter-timeout.patch Create temporary whisperv6 patch file. Closes #636 2018-02-12 16:36:55 +01:00
0014-whisperv6-notifications.patch Remove `notifications` package from go-ethereum. 2018-02-22 11:10:21 +01:00
0015-whisperv6-envelopes-tracing.patch Remove `notifications` package from go-ethereum. 2018-02-22 11:10:21 +01:00
0016-fix-leveldb-issue.patch Fix datarace when stopping a node. (#723) 2018-03-05 21:36:32 +01:00
0018-geth-181-whisperv6-peer-race-cond-fix.patch Update codebase to leverage Whisper v6 (#703) 2018-03-02 10:25:30 +01:00
0019-whisperv6-send-self-messages-without-subscribe.patch isForwarded constants introduced 2018-03-27 18:22:29 +03:00
0020-discv5-metrics.patch Add metrics to discv5 (#749) 2018-04-05 16:48:59 +03:00
0021-backends-simulated-chain-signer.patch Use chain aware signer in simulated backend 2018-04-09 14:41:50 +03:00
0022-node-attach-public.patch Expose only public APIs in inproc RPC client [breaking-change] (#815) 2018-04-12 18:17:10 +02:00
0022-whisper-confirmations.patch Implement shh api extension that allows to confirm that message is sent (#814) 2018-04-11 18:41:51 +03:00
README.md patch 2018-03-26 18:17:17 +03:00

README.md

Status Patches for geth (go-ethereum)


Status-go uses go-ethereum (upstream) as its dependency. As any other Go dependency go-ethereum code is vendored and stored in vendor/ folder.

However, there are a few changes has been made to the upstream, that are specific to Status and should not be merged to the upstream. We keep those changes as a set of patches, that can be applied upon each next release of go-ethereum. Patched version of go-ethereum is available in vendor folder.

We try to minimize number and amount of changes in those patches as much as possible, and whereas possible, to contribute changes into the upstream.

Creating patches

Instructions for creating a patch from the command line:

  1. Enter the command line at the go-ethereum dependency root in vendor folder.
  2. Create the patch:
    1. If you already have a commit that represents the change, find its SHA1 (e.g. $COMMIT_SHA1) and do git diff $COMMIT_SHA1 > file.patch
    2. If the files are staged, do git diff --cached > file.patch

Updating patches

  1. Tweak the patch file.
  2. Run make dep-ensure to re-apply patches.

Removing patches

  1. Remove the patch file
  2. Remove the link from [this README] (./README.md)
  3. Run make dep-ensure to re-apply patches.

Patches

Updating

When a new stable release of go-ethereum comes out, we need to upgrade our vendored copy. We use dep for vendoring, so for upgrading:

  • Change target branch for go-ethereum in Gopkg.toml.
  • dep ensure -update github.com/ethereum/go-ethereum
  • make dep-ensure

This will ensure that dependency is upgraded and fully patched. Upon success, you can do make vendor-check after committing all the changes, in order to ensure that all changes are valid.