forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with mapSeenGovernanceObjects (#1511)
* fix issues with mapSeenGovernanceObjects Removed seen-governance-objects optimization except for deleted objects. Otherwise some nodes can permanently lost proposals if they received them too early. Beside of that there is a vulnerability with seen-governance-objects mechanism if malicious node send us a lot of invalid governance objects. * mapSeenGovernanceObjects renamed to mapErasedGovernanceObjects * current fixes * use int64_t for expiration timestamp
- Loading branch information
Showing
2 changed files
with
53 additions
and
70 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