mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix getblocktemplate not show payee from masternode winners..
This commit is contained in:
parent
cc458007e3
commit
639c67d354
@ -321,6 +321,9 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
||||
// Masternode and general budget payments
|
||||
FillBlockPayee(txNew, nFees);
|
||||
|
||||
// Make payee
|
||||
pblock->payee = txNew.vout[1].scriptPubKey;
|
||||
|
||||
nLastBlockTx = nBlockTx;
|
||||
nLastBlockSize = nBlockSize;
|
||||
LogPrintf("CreateNewBlock(): total size %u\n", nBlockSize);
|
||||
|
@ -610,7 +610,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
||||
ExtractDestination(pblock->payee, address1);
|
||||
CBitcoinAddress address2(address1);
|
||||
result.push_back(Pair("payee", address2.ToString().c_str()));
|
||||
result.push_back(Pair("payee_amount", (int64_t)GetMasternodePayment(pindexPrev->nHeight+1, pblock->vtx[0].GetValueOut())));
|
||||
result.push_back(Pair("payee_amount", (int64_t)pblock->vtx[0].vout[1].nValue));
|
||||
} else {
|
||||
result.push_back(Pair("payee", ""));
|
||||
result.push_back(Pair("payee_amount", ""));
|
||||
|
Loading…
Reference in New Issue
Block a user