mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
Merge branch 'nodosbip16' of https://github.com/sipa/bitcoin
This commit is contained in:
commit
21503e4556
1 changed files with 7 additions and 0 deletions
|
@ -1128,7 +1128,14 @@ bool CTransaction::ConnectInputs(MapPrevTx inputs,
|
||||||
{
|
{
|
||||||
// Verify signature
|
// Verify signature
|
||||||
if (!VerifySignature(txPrev, *this, i, fStrictPayToScriptHash, 0))
|
if (!VerifySignature(txPrev, *this, i, fStrictPayToScriptHash, 0))
|
||||||
|
{
|
||||||
|
// only during transition phase for P2SH: do not invoke anti-DoS code for
|
||||||
|
// potentially old clients relaying bad P2SH transactions
|
||||||
|
if (fStrictPayToScriptHash && VerifySignature(txPrev, *this, i, false, 0))
|
||||||
|
return error("ConnectInputs() : %s P2SH VerifySignature failed", GetHash().ToString().substr(0,10).c_str());
|
||||||
|
|
||||||
return DoS(100,error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString().substr(0,10).c_str()));
|
return DoS(100,error("ConnectInputs() : %s VerifySignature failed", GetHash().ToString().substr(0,10).c_str()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark outpoints as spent
|
// Mark outpoints as spent
|
||||||
|
|
Loading…
Reference in a new issue