2018-09-27 21:16:15 +02:00
Status Patches for geth (go-ethereum)
=====================================
2018-01-15 21:26:41 +01:00
2018-10-16 14:27:11 +03:00
We keep changes in patches because it gives as a clear picture. In case of merge conflicts, thanks to patches we can easily figure out how the final code should look like.
2018-01-15 21:26:41 +01:00
2018-10-16 14:27:11 +03:00
## Syncing with upstream
2018-01-15 21:26:41 +01:00
2018-10-16 14:27:11 +03:00
When a new geth version is released, we need to merge it to an appropriate branch and apply patches.
2018-01-15 21:26:41 +01:00
2018-10-16 14:27:11 +03:00
The format of branches looks like this: `patched/1.8` , `patched/1.9` , and so on.
In order to sync the upstream, follow this instruction:
1. Revert existing patches: `$ _assets/patches/patcher -r` ,
1. Merge a new release: `$ git merge upstream/v1.8.16` where `v1.8.16` is a tag with a new release,
1. Apply patches back: `$ _assets/patches/patcher` .
In the last step, some patches might be invalid. In such a case, they need to be fixed before proceeding.
## Creating patches
2018-02-09 11:34:33 +01:00
Instructions for creating a patch from the command line:
2018-05-16 17:36:59 +02:00
1. Do changes in `vendor/github.com/ethereum/go-ethereum/` ,
1. Go to the root `status-go` directory,
1. Create a patch `git diff --relative=vendor/github.com/ethereum/go-ethereum > _assets/patches/geth/0000-name-of-the-patch.patch`
1. Commit changes.
2018-02-09 11:34:33 +01:00
2018-10-16 14:27:11 +03:00
## How to fix a patch?
2018-01-15 21:26:41 +01:00
2018-10-16 14:27:11 +03:00
TBD