Skip to content

Commit

Permalink
Fix mining RPC for founderPayments
Browse files Browse the repository at this point in the history
  • Loading branch information
alamshafil committed Jul 14, 2022
1 parent 1d7271d commit 8296aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
if(pblock->txoutFounder!= CTxOut()) {
CTxDestination address;
ExtractDestination(pblock->txoutFounder.scriptPubKey, address);
CBitcoinAddress address2(address);
CAvianAddress address2(address);
founderObj.push_back(Pair("payee", address2.ToString().c_str()));
founderObj.push_back(Pair("script", HexStr(pblock->txoutFounder.scriptPubKey.begin(), pblock->txoutFounder.scriptPubKey.end())));
founderObj.push_back(Pair("amount", pblock->txoutFounder.nValue));
Expand Down

0 comments on commit 8296aeb

Please sign in to comment.