ferencberes / ethp2psim

Ethereum P2P network privacy simulator
https://arxiv.org/abs/2306.15024
GNU General Public License v3.0
6 stars 2 forks source link

The history of a message should contain all protocol events #8

Closed seresistvanandras closed 1 year ago

seresistvanandras commented 2 years ago

https://github.com/ferencberes/ethsim/blob/ffe770e3db3cbcb7249d8bba083735f9fc8ca7b6/python/message.py#L19

The history should be a list of ProtocolEvents. The FirstSent estimator needs a list of these events. To resolve this issue, also implement test cases for the FirstReach and the FirstSent estimator adversary.

ferencberes commented 1 year ago

This issue is fixed. Now, history contains a list of ProtocolEvent-s for every message. First-sent estimator is also implemented thanks to this change.