Bitcoin Forum
May 09, 2024, 02:32:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: "Previous output scriptPubKey mismatch" error  (Read 3951 times)
monsterer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1002


View Profile
December 10, 2013, 11:15:50 AM
 #1

Hi guys,

I'm using the rawtransactions system in bitcoind to form a transaction which has inputs from two different multi-sig addresses.

For each input to sign, I include the scriptpubkey from the relevant source transaction output.

This has always worked fine when dealing with a single input, but now there are multiple inputs from different addresess, I'm getting this error:

Code:
Previous output scriptPubKey mismatch:

OP_HASH160 0eb6e197413636e2f31864fe68c3f82bf2fc973e OP_EQUAL
vs:
OP_HASH160 3a29964f71121f14aecf0959945d3cf2693e9f65 OP_EQUAL

Any ideas what I'm doing wrong?

Cheers, Paul.
1715265179
Hero Member
*
Offline Offline

Posts: 1715265179

View Profile Personal Message (Offline)

Ignore
1715265179
Reply with quote  #2

1715265179
Report to moderator
1715265179
Hero Member
*
Offline Offline

Posts: 1715265179

View Profile Personal Message (Offline)

Ignore
1715265179
Reply with quote  #2

1715265179
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715265179
Hero Member
*
Offline Offline

Posts: 1715265179

View Profile Personal Message (Offline)

Ignore
1715265179
Reply with quote  #2

1715265179
Report to moderator
1715265179
Hero Member
*
Offline Offline

Posts: 1715265179

View Profile Personal Message (Offline)

Ignore
1715265179
Reply with quote  #2

1715265179
Report to moderator
1715265179
Hero Member
*
Offline Offline

Posts: 1715265179

View Profile Personal Message (Offline)

Ignore
1715265179
Reply with quote  #2

1715265179
Report to moderator
monsterer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1002


View Profile
December 10, 2013, 01:32:39 PM
 #2

Ok, figured it out.

The error message confused me. Looking at the source code I see the meaning of this message is actually:

"The given script pub key for transaction input does not match the one on record".

I thought the message was telling me that all inputs must have the same scriptpubkey, which would have been horrible.

Cheers, Paul.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!