fix possible miner crash up with PoW, fix possible deadlock with large numbers of import transactions.

This commit is contained in:
blackjok3r
2019-01-10 22:36:38 +08:00
parent 896ea15cd9
commit 325f71b713
2 changed files with 226 additions and 221 deletions

View File

@@ -2694,6 +2694,7 @@ bool ContextualCheckInputs(
if (tx.IsCoinImport())
{
LOCK(cs_main);
ServerTransactionSignatureChecker checker(&tx, 0, 0, false, txdata);
return VerifyCoinImport(tx.vin[0].scriptSig, checker, state);
}