Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Oct 16, 2020

Built on top of #1845.

Refactored Masternodeman:ProcessMessage decoupling in different methods and stripped out every cs_main lock for a Misbehaving function call.

@furszy furszy self-assigned this Oct 16, 2020
@furszy furszy changed the title [Refactor] Strip out cs_main lock for misbehaving from Masternodeman:ProcessMessage [WIP][Refactor] Strip out cs_main lock for misbehaving from Masternodeman:ProcessMessage Oct 16, 2020
@furszy furszy changed the title [WIP][Refactor] Strip out cs_main lock for misbehaving from Masternodeman:ProcessMessage [Refactor] Strip out cs_main lock for misbehaving from Masternodeman:ProcessMessage Oct 19, 2020
@furszy furszy force-pushed the 2020_strip_out_misbehaving_from_masternodeman_ProcessMessage branch from ece5447 to 2e29c4c Compare October 19, 2020 18:10
@furszy
Copy link
Author

furszy commented Oct 19, 2020

now that #1845 got merged, PR rebased.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

Looking good.
But I think it could be simplified by having the Process* methods return a simple integer representing the ban score, rather than the new struct ProcessResult (whose boolean res seems redundant: if the ban score is 0 we don't call Misbehaving regardless of the value of res).
Special attention needed for CTxIn::IsNull.

@random-zebra random-zebra added this to the 5.0.0 milestone Oct 20, 2020
@furszy furszy force-pushed the 2020_strip_out_misbehaving_from_masternodeman_ProcessMessage branch from 2e29c4c to c8717d9 Compare October 24, 2020 20:39
@furszy
Copy link
Author

furszy commented Oct 24, 2020

Updated per feedback.

@furszy furszy force-pushed the 2020_strip_out_misbehaving_from_masternodeman_ProcessMessage branch from c8717d9 to 50e156f Compare October 28, 2020 18:03
@furszy
Copy link
Author

furszy commented Oct 28, 2020

rebased on master.

Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

utACK 50e156f

@furszy furszy requested a review from Fuzzbawls November 2, 2020 06:08
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

utACK 50e156f

@random-zebra random-zebra merged commit 2d86a41 into PIVX-Project:master Nov 3, 2020
@furszy furszy deleted the 2020_strip_out_misbehaving_from_masternodeman_ProcessMessage branch November 29, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants