aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/main.go
diff options
context:
space:
mode:
authorViktor TrĂ³n <viktor.tron@gmail.com>2017-02-13 20:20:50 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-02-13 20:20:50 +0800
commite23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd (patch)
treeedbe1cd7381c69deae9b31df527d6ce1c6c664b3 /cmd/swarm/main.go
parent65ed6a9def4d23bbe6109ae4b841a56510d0c476 (diff)
downloadgo-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar
go-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.gz
go-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.bz2
go-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.lz
go-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.xz
go-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.zst
go-tangerine-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.zip
swarm/network: fix chunk integrity checks (#3665)
* swarm/network: integrity on incoming known chunks * swarm/network: fix integrity check for incoming chunks * swarm/storage: imrpoved integrity checking on chunks * dbstore panics on corrupt chunk entry an prompts user to run cleandb * memstore adds logging for garbage collection * dbstore refactor item delete. correct partial deletes in Get * cmd/swarm: added cleandb subcommand
Diffstat (limited to 'cmd/swarm/main.go')
-rw-r--r--cmd/swarm/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index 546c646f1..7d76d55c1 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -191,6 +191,15 @@ Removes a path from the manifest
},
},
},
+ {
+ Action: cleandb,
+ Name: "cleandb",
+ Usage: "Cleans database of corrupted entries",
+ ArgsUsage: " ",
+ Description: `
+Cleans database of corrupted entries.
+`,
+ },
}
app.Flags = []cli.Flag{