"softforks": [ (array) status of softforks in progress
{
"id": "xxxx", (string) name of softfork
"version": xx, (numeric) block version
"enforce": { (object) progress toward enforcing the softfork rules
"status": xx, (boolean) true if threshold reached
"found": xx, (numeric) number of blocks with the new version found
"required": xx, (numeric) number of blocks required to trigger
"window": xx, (numeric) size of examined window of recent blocks
},
"reject": { ... } (object) progress toward rejecting pre-softfork blocks (same fields as for "enforce")
}, ...
]
Show softfork status in getblockchaininfo #6353
pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2015_06_softforkinfo changing 1 files +51 −0-
laanwj commented at 7:49 AM on June 29, 2015: member
- laanwj added the label RPC on Jun 29, 2015
- laanwj force-pushed on Jun 29, 2015
-
btcdrak commented at 8:41 AM on June 29, 2015: contributor
Tested ACK
-
petertodd commented at 8:44 AM on June 29, 2015: contributor
Tested ACK.
One minor nit is the way the "found" bit caps out at found==required. I think removing the "&& nFound < nRequired" clause in the for loop should be safe; the nFound > nRequired part at the end should never be triggered. But just documenting it would be safer.
-
laanwj commented at 8:49 AM on June 29, 2015: member
One minor nit is the way the "found" bit caps out at found==required. I think removing the "&& nFound < nRequired" clause in the for loop should be safe; the nFound > nRequired part at the end should never be triggered. But just documenting it would be safer.
I've thought about cloning the
IsSuperMajorityin rpcblockhain.cpp, with that change, leaving the original one as-is. It is only a few lines. Then it also doesn't need to be exported from main anymore. - laanwj force-pushed on Jun 29, 2015
- jtimon referenced this in commit f168e66c18 on Jun 29, 2015
-
jtimon commented at 9:46 AM on June 29, 2015: contributor
ut ACK
-
CodeShark commented at 5:23 AM on July 1, 2015: contributor
tACK
-
in src/rpcblockchain.cpp:None in f168e66c18 outdated
468 | @@ -469,6 +469,36 @@ UniValue verifychain(const UniValue& params, bool fHelp) 469 | return CVerifyDB().VerifyDB(pcoinsTip, nCheckLevel, nCheckDepth); 470 | } 471 | 472 | +/* Implementation of IsSuperMajority with better feedback */
fanquake commented at 7:07 AM on July 1, 2015:nit: /**
laanwj commented at 5:36 PM on July 1, 2015:Fixed
fanquake commented at 7:07 AM on July 1, 2015: memberutACK
Show softfork status in getblockchaininfo 5ed10793c2laanwj force-pushed on Jul 1, 2015laanwj merged this on Jul 1, 2015laanwj closed this on Jul 1, 2015laanwj referenced this in commit 6bcb0a21c5 on Jul 1, 2015in src/rpcblockchain.cpp:None in 5ed10793c2
543 | @@ -501,6 +544,14 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp) 544 | obj.push_back(Pair("verificationprogress", Checkpoints::GuessVerificationProgress(Params().Checkpoints(), chainActive.Tip()))); 545 | obj.push_back(Pair("chainwork", chainActive.Tip()->nChainWork.GetHex())); 546 | obj.push_back(Pair("pruned", fPruneMode)); 547 | + 548 | + const Consensus::Params& consensusParams = Params().GetConsensus();
jonasschnelli commented at 7:25 AM on July 20, 2015:Now we have the soft fork states between
prunedandprunehightwhich looks a bit sandwiched.DrahtBot locked this on Aug 16, 2022Labels
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC
More mirrored repositories can be found on mirror.b10c.me