Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Relates to #211. Upgrade to v3.0.6. Spec version 9. Democracy pallet with faster proposal and voting parameters #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ltfschoen
Copy link
Collaborator

@ltfschoen ltfschoen commented Jul 5, 2021

Update 16th Aug 2021 - Low priority on-hold

Proposed changes to perform a forkless chain upgrade so that the community may use on-chain voting to propose to transfer DHX tokens from the DHX DAO Unlocked Reserves (Treasury) to a Multisig Proxy account for subsequent transfer to topup a Supernode within a reasonable timeframe. Refer to DataHighway-DHX/documentation#129

We need the community to decide what are reasonable parameters to change in the democracy pallet, as in this PR i've just chosen very short durations to make it easy to test in a development environment (i.e. launch period, voting period, and cooling off period of only 5 minutes instead of 28 days; enactment period of 5 mins instead of 30 days; fast track voting period of 4 minutes instead of 3 days)

Steps: Test that it works on "dev" chain locally

  1. Generate Wasm file to use later for forkless upgrade
  • Checkout this branch 'luke/1288-upgrade-democracy-faster' and build it to generate a Wasm file of v3.0.6 where democracy parameters are faster for forkless upgrade (i.e. launch period, voting period, and cooling off period of only 5 minutes instead of 28 days; enactment period of 5 mins instead of 30 days; fast track voting period of 4 minutes instead of 3 days)
git fetch origin luke/1288-upgrade-democracy-faster:luke/1288-upgrade-democracy-faster
git checkout luke/1288-upgrade-democracy-faster
cargo build --release
  • Copy the generated Wasm file from ~/code/DataHighway-DHX/node/target/release/wbuild/datahighway-runtime.wasm
  1. Run existing chain and generate an on-chain governance proposal to transfer tokens between two accounts that will use sudo
  • Checkout 'master' branch which is v3.0.5 and build it
git checkout master
cargo build --release
  • Run the "dev" chain with v3.0.5
rm -rf /tmp/polkadot-chains/ &&
./target/release/datahighway \                    
  --base-path /tmp/polkadot-chains/alice \
  --name "Data Highway Development Chain" \
  --dev \
  --telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
  -lruntime=debug
  1. On-chain upgrade to faster democracy

Important: this is still a Sudo transfer, so must only be used between the Treasury and Multisig Proxy. Only normal transfer is allowed between Multisig Proxy and Supernode (since Supernode will not accept transfers using Sudo)

@ltfschoen ltfschoen requested a review from festelo July 5, 2021 10:54
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.

1 participant