Added better logging
Compare changes
+ 38
− 48
@@ -15,6 +15,9 @@ from hive.indexer.post_data_cache import PostDataCache
@@ -15,6 +15,9 @@ from hive.indexer.post_data_cache import PostDataCache
@@ -22,7 +25,6 @@ DB = Db.instance()
@@ -22,7 +25,6 @@ DB = Db.instance()
@@ -35,17 +37,6 @@ class Blocks:
@@ -35,17 +37,6 @@ class Blocks:
@@ -76,7 +67,7 @@ class Blocks:
@@ -76,7 +67,7 @@ class Blocks:
@@ -90,69 +81,73 @@ class Blocks:
@@ -90,69 +81,73 @@ class Blocks:
ops_stats = { 'author_reward_operation' : 0, 'comment_reward_operation' : 0, 'effective_comment_vote_operation' : 0, 'comment_payout_update_operation' : 0 }
comment_payout_ops[key] = { 'author_reward_operation':None, 'comment_reward_operation':None, 'effective_comment_vote_operation':None, 'comment_payout_update_operation':None, 'date' : date }
comment_payout_ops[key] = { 'author_reward_operation':None, 'comment_reward_operation':None, 'effective_comment_vote_operation':None, 'comment_payout_update_operation':None, 'date' : date }
comment_payout_ops[key] = { 'author_reward_operation':None, 'comment_reward_operation':None, 'effective_comment_vote_operation':None, 'comment_payout_update_operation':None, 'date' : date }
comment_payout_ops[key] = { 'author_reward_operation':None, 'comment_reward_operation':None, 'effective_comment_vote_operation':None, 'comment_payout_update_operation':None, 'date' : date }
@@ -173,6 +168,7 @@ class Blocks:
@@ -173,6 +168,7 @@ class Blocks:
@@ -221,33 +217,25 @@ class Blocks:
@@ -221,33 +217,25 @@ class Blocks:
(vote_ops, comment_payout_stats) = Blocks.prepare_vops(Posts.comment_payout_ops, virtual_operations[num], cls._current_block_date)
(vote_ops, comment_payout_stats) = Blocks.prepare_vops(Posts.comment_payout_ops, vops, cls._current_block_date)
@@ -321,7 +309,9 @@ class Blocks:
@@ -321,7 +309,9 @@ class Blocks: