Skip to content

Commit

Permalink
fix-node-crash-stale-stake (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v committed Dec 14, 2021
1 parent 8f81152 commit 7d7fda0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -11140,6 +11140,8 @@ bool CheckProofOfStake(CBlockIndex* pindexPrev, const CTransaction& tx, unsigned

if (fColdStaking)
{
if (!view.HaveInputs(tx)) return error("%s: Coin stake %s is stale\n", __func__, tx.GetHash().ToString());

CAmount valueIn = view.GetValueIn(tx);
CAmount valueOut = 0;

Expand Down

0 comments on commit 7d7fda0

Please sign in to comment.