mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[DEV-58] removed addition of multisig dummy in signMultiSig
* [DEV-56] Remove any occurance of OP_CODESEPARATOR * [DEV-56] Modified sighash tests to exclude OP_CODESEPARATOR * [DEV-56] Fixed sighash.json to not include any codeseparators at all * [DEV-56] Reformatted sighash.json * [DEV-56] Rename any instance of subScript to script * [DEV-56] Extracted check for opUnknown to separate function * [DEV-58] removed addition of multisig dummy in signMultiSig * [DEV-58] Removed temporary code for test cleanup
This commit is contained in:
parent
0acf0eb516
commit
b7a9f39dc6
@ -71,10 +71,8 @@ func p2pkSignatureScript(tx *wire.MsgTx, idx int, script []byte, hashType SigHas
|
||||
// legal to not be able to sign any of the outputs, no error is returned.
|
||||
func signMultiSig(tx *wire.MsgTx, idx int, script []byte, hashType SigHashType,
|
||||
addresses []btcutil.Address, nRequired int, kdb KeyDB) ([]byte, bool) {
|
||||
// We start with a single OP_FALSE to work around the (now standard)
|
||||
// but in the reference implementation that causes a spurious pop at
|
||||
// the end of OP_CHECKMULTISIG.
|
||||
builder := NewScriptBuilder().AddOp(OpFalse)
|
||||
|
||||
builder := NewScriptBuilder()
|
||||
signedCount := 0
|
||||
for _, addr := range addresses {
|
||||
key, _, err := kdb.GetKey(addr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user