Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
fix #984 + cleanup (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Aug 21, 2019
1 parent a45ae92 commit 357c00c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion neo/Prompt/Commands/Bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from neo.Settings import settings
from neo.Network.common import blocking_prompt as prompt
from prompt_toolkit import prompt
import requests
from tqdm import tqdm
import tarfile
Expand Down
8 changes: 1 addition & 7 deletions neo/bin/import_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
from neo.Core.Blockchain import Blockchain
from neo.Core.Block import Block
from neo.Storage.Implementation.DBFactory import getBlockchainDB
from neo.Storage.Common.DBPrefix import DBPrefix
from neo.Settings import settings
from neo.Core.IO.BinaryReader import BinaryReader
from neo.Core.IO.BinaryWriter import BinaryWriter
from neo.IO.MemoryStream import StreamManager, MemoryStream
from neo.IO.MemoryStream import MemoryStream
import argparse
import os
import shutil
Expand Down Expand Up @@ -108,7 +106,6 @@ async def _main():
print("Starting import at %s " % start_block)

if args.totalblocks:
# total_blocks = start_block + args.totalblocks - 1
total_blocks = args.totalblocks

for _ in trange(start_block, desc='Skipping blocks', unit='Block'):
Expand Down Expand Up @@ -185,9 +182,6 @@ async def _main():
block.DeserializeForImport(reader)
header_hash_list.append(block.Hash.ToBytes())

# if block.Index > 942371:
# break

# add
if block.Index >= start_block:
chain.AddHeaders([block.Header])
Expand Down

0 comments on commit 357c00c

Please sign in to comment.