Include transaction hash in failed input val error.
This commit is contained in:
parent
be2e4c5860
commit
b7ef1f0946
2 changed files with 3 additions and 2 deletions
|
@ -90,7 +90,8 @@ out:
|
||||||
// Execute the script pair.
|
// Execute the script pair.
|
||||||
if err := engine.Execute(); err != nil {
|
if err := engine.Execute(); err != nil {
|
||||||
err := fmt.Errorf("validate of input "+
|
err := fmt.Errorf("validate of input "+
|
||||||
"%d failed: %v", txVI.txInIndex, err)
|
"%d from transaction %s failed: %v",
|
||||||
|
txVI.txInIndex, txInHash, err)
|
||||||
v.sendResult(err)
|
v.sendResult(err)
|
||||||
break out
|
break out
|
||||||
}
|
}
|
||||||
|
|
|
@ -747,7 +747,7 @@ func (b *BlockChain) checkConnectBlock(node *blockNode, block *btcutil.Block) er
|
||||||
|
|
||||||
// BIP0016 describes a pay-to-script-hash type that is considered a
|
// BIP0016 describes a pay-to-script-hash type that is considered a
|
||||||
// "standard" type. The rules for this BIP only apply to transactions
|
// "standard" type. The rules for this BIP only apply to transactions
|
||||||
// after the timestmap defined by btcscript.Bip16Activation. See
|
// after the timestamp defined by btcscript.Bip16Activation. See
|
||||||
// https://en.bitcoin.it/wiki/BIP_0016 for more details.
|
// https://en.bitcoin.it/wiki/BIP_0016 for more details.
|
||||||
enforceBIP0016 := false
|
enforceBIP0016 := false
|
||||||
if node.timestamp.After(btcscript.Bip16Activation) {
|
if node.timestamp.After(btcscript.Bip16Activation) {
|
||||||
|
|
Loading…
Reference in a new issue