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
f54a5141
Commit
f54a5141
authored
6 years ago
by
Holger Nahrstaedt
Browse files
Options
Downloads
Patches
Plain Diff
Improve pingnode and prepare readme for release
parent
9e401fd7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+9
-0
9 additions, 0 deletions
README.rst
beem/cli.py
+8
-3
8 additions, 3 deletions
beem/cli.py
examples/benchmark_nodes2.py
+1
-1
1 addition, 1 deletion
examples/benchmark_nodes2.py
with
18 additions
and
4 deletions
README.rst
+
9
−
0
View file @
f54a5141
...
@@ -128,6 +128,15 @@ Documentation is available at http://beem.readthedocs.io/en/latest/
...
@@ -128,6 +128,15 @@ Documentation is available at http://beem.readthedocs.io/en/latest/
Changelog
Changelog
=========
=========
0.19.24
-------
* AsciiChart for beempy: pricehistory, tradehistory and orderbook
* Sort nodes regarding their ping times (beempy ping --sort --remove)
* currentnode and nextnode skip not working nodes
* Memory consumption fer requests and websocket reduced when creating more instances of steem
* trade_history added to market
* Issue #4 fixed
0.19.23
0.19.23
-------
-------
* new function for beempy added: power, follower, following, muter, muting, mute, nextnode, pingnode, currentnode
* new function for beempy added: power, follower, following, muter, muting, mute, nextnode, pingnode, currentnode
...
...
This diff is collapsed.
Click to expand it.
beem/cli.py
+
8
−
3
View file @
f54a5141
...
@@ -247,15 +247,20 @@ def pingnode(raw, sort, remove):
...
@@ -247,15 +247,20 @@ def pingnode(raw, sort, remove):
if
sort
:
if
sort
:
ping_times
=
[]
ping_times
=
[]
for
node
in
nodes
:
for
node
in
nodes
:
ping_times
.
append
(
1000.
)
for
i
in
range
(
len
(
nodes
)):
try
:
try
:
stm_local
=
Steem
(
node
=
node
,
num_retries
=
2
,
num_retries_call
=
3
,
timeout
=
5
)
stm_local
=
Steem
(
node
=
node
s
[
i
]
,
num_retries
=
2
,
num_retries_call
=
3
,
timeout
=
10
)
start
=
timer
()
start
=
timer
()
stm_local
.
get_config
(
use_stored_data
=
False
)
stm_local
.
get_config
(
use_stored_data
=
False
)
stop
=
timer
()
stop
=
timer
()
rpc_answer_time
=
stop
-
start
rpc_answer_time
=
stop
-
start
ping_times
.
append
(
rpc_answer_time
)
ping_times
[
i
]
=
rpc_answer_time
except
KeyboardInterrupt
:
break
except
:
except
:
ping_times
.
append
(
float
(
"
inf
"
))
ping_times
[
i
]
=
float
(
"
inf
"
)
print
(
"
node %s results in %.2f
"
%
(
nodes
[
i
],
ping_times
[
i
]))
sorted_arg
=
sorted
(
range
(
len
(
ping_times
)),
key
=
ping_times
.
__getitem__
)
sorted_arg
=
sorted
(
range
(
len
(
ping_times
)),
key
=
ping_times
.
__getitem__
)
sorted_nodes
=
[]
sorted_nodes
=
[]
for
i
in
sorted_arg
:
for
i
in
sorted_arg
:
...
...
This diff is collapsed.
Click to expand it.
examples/benchmark_nodes2.py
+
1
−
1
View file @
f54a5141
...
@@ -40,7 +40,7 @@ if __name__ == "__main__":
...
@@ -40,7 +40,7 @@ if __name__ == "__main__":
for
node
in
nodes
:
for
node
in
nodes
:
print
(
"
Current node:
"
,
node
)
print
(
"
Current node:
"
,
node
)
try
:
try
:
stm
=
Steem
(
node
=
node
,
num_retries
=
2
,
num_retries_call
=
3
,
timeout
=
5
)
stm
=
Steem
(
node
=
node
,
num_retries
=
2
,
num_retries_call
=
3
,
timeout
=
10
)
blockchain
=
Blockchain
(
steem_instance
=
stm
)
blockchain
=
Blockchain
(
steem_instance
=
stm
)
account
=
Account
(
"
gtg
"
,
steem_instance
=
stm
)
account
=
Account
(
"
gtg
"
,
steem_instance
=
stm
)
virtual_op_count
=
account
.
virtual_op_count
()
virtual_op_count
=
account
.
virtual_op_count
()
...
...
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