@@ -31,7 +31,6 @@ extern std::string YesNo(bool bin);
31
31
extern double DoubleFromAmount (int64_t amount);
32
32
bool AskForOutstandingBlocks (uint256 hashStart);
33
33
bool ForceReorganizeToHash (uint256 NewHash);
34
- extern UniValue GetUpgradedBeaconReport ();
35
34
extern UniValue MagnitudeReport (const NN::Cpid cpid);
36
35
extern std::string ExtractValue (std::string data, std::string delimiter, int pos);
37
36
extern UniValue SuperblockReport (int lookback = 14 , bool displaycontract = false , std::string cpid = " " );
@@ -1106,21 +1105,6 @@ UniValue superblocks(const UniValue& params, bool fHelp)
1106
1105
return res;
1107
1106
}
1108
1107
1109
- UniValue upgradedbeaconreport (const UniValue& params, bool fHelp )
1110
- {
1111
- if (fHelp || params.size () != 0 )
1112
- throw runtime_error (
1113
- " upgradedbeaconreport\n "
1114
- " \n "
1115
- " Display upgraded beacon report of the network\n " );
1116
-
1117
- LOCK (cs_main);
1118
-
1119
- UniValue aUpgBR = GetUpgradedBeaconReport ();
1120
-
1121
- return aUpgBR;
1122
- }
1123
-
1124
1108
UniValue addkey (const UniValue& params, bool fHelp )
1125
1109
{
1126
1110
if (fHelp || params.size () != 4 )
@@ -1940,34 +1924,6 @@ double DoubleFromAmount(int64_t amount)
1940
1924
return (double )amount / (double )COIN;
1941
1925
}
1942
1926
1943
- UniValue GetUpgradedBeaconReport ()
1944
- {
1945
- UniValue results (UniValue::VARR);
1946
- UniValue entry (UniValue::VOBJ);
1947
- entry.pushKV (" Report" ," Upgraded Beacon Report 1.0" );
1948
- std::string rows = " " ;
1949
- std::string row = " " ;
1950
- int iBeaconCount = 0 ;
1951
- int iUpgradedBeaconCount = 0 ;
1952
- for (const auto & item : ReadSortedCacheSection (Section::BEACON))
1953
- {
1954
- const AppCacheEntry& entry = item.second ;
1955
- std::string contract = DecodeBase64 (entry.value );
1956
- std::string cpidv2 = ExtractValue (contract," ;" ,0 );
1957
- std::string grcaddress = ExtractValue (contract," ;" ,2 );
1958
- std::string sPublicKey = ExtractValue (contract," ;" ,3 );
1959
- if (!sPublicKey .empty ()) iUpgradedBeaconCount++;
1960
- iBeaconCount++;
1961
- }
1962
-
1963
- entry.pushKV (" Total Beacons" , iBeaconCount);
1964
- entry.pushKV (" Upgraded Beacon Count" , iUpgradedBeaconCount);
1965
- double dPct = ((double )iUpgradedBeaconCount / ((double )iBeaconCount) + .01 );
1966
- entry.pushKV (" Pct Of Upgraded Beacons" ,RoundToString (dPct*100 ,3 ));
1967
- results.push_back (entry);
1968
- return results;
1969
- }
1970
-
1971
1927
UniValue GetJSONBeaconReport ()
1972
1928
{
1973
1929
UniValue results (UniValue::VARR);
0 commit comments