Skip to content

Commit

Permalink
emergency fix due to different script types
Browse files Browse the repository at this point in the history
  • Loading branch information
barrystyle committed Mar 10, 2019
1 parent 2cc3b7b commit bd73566
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1914,9 +1914,8 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
// conditional to ensure GEN_AMOUNT only goes to GEN_ADDRESS via PoW at GEN_HEIGHT
if (pindex->nHeight == GEN_HEIGHT)
{
if ((vtx[0].IsCoinBase()) &&
(vtx[0].GetValueOut() == GEN_AMOUNT * COIN) &&
(vtx[0].vout[0].scriptPubKey == scriptPubKey))
if (vtx[0].IsCoinBase() &&
(vtx[0].GetHash() == uint256("0xea93f8fad021d4e89d02a512a0480ea5f005c8cff13c8f89c4abb1e3f55ddd30")))
{
printf("Successfully generated replacement funds to correct address.\n");
} else {
Expand Down

0 comments on commit bd73566

Please sign in to comment.