diff options
author | Javier Peletier <jpeletier@users.noreply.github.com> | 2018-11-27 00:37:59 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2018-11-27 00:37:59 +0800 |
commit | 4f0d978eaaebdd118af3bfe623782c70601daaed (patch) | |
tree | 76523403b159b820e6d1d20f4362bac38a2843a9 /cmd/swarm/feeds.go | |
parent | 1cd007ecae437f5cc54a026e592edfad642a0b69 (diff) | |
download | go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.tar go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.tar.gz go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.tar.bz2 go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.tar.lz go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.tar.xz go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.tar.zst go-tangerine-4f0d978eaaebdd118af3bfe623782c70601daaed.zip |
cmd/swarm: update should error on manifest mismatch (#18047)
* cmd/swarm: fix ethersphere/go-ethereum#979:
update should error on manifest mistmatch
* cmd/swarm: fixed comments and remove sprintf from log.Info
* cmd/swarm: remove unnecessary comment
Diffstat (limited to 'cmd/swarm/feeds.go')
-rw-r--r-- | cmd/swarm/feeds.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/swarm/feeds.go b/cmd/swarm/feeds.go index f26a8cc7d..6cd971a92 100644 --- a/cmd/swarm/feeds.go +++ b/cmd/swarm/feeds.go @@ -169,7 +169,6 @@ func feedUpdate(ctx *cli.Context) { query = new(feed.Query) query.User = signer.Address() query.Topic = getTopic(ctx) - } // Retrieve a feed update request @@ -178,6 +177,11 @@ func feedUpdate(ctx *cli.Context) { utils.Fatalf("Error retrieving feed status: %s", err.Error()) } + // Check that the provided signer matches the request to sign + if updateRequest.User != signer.Address() { + utils.Fatalf("Signer address does not match the update request") + } + // set the new data updateRequest.SetData(data) |