Skip to content

Showing "not_applicable" if BIP9 timeout is 0#8209

Closed
jl2012 wants to merge 1 commit intobitcoin:masterfrom
jl2012:patch-13
Closed

Showing "not_applicable" if BIP9 timeout is 0#8209
jl2012 wants to merge 1 commit intobitcoin:masterfrom
jl2012:patch-13

Conversation

@jl2012
Copy link
Contributor

@jl2012 jl2012 commented Jun 16, 2016

getblockchaininfo will show a BIP9 proposal as "not_applicable" (instead of "failed") if the timeout is 0. A timeout before the genesis block timestamp guaruntees that a softfork must not be activated in any circumstances. A timeout of 0 should be used when we want to merge a softfork proposal without defining its deployment schedule

@instagibbs
Copy link
Member

This new logic seems "out there" to the reader. You may want to document the reasoning for this check.

@jl2012
Copy link
Contributor Author

jl2012 commented Jun 17, 2016

Comments added

" \"bip9_softforks\": { (object) status of BIP9 softforks in progress\n"
" \"xxxx\" : { (string) name of the softfork\n"
" \"status\": \"xxxx\", (string) one of \"defined\", \"started\", \"lockedin\", \"active\", \"failed\"\n"
" \"status\": \"xxxx\", (string) one of \"defined\", \"started\", \"locked_in\", \"active\", \"failed\", \"not_applicable\"\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

lockedin: Good catch!

@paveljanik
Copy link
Contributor

So when such a softfork is merged in, what is its state (according to BIP9)?
Should we merge in the source code and keep consensus.vDeployments filled in in such cases? Isn't it better to comment it out instead? Or change BIP9 to reflect this new not-yet-DEFINED state?

@sipa
Copy link
Member

sipa commented Jun 18, 2016 via email

@jl2012
Copy link
Contributor Author

jl2012 commented Jun 24, 2016

replaced by #8258

@jl2012 jl2012 closed this Jun 24, 2016
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants