Skip to content
Snippets Groups Projects
Commit 2e8ee50d authored by Holger's avatar Holger
Browse files

Fix quickstart docu and flake8

parent fa5d2ac0
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,7 @@ Creating a wallet
from beem import Steem
steem = Steem()
steem.wallet.wipe(True)
steem.wallet.create("wallet-passphrase")
steem.wallet.unlock("wallet-passphrase")
Adding keys to the wallet
~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -35,7 +35,7 @@ class Testcases(unittest.TestCase):
b = Blockchain(steem_instance=cls.bts)
num = b.get_current_block_num()
# num = 23346630
cls.start = num - 25
cls.start = num - 50
cls.stop = num
# cls.N_transfer = 121
# cls.N_vote = 2825
......@@ -45,17 +45,17 @@ class Testcases(unittest.TestCase):
b = Blockchain(steem_instance=bts)
ops_stream = []
ops_stream_no_threading = []
ops_stream_vote = []
opNames = ["transfer", "vote"]
for op in b.stream(opNames=opNames, start=self.start, stop=self.stop, threading=True, thread_num=8):
for op in b.stream(opNames=opNames, start=self.start, stop=self.stop, threading=True, thread_num=32):
ops_stream.append(op)
for op in b.stream(opNames=opNames, start=self.start, stop=self.stop, threading=False, thread_num=8):
for op in b.stream(opNames=opNames, start=self.start, stop=self.stop, threading=False):
ops_stream_no_threading.append(op)
self.assertEqual(len(ops_stream_no_threading), len(ops_stream))
for i in range(len(ops_stream)):
self.assertEqual(ops_stream[i]["block_num"], ops_stream_no_threading[i]["block_num"])
ops_blocks = []
last_id = self.start - 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment