Skip to content

feat(events): remove NETWORK_BEST_BLOCK_FOUND and NETWORK_ORPHAN_BLOCK_FOUND events#537

Merged
glevco merged 1 commit intodevfrom
feat/block-events
Mar 10, 2023
Merged

feat(events): remove NETWORK_BEST_BLOCK_FOUND and NETWORK_ORPHAN_BLOCK_FOUND events#537
glevco merged 1 commit intodevfrom
feat/block-events

Conversation

@glevco
Copy link
Copy Markdown
Contributor

@glevco glevco commented Mar 3, 2023

Acceptance Criteria:

  • Remove NETWORK_BEST_BLOCK_FOUND event
  • Remove NETWORK_ORPHAN_BLOCK_FOUND event

Just like in #529, where NETWORK_NEW_TX_VOIDED was removed, after discussing with @jansegre we came to the conclusion that these two events are not necessary and can be removed as well. Their functionality is already covered by existing events. It may be necessary, though, to add new attributes in the event body to represent the different types. This will be clearer when implementing an use case, and then a new PR may be created.

@glevco glevco self-assigned this Mar 3, 2023
@glevco glevco changed the base branch from master to dev March 8, 2023 04:20
@glevco glevco marked this pull request as ready for review March 8, 2023 04:28
@glevco glevco requested review from jansegre and msbrogli as code owners March 8, 2023 04:28
@glevco glevco changed the title feat(events): emit best block and orphan block events feat(events): remove NETWORK_BEST_BLOCK_FOUND and NETWORK_ORPHAN_BLOCK_FOUND events Mar 8, 2023
@glevco glevco force-pushed the feat/block-events branch from 08077f5 to d23afad Compare March 9, 2023 17:35
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 9, 2023

Codecov Report

Merging #537 (d23afad) into dev (adc0ac5) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #537   +/-   ##
=======================================
  Coverage   83.20%   83.21%           
=======================================
  Files         211      211           
  Lines       18646    18644    -2     
  Branches     2590     2590           
=======================================
  Hits        15514    15514           
+ Misses       2563     2562    -1     
+ Partials      569      568    -1     
Impacted Files Coverage Δ
hathor/event/event_manager.py 97.01% <ø> (ø)
hathor/event/model/base_event.py 92.30% <ø> (ø)
hathor/pubsub.py 94.80% <ø> (-0.14%) ⬇️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@glevco glevco merged commit efe6f7d into dev Mar 10, 2023
@glevco glevco deleted the feat/block-events branch March 10, 2023 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants