Fix a couple of patches where new files are created so that new files are marked as such

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Pedro Pombeiro 2018-02-09 11:34:33 +01:00
parent 51f1434a77
commit f5393274ff
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
6 changed files with 67 additions and 40 deletions

View File

@ -274,7 +274,7 @@ index 56f617a7d..f839f24e6 100644
func (b *LesApiBackend) ChainConfig() *params.ChainConfig { func (b *LesApiBackend) ChainConfig() *params.ChainConfig {
diff --git a/les/backend.go b/les/backend.go diff --git a/les/backend.go b/les/backend.go
index 333df920e..7d8cf3916 100644 index 333df920e..71fbc181b 100644
--- a/les/backend.go --- a/les/backend.go
+++ b/les/backend.go +++ b/les/backend.go
@@ -75,6 +75,8 @@ type LightEthereum struct { @@ -75,6 +75,8 @@ type LightEthereum struct {

View File

@ -1,6 +1,8 @@
diff --git a/containers/docker/status-alpine/geth/Dockerfile b/containers/docker/status-alpine/geth/Dockerfile diff --git a/containers/docker/status-alpine/geth/Dockerfile b/containers/docker/status-alpine/geth/Dockerfile
--- a/containers/docker/status-alpine/geth/Dockerfile 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/containers/docker/status-alpine/geth/Dockerfile 2017-09-19 17:03:51.000000000 +0200 index 000000000..2cc2177d0
--- /dev/null
+++ b/containers/docker/status-alpine/geth/Dockerfile
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
+FROM alpine:3.5 +FROM alpine:3.5
+ +
@ -23,8 +25,10 @@ diff --git a/containers/docker/status-alpine/geth/Dockerfile b/containers/docker
+ +
+ENTRYPOINT ["/geth"] +ENTRYPOINT ["/geth"]
diff --git a/containers/docker/status-alpine/swarm/Dockerfile b/containers/docker/status-alpine/swarm/Dockerfile diff --git a/containers/docker/status-alpine/swarm/Dockerfile b/containers/docker/status-alpine/swarm/Dockerfile
--- a/containers/docker/status-alpine/swarm/Dockerfile 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/containers/docker/status-alpine/swarm/Dockerfile 2017-09-19 17:03:51.000000000 +0200 index 000000000..685bf5ad9
--- /dev/null
+++ b/containers/docker/status-alpine/swarm/Dockerfile
@@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
+FROM alpine:3.5 +FROM alpine:3.5
+ +
@ -46,8 +50,10 @@ diff --git a/containers/docker/status-alpine/swarm/Dockerfile b/containers/docke
+ +
+ENTRYPOINT ["/swarm"] +ENTRYPOINT ["/swarm"]
diff --git a/containers/docker/status-alpine/wnode/Dockerfile b/containers/docker/status-alpine/wnode/Dockerfile diff --git a/containers/docker/status-alpine/wnode/Dockerfile b/containers/docker/status-alpine/wnode/Dockerfile
--- a/containers/docker/status-alpine/wnode/Dockerfile 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/containers/docker/status-alpine/wnode/Dockerfile 2017-09-19 17:03:51.000000000 +0200 index 000000000..e160ff9d7
--- /dev/null
+++ b/containers/docker/status-alpine/wnode/Dockerfile
@@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
+FROM alpine:3.5 +FROM alpine:3.5
+ +

View File

@ -1,6 +1,8 @@
diff --git a/whisper/notifications/discovery.go b/whisper/notifications/discovery.go diff --git a/whisper/notifications/discovery.go b/whisper/notifications/discovery.go
--- a/whisper/notifications/discovery.go 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/whisper/notifications/discovery.go 2017-09-19 17:03:51.000000000 +0200 index 000000000..de8ec85be
--- /dev/null
+++ b/whisper/notifications/discovery.go
@@ -0,0 +1,154 @@ @@ -0,0 +1,154 @@
+package notifications +package notifications
+ +
@ -157,8 +159,10 @@ diff --git a/whisper/notifications/discovery.go b/whisper/notifications/discover
+ return nil + return nil
+} +}
diff --git a/whisper/notifications/provider.go b/whisper/notifications/provider.go diff --git a/whisper/notifications/provider.go b/whisper/notifications/provider.go
--- a/whisper/notifications/provider.go 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/whisper/notifications/provider.go 2017-09-19 17:03:51.000000000 +0200 index 000000000..032463a6e
--- /dev/null
+++ b/whisper/notifications/provider.go
@@ -0,0 +1,59 @@ @@ -0,0 +1,59 @@
+package notifications +package notifications
+ +
@ -220,8 +224,10 @@ diff --git a/whisper/notifications/provider.go b/whisper/notifications/provider.
+ return nil + return nil
+} +}
diff --git a/whisper/notifications/server.go b/whisper/notifications/server.go diff --git a/whisper/notifications/server.go b/whisper/notifications/server.go
--- a/whisper/notifications/server.go 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/whisper/notifications/server.go 2017-09-19 17:03:51.000000000 +0200 index 000000000..7f27f0301
--- /dev/null
+++ b/whisper/notifications/server.go
@@ -0,0 +1,590 @@ @@ -0,0 +1,590 @@
+package notifications +package notifications
+ +
@ -814,8 +820,10 @@ diff --git a/whisper/notifications/server.go b/whisper/notifications/server.go
+ return + return
+} +}
diff --git a/whisper/notifications/utils.go b/whisper/notifications/utils.go diff --git a/whisper/notifications/utils.go b/whisper/notifications/utils.go
--- a/whisper/notifications/utils.go 1970-01-01 01:00:00.000000000 +0100 new file mode 100644
+++ b/whisper/notifications/utils.go 2017-09-19 17:03:51.000000000 +0200 index 000000000..106752186
--- /dev/null
+++ b/whisper/notifications/utils.go
@@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
+package notifications +package notifications
+ +
@ -902,9 +910,10 @@ diff --git a/whisper/notifications/utils.go b/whisper/notifications/utils.go
+ return + return
+} +}
diff --git a/whisper/whisperv2/whisper.go b/whisper/whisperv2/whisper.go diff --git a/whisper/whisperv2/whisper.go b/whisper/whisperv2/whisper.go
--- a/whisper/whisperv2/whisper.go 2017-12-04 14:11:36.000000000 +0100 index 61c36918d..908346999 100644
+++ b/whisper/whisperv2/whisper.go 2017-12-03 19:32:31.000000000 +0100 --- a/whisper/whisperv2/whisper.go
@@ -134,6 +134,13 @@ +++ b/whisper/whisperv2/whisper.go
@@ -134,6 +134,13 @@ func (self *Whisper) NewIdentity() *ecdsa.PrivateKey {
return key return key
} }
@ -919,9 +928,10 @@ diff --git a/whisper/whisperv2/whisper.go b/whisper/whisperv2/whisper.go
// of the specified public pair. // of the specified public pair.
func (self *Whisper) HasIdentity(key *ecdsa.PublicKey) bool { func (self *Whisper) HasIdentity(key *ecdsa.PublicKey) bool {
diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go
--- a/whisper/whisperv5/api.go 2017-12-04 14:13:07.000000000 +0100 index 96c4b0e6c..e3c2f4a97 100644
+++ b/whisper/whisperv5/api.go 2017-12-04 17:40:41.000000000 +0100 --- a/whisper/whisperv5/api.go
@@ -313,6 +313,16 @@ +++ b/whisper/whisperv5/api.go
@@ -313,6 +313,16 @@ func (api *PublicWhisperAPI) Post(ctx context.Context, req NewMessage) (bool, er
return true, api.w.Send(env) return true, api.w.Send(env)
} }
@ -939,9 +949,10 @@ diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go
// Criteria holds various filter options for inbound messages. // Criteria holds various filter options for inbound messages.
diff --git a/whisper/whisperv5/doc.go b/whisper/whisperv5/doc.go diff --git a/whisper/whisperv5/doc.go b/whisper/whisperv5/doc.go
--- a/whisper/whisperv5/doc.go 2017-12-03 18:18:01.000000000 +0100 index 7a57488bd..a6c9e610d 100644
+++ b/whisper/whisperv5/doc.go 2017-12-04 17:40:41.000000000 +0100 --- a/whisper/whisperv5/doc.go
@@ -32,6 +32,8 @@ +++ b/whisper/whisperv5/doc.go
@@ -32,6 +32,8 @@ package whisperv5
import ( import (
"fmt" "fmt"
"time" "time"
@ -950,7 +961,7 @@ diff --git a/whisper/whisperv5/doc.go b/whisper/whisperv5/doc.go
) )
const ( const (
@@ -57,7 +59,7 @@ @@ -57,7 +59,7 @@ const (
MaxMessageSize = uint32(10 * 1024 * 1024) // maximum accepted size of a message. MaxMessageSize = uint32(10 * 1024 * 1024) // maximum accepted size of a message.
DefaultMaxMessageSize = uint32(1024 * 1024) DefaultMaxMessageSize = uint32(1024 * 1024)
@ -959,7 +970,7 @@ diff --git a/whisper/whisperv5/doc.go b/whisper/whisperv5/doc.go
padSizeLimit = 256 // just an arbitrary number, could be changed without breaking the protocol (must not exceed 2^24) padSizeLimit = 256 // just an arbitrary number, could be changed without breaking the protocol (must not exceed 2^24)
messageQueueLimit = 1024 messageQueueLimit = 1024
@@ -85,3 +87,15 @@ @@ -85,3 +87,15 @@ type MailServer interface {
Archive(env *Envelope) Archive(env *Envelope)
DeliverMail(whisperPeer *Peer, request *Envelope) DeliverMail(whisperPeer *Peer, request *Envelope)
} }
@ -976,9 +987,10 @@ diff --git a/whisper/whisperv5/doc.go b/whisper/whisperv5/doc.go
+ Stop() error + Stop() error
+} +}
diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
--- a/whisper/whisperv5/whisper.go 2017-12-03 19:03:21.000000000 +0100 index 85849ccce..c39e8b3e0 100644
+++ b/whisper/whisperv5/whisper.go 2017-12-04 17:40:41.000000000 +0100 --- a/whisper/whisperv5/whisper.go
@@ -77,7 +77,8 @@ +++ b/whisper/whisperv5/whisper.go
@@ -77,7 +77,8 @@ type Whisper struct {
statsMu sync.Mutex // guard stats statsMu sync.Mutex // guard stats
stats Statistics // Statistics of whisper node stats Statistics // Statistics of whisper node
@ -988,7 +1000,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
} }
// New creates a Whisper client ready to communicate through the Ethereum P2P network. // New creates a Whisper client ready to communicate through the Ethereum P2P network.
@@ -156,6 +157,11 @@ @@ -156,6 +157,11 @@ func (w *Whisper) RegisterServer(server MailServer) {
w.mailServer = server w.mailServer = server
} }
@ -1000,7 +1012,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
// Protocols returns the whisper sub-protocols ran by this particular client. // Protocols returns the whisper sub-protocols ran by this particular client.
func (w *Whisper) Protocols() []p2p.Protocol { func (w *Whisper) Protocols() []p2p.Protocol {
return []p2p.Protocol{w.protocol} return []p2p.Protocol{w.protocol}
@@ -250,9 +256,9 @@ @@ -250,9 +256,9 @@ func (w *Whisper) NewKeyPair() (string, error) {
return "", fmt.Errorf("failed to generate valid key") return "", fmt.Errorf("failed to generate valid key")
} }
@ -1012,7 +1024,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
} }
w.keyMu.Lock() w.keyMu.Lock()
@@ -265,45 +271,94 @@ @@ -265,45 +271,94 @@ func (w *Whisper) NewKeyPair() (string, error) {
return id, nil return id, nil
} }
@ -1122,7 +1134,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
if key == nil { if key == nil {
return nil, fmt.Errorf("invalid id") return nil, fmt.Errorf("invalid id")
} }
@@ -336,6 +391,23 @@ @@ -336,6 +391,23 @@ func (w *Whisper) GenerateSymKey() (string, error) {
return id, nil return id, nil
} }
@ -1146,7 +1158,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
// AddSymKeyDirect stores the key, and returns its id. // AddSymKeyDirect stores the key, and returns its id.
func (w *Whisper) AddSymKeyDirect(key []byte) (string, error) { func (w *Whisper) AddSymKeyDirect(key []byte) (string, error) {
if len(key) != aesKeyLength { if len(key) != aesKeyLength {
@@ -447,7 +519,7 @@ @@ -447,7 +519,7 @@ func (w *Whisper) Send(envelope *Envelope) error {
// Start implements node.Service, starting the background data propagation thread // Start implements node.Service, starting the background data propagation thread
// of the Whisper protocol. // of the Whisper protocol.
@ -1155,7 +1167,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
log.Info("started whisper v." + ProtocolVersionStr) log.Info("started whisper v." + ProtocolVersionStr)
go w.update() go w.update()
@@ -456,6 +528,12 @@ @@ -456,6 +528,12 @@ func (w *Whisper) Start(*p2p.Server) error {
go w.processQueue() go w.processQueue()
} }
@ -1168,7 +1180,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
return nil return nil
} }
@@ -463,6 +541,13 @@ @@ -463,6 +541,13 @@ func (w *Whisper) Start(*p2p.Server) error {
// of the Whisper protocol. // of the Whisper protocol.
func (w *Whisper) Stop() error { func (w *Whisper) Stop() error {
close(w.quit) close(w.quit)
@ -1182,7 +1194,7 @@ diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
log.Info("whisper stopped") log.Info("whisper stopped")
return nil return nil
} }
@@ -856,3 +941,30 @@ @@ -856,3 +941,30 @@ func GenerateRandomID() (id string, err error) {
id = common.Bytes2Hex(buf) id = common.Bytes2Hex(buf)
return id, err return id, err
} }

View File

@ -1,5 +1,5 @@
diff --git a/light/postprocess.go b/light/postprocess.go diff --git a/light/postprocess.go b/light/postprocess.go
index e7e51388..dc6562be 100644 index e7e513880..dc6562be8 100644
--- a/light/postprocess.go --- a/light/postprocess.go
+++ b/light/postprocess.go +++ b/light/postprocess.go
@@ -66,12 +66,20 @@ var ( @@ -66,12 +66,20 @@ var (

View File

@ -1,5 +1,5 @@
diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go
index e08cedb274..a234709c63 100644 index e08cedb27..a234709c6 100644
--- a/eth/filters/filter_system.go --- a/eth/filters/filter_system.go
+++ b/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go
@@ -109,7 +109,11 @@ func NewEventSystem(mux *event.TypeMux, backend Backend, lightMode bool) *EventS @@ -109,7 +109,11 @@ func NewEventSystem(mux *event.TypeMux, backend Backend, lightMode bool) *EventS
@ -57,4 +57,3 @@ index e08cedb274..a234709c63 100644
// Unsubscribe all events // Unsubscribe all events
defer sub.Unsubscribe() defer sub.Unsubscribe()

View File

@ -7,6 +7,15 @@ However, there are a few changes has been made to the upstream, that are specifi
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. 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 status-im/go-ethereum repo root
1. 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`
1. If the files are staged, do `git diff --cached > file.patch`
# Patches # Patches
- [`0000-accounts-hd-keys.patch`](./0000-accounts-hd-keys.patch) — adds support for HD extended keys (links/docs?) - [`0000-accounts-hd-keys.patch`](./0000-accounts-hd-keys.patch) — adds support for HD extended keys (links/docs?)
@ -16,6 +25,7 @@ We try to minimize number and amount of changes in those patches as much as poss
- [`0006-latest-cht.patch`](./0006-latest-cht.patch) updates CHT root hashes, should be updated regularly to keep sync fast, until proper Trusted Checkpoint sync is not implemented as part of LES/2 protocol. - [`0006-latest-cht.patch`](./0006-latest-cht.patch) updates CHT root hashes, should be updated regularly to keep sync fast, until proper Trusted Checkpoint sync is not implemented as part of LES/2 protocol.
- [`0007-README.patch`](./0007-README.patch) — update upstream README.md. - [`0007-README.patch`](./0007-README.patch) — update upstream README.md.
- [`0010-geth-17-fix-npe-in-filter-system.patch`](./0010-geth-17-fix-npe-in-filter-system.patch) - Temp patch for 1.7.x to fix a NPE in the filter system. - [`0010-geth-17-fix-npe-in-filter-system.patch`](./0010-geth-17-fix-npe-in-filter-system.patch) - Temp patch for 1.7.x to fix a NPE in the filter system.
# Updating upstream version # Updating upstream version
When a new stable release of `go-ethereum` comes out, we need to upgrade our fork and vendored copy. When a new stable release of `go-ethereum` comes out, we need to upgrade our fork and vendored copy.