Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[p2p] higher weight to process node messages #3227

Closed
wants to merge 1 commit into from

Conversation

LeoHChen
Copy link
Contributor

Total number of weight is 8192+8192=16384

weight of consensus message is 1
weight of node message / tx is 64

This is to prevent massive number of tx messages from getting the node OOM.

Signed-off-by: Leo Chen leo@harmony.one

Total number of weight is 8192+8192=16384

weight of consensus message is 1
weight of node message / tx is 64

This is to prevent massive number of tx messages from getting the node OOM.

Signed-off-by: Leo Chen <leo@harmony.one>
@LeoHChen LeoHChen requested review from chainum and rlan35 July 16, 2020 07:07
@JackyWYX
Copy link
Contributor

I would recommend to use two different sem to process consensus and node message, thus consensus protocol will not be effected by E.g. transaction spamming.

@rlan35
Copy link
Contributor

rlan35 commented Jul 17, 2020

I would recommend to use two different sem to process consensus and node message, thus consensus protocol will not be effected by E.g. transaction spamming.

Agree, if we give node message 64, then certainly people can spam with node message and block consensus message from being processed.

@LeoHChen
Copy link
Contributor Author

replaced by #3232

@LeoHChen LeoHChen closed this Jul 17, 2020
@LeoHChen LeoHChen deleted the weighted_semaphore branch July 17, 2020 09:43
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