Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hivemind
Commits
a849382f
Commit
a849382f
authored
4 years ago
by
Mariusz Trela
Browse files
Options
Downloads
Patches
Plain Diff
The vop `ineffective_delete_comment_operation` is correctly processed
parent
b6eb872d
No related branches found
No related tags found
4 merge requests
!456
Release candidate v1 24
,
!230
Setup monitoring with pghero
,
!135
Enable postgres monitoring on CI server
,
!86
Post are removed correctly
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/steem/client.py
+4
-3
4 additions, 3 deletions
hive/steem/client.py
with
4 additions
and
3 deletions
hive/steem/client.py
+
4
−
3
View file @
a849382f
...
@@ -145,7 +145,7 @@ class SteemClient:
...
@@ -145,7 +145,7 @@ class SteemClient:
def
get_virtual_operations
(
self
,
block
):
def
get_virtual_operations
(
self
,
block
):
"""
Get virtual ops from block
"""
"""
Get virtual ops from block
"""
result
=
self
.
__exec
(
'
get_ops_in_block
'
,
{
"
block_num
"
:
block
,
"
only_virtual
"
:
True
})
result
=
self
.
__exec
(
'
get_ops_in_block
'
,
{
"
block_num
"
:
block
,
"
only_virtual
"
:
True
})
tracked_ops
=
[
'
author_reward_operation
'
,
'
comment_reward_operation
'
,
'
effective_comment_vote_operation
'
,
'
comment_payout_update_operation
'
]
tracked_ops
=
[
'
author_reward_operation
'
,
'
comment_reward_operation
'
,
'
effective_comment_vote_operation
'
,
'
comment_payout_update_operation
'
,
'
ineffective_delete_comment_operation
'
]
ret
=
[]
ret
=
[]
result
=
result
[
'
ops
'
]
if
'
ops
'
in
result
else
[]
result
=
result
[
'
ops
'
]
if
'
ops
'
in
result
else
[]
for
vop
in
result
:
for
vop
in
result
:
...
@@ -165,9 +165,10 @@ class SteemClient:
...
@@ -165,9 +165,10 @@ class SteemClient:
comment_reward_operation
=
0x000008
comment_reward_operation
=
0x000008
effective_comment_vote_operation
=
0x400000
effective_comment_vote_operation
=
0x400000
comment_payout_update_operation
=
0x000800
comment_payout_update_operation
=
0x000800
ineffective_delete_comment_operation
=
0x800000
tracked_ops_filter
=
author_reward_operation
|
comment_reward_operation
|
effective_comment_vote_operation
|
comment_payout_update_operation
tracked_ops_filter
=
author_reward_operation
|
comment_reward_operation
|
effective_comment_vote_operation
|
comment_payout_update_operation
|
ineffective_delete_comment_operation
tracked_ops
=
[
'
author_reward_operation
'
,
'
comment_reward_operation
'
,
'
effective_comment_vote_operation
'
,
'
comment_payout_update_operation
'
]
tracked_ops
=
[
'
author_reward_operation
'
,
'
comment_reward_operation
'
,
'
effective_comment_vote_operation
'
,
'
comment_payout_update_operation
'
,
'
ineffective_delete_comment_operation
'
]
resume_on_operation
=
0
resume_on_operation
=
0
...
...
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