Commit 69693a3
committed
web: make /v36_status report real V35->V36 state, not a frozen stub
rest_v36_status() returned a hardcoded auto_ratchet.state="voting" with
v35_shares=0/v36_shares=0/v36_percentage=0.0 regardless of actual chain
state, only ever filling height/sample_size. On a node mid-cross this lied
about the V35->V36 transition (the founding-charter stub class) while the
sibling rest_version_signaling() already derived the truthful state and
percentages from the same chain data.
/v36_status now sources auto_ratchet.state and the v35/v36 share counts +
percentage from rest_version_signaling(). Non-transition coins (its early
{} return) leave truthful zeros; a too-short chain early-returns before the
overall_* fields, handled by .value() defaults. Read/web path only; pool
aggregates and consensus untouched.
Serves the live LTC prod V35->V36 cross (#288) crossing-visibility charter.1 parent 5350b3b commit 69693a3
1 file changed
Lines changed: 34 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5959 | 5959 | | |
5960 | 5960 | | |
5961 | 5961 | | |
| 5962 | + | |
| 5963 | + | |
| 5964 | + | |
| 5965 | + | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
5962 | 5976 | | |
5963 | | - | |
5964 | | - | |
| 5977 | + | |
| 5978 | + | |
5965 | 5979 | | |
5966 | 5980 | | |
5967 | 5981 | | |
5968 | 5982 | | |
5969 | | - | |
5970 | | - | |
5971 | | - | |
5972 | | - | |
5973 | | - | |
5974 | | - | |
5975 | | - | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
5976 | 5990 | | |
5977 | 5991 | | |
5978 | | - | |
5979 | | - | |
5980 | | - | |
5981 | | - | |
| 5992 | + | |
| 5993 | + | |
| 5994 | + | |
5982 | 5995 | | |
| 5996 | + | |
| 5997 | + | |
| 5998 | + | |
| 5999 | + | |
| 6000 | + | |
| 6001 | + | |
| 6002 | + | |
| 6003 | + | |
5983 | 6004 | | |
5984 | 6005 | | |
5985 | 6006 | | |
| |||
0 commit comments