Comments (2)
Thanks, that settles it then!
The question came up in a discussion with the Polkassembly team about why their app shows a proposal passing outside of the decision period. Played around with the tests of pallet-referendum and then verified using the Polkadot dev node.
from polkadot-wiki.
Thanks for reporting. I skimmed through the source code and observed that the time elapsed could be greater than the deciding period, provided the referendum is confirming. So, your claim "if a proposal starts confirming one block before the end of the decision period and stays in confirming state for the duration of the confirmation period, it is approved. " makes sense to me.
Time elapsed is calculated here https://github.com/paritytech/polkadot-sdk/blob/9bf1a5e23884921498b381728bfddaae93f83744/substrate/frame/referenda/src/lib.rs#L1153
If the referendum is confirming, then it lets elapsed time be greater than the deciding period here https://github.com/paritytech/polkadot-sdk/blob/9bf1a5e23884921498b381728bfddaae93f83744/substrate/frame/referenda/src/lib.rs#L1300 and if the voting tally reverses, the referendum is no longer confirming and gets rejected as the decision period has elapsed.
We will update the Wiki. Just curious how you experimented with this!
from polkadot-wiki.
Related Issues (20)
- consts.staking.maxNominations is not fetching the correct value HOT 1
- Add Decentralized Futures to Grants program page HOT 2
- Update 1KV pages (Polkadot and Kusama) based on David's message
- Explain lock start time better
- [Feature Request] Update Avalanche comparison HOT 6
- [Feature Request] : Add info on how voting for tech fellowship works HOT 3
- [Feature Request] Update Ethereum comparison HOT 1
- Spend and Spend Local calls - Treasury
- Update Parcahain Auction doc
- OpenGov: Distinction between Voting Period and Decision Period is unclear HOT 1
- Update Registrar page to use OpenGov
- Update Rollup Comparison HOT 2
- Archive old Democracy pages HOT 1
- Clarify OpenGov unlocking HOT 1
- Update Cosmos comparison page
- Image to show how locks work HOT 2
- Add 5% minimum comment to whitelisted track
- W3F Registrar shutdown
- "Grants Programme" should be "Grants Program" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polkadot-wiki.