forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2567: [BUG][TierTwo] MNB process refactor
4a67ede ProcessMNB: Unify IsInputAssociatedWithPubkey check inside MNMan::CheckInputs. (furszy) bcd7f05 ProcessMNB: Only emplace valid mnb in the seen map. (furszy) 8f6cd1a Move CMasternodeBroadcast::AddAndRelayMNB to the Masternode manager class. (furszy) 2d7effd Bugfix: missing error if mnb cannot be added for DMN prevalence. (furszy) 059fd0e Move mnb check inputs to masternode manager. (furszy) 17a3b14 MasternodeMan: Do not access activeMasternode from 'CMasternodeBroadcast:CheckInputsAndAdd' function. (furszy) aad9139 CMasternode: decouple CheckInputs from CheckInputsAndAdd (furszy) 0c0e4c0 CMasternode::IsInputAssociatedWithPubkey use coins cache instead of disk lookup. (furszy) 100f81f MN sync: unify duplicated sync timeout code in one single function. (furszy) Pull request description: Have refactored the mnb validation process, placing the code where it should had been in the first place (masternode manager and not be an internal masternode function that is called from and internally calls to the manager..). Doing it found a bug over the MN-DMN compatibility code: if the mnb received is from an active DMN, it needs to not be relayed to the network as it's an invalid mnb that no node will accept. Active DMNs have prevalence over regular MNs. And improved an un-performant, on disk, tx look up to check the mnb pubkey association with the collateral key. Use the coins cache instead. ACKs for top commit: Fuzzbawls: Code ACK 4a67ede random-zebra: utACK 4a67ede Tree-SHA512: 58af66effa51177a771e984003d833783516fd9d22e2b745f4296475bde21b4cf07301739b055630091967cefb5ad7ac6f9b0b9b0869f945200baefad571a015
- Loading branch information
Showing
6 changed files
with
117 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters