notarypay in getinfo
This commit is contained in:
@@ -82,7 +82,7 @@ extern uint32_t ASSETCHAINS_CC;
|
||||
extern uint32_t ASSETCHAINS_MAGIC,ASSETCHAINS_ALGO;
|
||||
extern uint64_t ASSETCHAINS_COMMISSION,ASSETCHAINS_SUPPLY;
|
||||
extern int32_t ASSETCHAINS_LWMAPOS,ASSETCHAINS_SAPLING,ASSETCHAINS_STAKED;
|
||||
extern uint64_t ASSETCHAINS_ENDSUBSIDY[],ASSETCHAINS_REWARD[],ASSETCHAINS_HALVING[],ASSETCHAINS_DECAY[];
|
||||
extern uint64_t ASSETCHAINS_ENDSUBSIDY[],ASSETCHAINS_REWARD[],ASSETCHAINS_HALVING[],ASSETCHAINS_DECAY[],ASSETCHAINS_NOTARY_PAY[];
|
||||
extern std::string NOTARY_PUBKEY,NOTARY_ADDRESS; extern uint8_t NOTARY_PUBKEY33[];
|
||||
|
||||
int32_t getera(int now)
|
||||
@@ -287,7 +287,7 @@ UniValue getinfo(const UniValue& params, bool fHelp)
|
||||
|
||||
if ( ASSETCHAINS_REWARD[0] != 0 || ASSETCHAINS_LASTERA > 0 )
|
||||
{
|
||||
std::string acReward = "", acHalving = "", acDecay = "", acEndSubsidy = "";
|
||||
std::string acReward = "", acHalving = "", acDecay = "", acEndSubsidy = "", acNotaryPay = "";
|
||||
for (int i = 0; i <= ASSETCHAINS_LASTERA; i++)
|
||||
{
|
||||
if (i == 0)
|
||||
@@ -296,6 +296,7 @@ UniValue getinfo(const UniValue& params, bool fHelp)
|
||||
acHalving = std::to_string(ASSETCHAINS_HALVING[i]);
|
||||
acDecay = std::to_string(ASSETCHAINS_DECAY[i]);
|
||||
acEndSubsidy = std::to_string(ASSETCHAINS_ENDSUBSIDY[i]);
|
||||
acNotaryPay = std::to_string(ASSETCHAINS_NOTARY_PAY[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -303,6 +304,7 @@ UniValue getinfo(const UniValue& params, bool fHelp)
|
||||
acHalving += "," + std::to_string(ASSETCHAINS_HALVING[i]);
|
||||
acDecay += "," + std::to_string(ASSETCHAINS_DECAY[i]);
|
||||
acEndSubsidy += "," + std::to_string(ASSETCHAINS_ENDSUBSIDY[i]);
|
||||
acNotaryPay += "," + std::to_string(ASSETCHAINS_NOTARY_PAY[i]);
|
||||
}
|
||||
}
|
||||
if (ASSETCHAINS_LASTERA > 0)
|
||||
@@ -311,6 +313,7 @@ UniValue getinfo(const UniValue& params, bool fHelp)
|
||||
obj.push_back(Pair("halving", acHalving));
|
||||
obj.push_back(Pair("decay", acDecay));
|
||||
obj.push_back(Pair("endsubsidy", acEndSubsidy));
|
||||
obj.push_back(Pair("notarypay", acNotaryPay));
|
||||
}
|
||||
|
||||
if ( ASSETCHAINS_COMMISSION != 0 )
|
||||
|
||||
Reference in New Issue
Block a user