Fixed getblocktemplate for masternode/fortunastakes
@@ -382,6 +382,8 @@ Value getblocktemplate(const Array& params, bool fHelp)
" \"payee_amount\" : required amount to pay\n"
" \"fortunastake_payments\" : true|false, (boolean) true, if fortunastake payments are enabled"
" \"enforce_fortunastake_payments\" : true|false (boolean) true, if fortunastake payments are enforced"
+ " \"masternode_payments\" : true|false, (boolean) true, if fortunastake payments are enabled"
+ " \"enforce_masternode_payments\" : true|false (boolean) true, if fortunastake payments are enforced"
"See https://en.bitcoin.it/wiki/BIP_0022 for full specification.");
std::string strMode = "template";
@@ -563,14 +565,15 @@ Value getblocktemplate(const Array& params, bool fHelp)
CBitcoinAddress address2(address1);
result.push_back(Pair("payee", address2.ToString().c_str()));
result.push_back(Pair("payee_amount", (int64_t)GetFortunastakePayment(pindexPrev->nHeight+1, pblock->vtx[0].GetValueOut())));
- }
- else {
+ } else {
result.push_back(Pair("payee", ""));
result.push_back(Pair("payee_amount", ""));
}
result.push_back(Pair("fortunastake_payments", bFortunastakePayments));
result.push_back(Pair("enforce_fortunastake_payments", bFortunastakePayments));
+ result.push_back(Pair("masternode_payments", bFortunastakePayments));
+ result.push_back(Pair("enforce_masternode_payments", bFortunastakePayments));
return result;
}
@@ -600,4 +603,3 @@ Value submitblock(const Array& params, bool fHelp)
return Value::null;
}
-
