Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: bec90e253c284f1692429d2e3c05fe586363c35e
https://github.com/btcsuite/btcd/commit/bec90e253c284f1692429d2e3c05fe586363c35e
Author: Dave Collins <[email protected]>
Date: 2015-04-20 (Mon, 20 Apr 2015)
Changed paths:
M blockchain/scriptval.go
M txscript/example_test.go
M txscript/internal_test.go
M txscript/opcode_test.go
M txscript/script.go
M txscript/script_test.go
Log Message:
-----------
txscript: Remove unneeded param from NewScript.
This commit removes the unnecessary sigScript parameter from the
txscript.NewScript function. This has bothered me for a while because it
can and really should be obtained from the provided transaction and input
index. The way it was, the passed script could technically be different
than what is in the transaction. Obviously that would be an improper use
of the API, but it's safer and more convenient to simply pull it from the
provided transaction and index.
Also, since the function signature is changing anyways, make the input
index parameter come after the transaction which it references.