rename block_processed to block_added

This commit is contained in:
fiatjaf
2022-09-12 17:43:54 -03:00
committed by neil saitug
parent 9b33a921f0
commit 1ef8fb7ef8
6 changed files with 17 additions and 17 deletions

View File

@@ -8,8 +8,8 @@ plugin = Plugin()
blocks_catched = []
@plugin.subscribe("block_processed")
def notify_block_processed(plugin, block, **kwargs):
@plugin.subscribe("block_added")
def notify_block_added(plugin, block, **kwargs):
global blocks_catched
blocks_catched.append(block["height"])