status-go/_assets/patches/geth
Andrea Franz 809db97e54
mailserver pagination (#1039)
* mailserver sends envelopes in descending order

* add limit value in mailserver request payload

* mailserver sends messages up to the limit specified in the request

* update Archive method to return key and error

* processRequest returns the next page cursor

* add cursor to mailserver request

* add limit and cursor to request payload

* fix request limit encoding

* wait for request completed event in TrackerSuite/TestRequestCompleted

* add cursor to mailserver response

* fix cursor position in payload

* add e2e test for mail server pagination

* validate mail server response size

* remove old limitReached var

* fix lint warnings

* add whisper patch

* fix tests after rebase

* check all return values to avoid lint warnings

* check that all messages have been retrieved after 2 paginated requests

* fix lint warnings

* rename geth patch

* merge mailserver patches into one

* add last envelope hash to mailserver response and EventEnvelopeAvailable event

* update whisper patch

* add docs to MailServerResponse

* update whisper patch

* fix tests and lint warnings

* send mailserver response data on EventMailServerRequestCompleted signal

* update tracker tests

* optimise pagination test waiting for mailserver to archive only before requesting

* rollback mailserver interface changes

* refactoring and docs changes

* fix payload size check to determine if a limit is specified

* add more docs to the processRequest method

* add constants for request payload field lengths

* add const noLimits to specify that limit=0 means no limits
2018-07-02 09:38: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
0001-message-loop-warning-to-info.patch Update to geth 1.8.11. Closes #1033 2018-06-22 18:04:13 +02:00
0014-whisperv6-notifications.patch Add `shhext_getNewFilterMessages` function to RPC APIs. 2018-04-27 15:24:37 +02:00
0015-whisperv6-envelopes-tracing.patch Update go-ethereum to 1.8.5 (#854) 2018-04-24 18:50:26 +03:00
0016-fix-leveldb-issue.patch Ensure that wg.Add is called before wg.Wait 2018-05-04 10:28:15 +02: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 Update go-ethereum to 1.8.5 (#854) 2018-04-24 18:50:26 +03:00
0023-extract-personal-sign-api.patch Implement `personal_sign`. 2018-04-17 11:18:58 +02:00
0025-whisper-confirmations.patch Update go-ethereum to 1.8.5 (#854) 2018-04-24 18:50:26 +03:00
0027-whisper-time-source.patch Set timesource from config (#915) 2018-05-08 13:38:54 +03:00
0028-p2p-watchdog.patch Whisper broadcast loop spams way too hard with debug level 2018-05-16 17:54:40 +03:00
0029-node-api-gauge-metric.patch Refactor in-app metrics (#963) 2018-05-16 17:36:59 +02:00
0030-discovery-status-dht.patch Custom status bootnodes (#968) 2018-05-18 16:43:07 +03:00
0031-fix-discovery-loop-when-no-seeds.patch Fix flaky TestSingleTopicDiscoveryWithFailover and others (#992) 2018-05-26 09:37:13 +02:00
0032-send-mailserver-request-completed-code.patch RequestHistoricMessages response (#1009) 2018-06-15 17:12:31 +02:00
0033-mailserver-response-contains-cursor.patch mailserver pagination (#1039) 2018-07-02 09:38:10 +02:00
0034-resetting-timer-metrics-raw.patch remove formatting from metrics.ResettingTimer when requested in raw format (#1052) 2018-06-27 11:46:50 +02:00
README.md Refactor in-app metrics (#963) 2018-05-16 17:36:59 +02: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. Do changes in vendor/github.com/ethereum/go-ethereum/,
  2. Go to the root status-go directory,
  3. Create a patch git diff --relative=vendor/github.com/ethereum/go-ethereum > _assets/patches/geth/0000-name-of-the-patch.patch
  4. Commit changes.

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.

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.