diff options
Diffstat (limited to 'eth/api.go')
-rw-r--r-- | eth/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/api.go b/eth/api.go index 9904c6f53..a5b6e7076 100644 --- a/eth/api.go +++ b/eth/api.go @@ -241,7 +241,7 @@ func (api *PrivateAdminAPI) ExportChain(file string) (bool, error) { func hasAllBlocks(chain *core.BlockChain, bs []*types.Block) bool { for _, b := range bs { - if !chain.HasBlock(b.Hash()) { + if !chain.HasBlock(b.Hash(), b.NumberU64()) { return false } } |