decred / politeia

ISC License
110 stars 75 forks source link

pi: Add `LegacyToken` to `ProposalMetadata`. #1626

Closed amass01 closed 2 years ago

amass01 commented 2 years ago

This diff adds a new LegacyToken field to the ProposalMetadata struct. It will be populated only for legacy gitbe proposals which will be imported to the backend in the next step.

This commit also adds a validation to the pi plugin to ensure that the new LegacyToken field in not set during the normal proposal submissions.