Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
2e8ee50d
Commit
2e8ee50d
authored
6 years ago
by
Holger
Browse files
Options
Downloads
Patches
Plain Diff
Fix quickstart docu and flake8
parent
fa5d2ac0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/quickstart.rst
+1
-2
1 addition, 2 deletions
docs/quickstart.rst
tests/beem/test_blockchain_threading.py
+5
-5
5 additions, 5 deletions
tests/beem/test_blockchain_threading.py
with
6 additions
and
7 deletions
docs/quickstart.rst
+
1
−
2
View file @
2e8ee50d
...
...
@@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
tests/beem/test_blockchain_threading.py
+
5
−
5
View file @
2e8ee50d
...
...
@@ -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
-
2
5
cls
.
start
=
num
-
5
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment