aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorCorey Lin <514971757@qq.com>2018-11-09 18:51:07 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-09 18:51:07 +0800
commit1ff152f3a43e4adf030ac61eb5d8da345554fc5a (patch)
treed54b3e17d3993737f9eac3b53c0b41af86f23ea6 /cmd
parentf574c4e74b12d275d24b209aac8dd98ed9b9bb52 (diff)
downloaddexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar
dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.gz
dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.bz2
dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.lz
dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.xz
dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.zst
dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.zip
rawdb: remove unused parameter for WritePreimages func (#18059)
* rawdb: remove unused parameter for WritePreimages func and modify a spelling mistake * rawdb: update the doc for function WritePreimages
Diffstat (limited to 'cmd')
-rw-r--r--cmd/utils/cmd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index 58d72f32b..f23aa5775 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -272,13 +272,13 @@ func ImportPreimages(db *ethdb.LDBDatabase, fn string) error {
// Accumulate the preimages and flush when enough ws gathered
preimages[crypto.Keccak256Hash(blob)] = common.CopyBytes(blob)
if len(preimages) > 1024 {
- rawdb.WritePreimages(db, 0, preimages)
+ rawdb.WritePreimages(db, preimages)
preimages = make(map[common.Hash][]byte)
}
}
// Flush the last batch preimage data
if len(preimages) > 0 {
- rawdb.WritePreimages(db, 0, preimages)
+ rawdb.WritePreimages(db, preimages)
}
return nil
}