Skip to content

Governance changes - #1029

Merged
UdjinM6 merged 2 commits into
dashpay:v0.12.1.xfrom
tgflynn:v0.12.1.x-governance-PR-4
Sep 17, 2016
Merged

UdjinM6 merged 2 commits into
dashpay:v0.12.1.xfrom
tgflynn:v0.12.1.x-governance-PR-4

Conversation

@tgflynn

@tgflynn tgflynn commented Sep 17, 2016

Copy link
Copy Markdown

This implements two major governance changes that were discussed today. The CGovernanceObject::strName field has been removed to avoid data redundancy.

A limit is also now imposed on the length of CGovernanceObject::strData to avoid propagating unreasonably large objects. Without this objects up to the 2 MB message size limit could be created. The maximum strData size is now 16 kB. I'm not sure this is the right number, the value is easy to change if necessary.

Note that the serialization format has changed so this won't accept old objects.

The output format for gobject list has also changed (the object hash is now used as the key instead of strName) so sentinel will need to be updated.

 - Limit strData size to avoid propagation of very large messages
 - Remove unused CGovernanceObject::SetData method
 - Remove CGovernanceObject::strName field to avoid data redundancy

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK

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.

2 participants