Skip to content

Commit

Permalink
Merge pull request ElementsProject#8 from kallewoof/fix-coinbase
Browse files Browse the repository at this point in the history
Fix coinbase to not use bad dest.
  • Loading branch information
kallewoof authored Jul 24, 2017
2 parents 08d0d15 + 800d83d commit ddb23a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class CElementsParams : public CChainParams {
genesis = CreateGenesisBlock(consensus, strNetworkID, scriptDestination, 1231006505, genesisChallengeScript, 1, MAX_MONEY, 100, BITCOINID);
consensus.hashGenesisBlock = genesis.GetHash();

scriptCoinbaseDestination = CScript() << ParseHex("0229536c4c83789f59c30b93eb40d4abbd99b8dcc99ba8bd748f29e33c1d279e3c") << OP_CHECKSIG;
scriptCoinbaseDestination = CScript() << ParseHex("038cbd59ea89a20f7aeafcf9b907280ef186204e6dd64337284f8471e97c4eefc5") << OP_CHECKSIG;
vFixedSeeds.clear(); //! TODO
vSeeds.clear(); //! TODO

Expand Down
2 changes: 1 addition & 1 deletion src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ UniValue getnewblockhex(const JSONRPCRequest& request)
+ HelpExampleCli("getnewblockhex", "")
);

std::unique_ptr<CBlockTemplate> pblocktemplate(BlockAssembler(Params()).CreateNewBlock(CScript() << OP_TRUE));
std::unique_ptr<CBlockTemplate> pblocktemplate(BlockAssembler(Params()).CreateNewBlock(Params().Consensus().CoinbaseDestination());
if (!pblocktemplate.get())
throw JSONRPCError(RPC_INTERNAL_ERROR, "Wallet keypool empty");
{
Expand Down

0 comments on commit ddb23a0

Please sign in to comment.