From 9fb4b7b9894c2ef80bc4839426574a5ba6b6af42 Mon Sep 17 00:00:00 2001 From: Gabriel Levcovitz Date: Wed, 15 Feb 2023 16:06:01 -0300 Subject: [PATCH 1/2] feat(events): remove voided event --- hathor/event/event_manager.py | 2 -- hathor/pubsub.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/hathor/event/event_manager.py b/hathor/event/event_manager.py index 34d92980d..386e96013 100644 --- a/hathor/event/event_manager.py +++ b/hathor/event/event_manager.py @@ -33,7 +33,6 @@ _SUBSCRIBE_EVENTS = [ HathorEvents.NETWORK_NEW_TX_ACCEPTED, - HathorEvents.NETWORK_NEW_TX_VOIDED, HathorEvents.NETWORK_BEST_BLOCK_FOUND, HathorEvents.NETWORK_ORPHAN_BLOCK_FOUND, HathorEvents.LOAD_STARTED, @@ -75,7 +74,6 @@ def _extract_reorg(args: EventArguments) -> Dict[str, Any]: HathorEvents.LOAD_STARTED: _empty, HathorEvents.LOAD_FINISHED: _empty, HathorEvents.NETWORK_NEW_TX_ACCEPTED: _extract_tx, - HathorEvents.NETWORK_NEW_TX_VOIDED: _extract_tx, HathorEvents.NETWORK_BEST_BLOCK_FOUND: _extract_tx, HathorEvents.NETWORK_ORPHAN_BLOCK_FOUND: _extract_tx, HathorEvents.REORG_STARTED: _extract_reorg, diff --git a/hathor/pubsub.py b/hathor/pubsub.py index 5170d5856..30c42e23d 100644 --- a/hathor/pubsub.py +++ b/hathor/pubsub.py @@ -129,8 +129,6 @@ class HathorEvents(Enum): CONSENSUS_TX_REMOVED = 'consensus:tx_removed' - NETWORK_NEW_TX_VOIDED = 'network:new_tx_voided' - NETWORK_BEST_BLOCK_FOUND = 'network:best_block_found' NETWORK_ORPHAN_BLOCK_FOUND = 'network:orphan_block_found' From 840f269537b05b991f45bfab9df43684c00dc5da Mon Sep 17 00:00:00 2001 From: Gabriel Levcovitz Date: Wed, 15 Feb 2023 16:14:22 -0300 Subject: [PATCH 2/2] feat(events): remove voided event comment --- hathor/pubsub.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hathor/pubsub.py b/hathor/pubsub.py index 30c42e23d..28e465e62 100644 --- a/hathor/pubsub.py +++ b/hathor/pubsub.py @@ -34,10 +34,6 @@ class HathorEvents(Enum): Triggered when a peer connection to the network fails Publishes the peer id and the peers count - NETWORK_NEW_TX_VOIDED - Triggered when a new transaction is voided in the network - Publishes a tx object - NETWORK_BEST_BLOCK_FOUND Triggered when a new block is accepted in the network Publishes a block object