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
Reject miniblocks which are not whitelisted #2021
Conversation
SebastianMarian
commented
Jun 25, 2020
- Implemented a mechanism which will add only whitelisted miniblocks received in pool
- Fixed an edge case in multidata interceptor related to a throttle mechanism
…received in pool * Fixed an edge case in multidata interceptor related to a throttle mechanism
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nice catch!
@@ -109,6 +109,7 @@ func (mdi *MultiDataInterceptor) ProcessReceivedMessage(message p2p.MessageP2P, | |||
message.SeqNo(), | |||
) | |||
if err != nil { | |||
mdi.throttler.EndProcessing() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
c00ad0c
@@ -1503,6 +1503,31 @@ func (tpn *TestProcessorNode) BroadcastBlock(body data.BodyHandler, header data. | |||
_ = tpn.BroadcastMessenger.BroadcastTransactions(transactions) | |||
} | |||
|
|||
// WhiteListBody will whitelist all miniblocks from the given body for all the given nodes | |||
func (tpn *TestProcessorNode) WhiteListBody(nodes []*TestProcessorNode, bodyHandler data.BodyHandler) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could have whitelisted from header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System tests passed.