Skip to content

Conversation

@masih
Copy link
Member

@masih masih commented Jun 12, 2024

To implement some adversary models the simulation package introduces an interface that allows an adversary host to immediately propagate a message across the network.

Since the original implementation the core broadcast mechanisms has evolved into async RequestBroadcast that takes a builder. But the pattern is not fully applied to the simulation specific flavour of synchronous broadcast.

The changes here use the same builder pattern in simulation and reflect changes across adversary models.

@masih masih requested a review from Kubuxu June 12, 2024 13:34
@codecov
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.92%. Comparing base (9478435) to head (388b79e).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #339   +/-   ##
=======================================
  Coverage   82.92%   82.92%           
=======================================
  Files          15       15           
  Lines        1687     1687           
=======================================
  Hits         1399     1399           
  Misses        168      168           
  Partials      120      120           

@masih masih enabled auto-merge June 12, 2024 13:44
@masih masih requested review from Stebalien and adlrocha June 12, 2024 14:35
@masih masih force-pushed the masih/sim-sync-broadcast branch 2 times, most recently from 4e97ca7 to c9f4f21 Compare June 12, 2024 15:56
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable, but if you want deeper design feedback I don't have enough context. But if you're just looking for a LGTM, go ahead and merge it.

@masih masih added this pull request to the merge queue Jun 12, 2024
@Stebalien Stebalien removed this pull request from the merge queue due to a manual request Jun 12, 2024
@Stebalien
Copy link
Member

Removing auto-marge because I'm not sure how much feedback @masih is looking for.

@masih
Copy link
Member Author

masih commented Jun 12, 2024

Thank you Steven for excellent feedback as always ♥️

@masih masih force-pushed the masih/sim-sync-broadcast branch from c9f4f21 to 3fd8b4e Compare June 13, 2024 09:04
To implement some adversary models the simulation package introduces an
interface that allows an adversary host to immediately propagate a
message across the network.

Since the original implementation the core broadcast mechanisms has
evolved into async `RequestBroadcast` that takes a builder. But the
pattern is not fully applied to the simulation specific flavour of
synchronous broadcast.

The changes here use the same builder pattern in simulation and reflect
changes across adversary models.
@masih masih force-pushed the masih/sim-sync-broadcast branch from 3fd8b4e to 388b79e Compare June 13, 2024 09:05
@masih masih enabled auto-merge June 13, 2024 09:05
@masih masih added this pull request to the merge queue Jun 13, 2024
Merged via the queue into main with commit fa9cc6d Jun 13, 2024
@masih masih deleted the masih/sim-sync-broadcast branch June 13, 2024 09:10
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.

4 participants