diff options
author | Viktor TrĂ³n <viktor.tron@gmail.com> | 2017-02-13 20:20:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-02-13 20:20:50 +0800 |
commit | e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd (patch) | |
tree | edbe1cd7381c69deae9b31df527d6ce1c6c664b3 /cmd/swarm/main.go | |
parent | 65ed6a9def4d23bbe6109ae4b841a56510d0c476 (diff) | |
download | dexon-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar dexon-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.gz dexon-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.bz2 dexon-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.lz dexon-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.xz dexon-e23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd.tar.zst dexon-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.go | 9 |
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{ |