fa390a52ae
* refactor TestRequestMessageFromMailboxAsync to use s.requestHistoricMessages helper * send p2pRequestResponseCode from mailserver * send p2p message response to after sending all historic messages * mailserver sends `whisper.NewSentMessage` as response * add mailserver Client and p2pRequestAckCode watchers * send event with envelopeFeed when p2pRequestAckCode is received * test request completed event in tracker * rename mailserver response events and code to RequestCompleteCode * wait for mailserver response in e2e test * use SendHistoricMessageResponse method name for mailserver response * fix lint warnings * add mailserver request expiration * send mailserver response without envelope * add `ttl` to Request struct in shhext_requestMessages * test that tracker calls handler.MailServerRequestExpired * add geth patch * rename TTL to Timeout * split tracker.handleEvent in multiple methods |
||
---|---|---|
.. | ||
0000-accounts-hd-keys.patch | ||
0010-geth-17-fix-npe-in-filter-system.patch | ||
0014-whisperv6-notifications.patch | ||
0015-whisperv6-envelopes-tracing.patch | ||
0016-fix-leveldb-issue.patch | ||
0020-discv5-metrics.patch | ||
0021-backends-simulated-chain-signer.patch | ||
0022-node-attach-public.patch | ||
0023-extract-personal-sign-api.patch | ||
0025-whisper-confirmations.patch | ||
0026-ethdb-error-deadlock.patch | ||
0027-whisper-time-source.patch | ||
0028-p2p-watchdog.patch | ||
0029-node-api-gauge-metric.patch | ||
0030-discovery-status-dht.patch | ||
0031-fix-discovery-loop-when-no-seeds.patch | ||
0032-send-mailserver-request-completed-code.patch | ||
README.md |
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:
- Do changes in
vendor/github.com/ethereum/go-ethereum/
, - Go to the root
status-go
directory, - Create a patch
git diff --relative=vendor/github.com/ethereum/go-ethereum > _assets/patches/geth/0000-name-of-the-patch.patch
- Commit changes.
Updating patches
- Tweak the patch file.
- Run
make dep-ensure
to re-apply patches.
Removing patches
- Remove the patch file
- Remove the link from [this README] (./README.md)
- 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
inGopkg.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.