Bitcoin Forum
May 08, 2024, 03:43:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 2-of-3 P2SH multisig "working", but not being relayed by many nodes?  (Read 893 times)
isidore (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
June 01, 2014, 01:28:31 AM
 #1

I have been doing a little experimenting with setting up a multisg wallet using only the vanilla client (full node).

These are my steps:
1. Create the wallet using bitcoind createmultisig and save the redeem script
2. Send some money in a transaction
3. decode raw transaction from above to get outputs / script pub key
4. create a raw transaction with syntax like:
./bitcoind createrawtransaction '[{"txid":"idfrom2","vout":0,"scriptPubKey":"pubkeyfrom3","redeemScript":"redeemscriptfrom1"}]' '{"destinationaddress":0.01}'
5. sign the raw transaction on 2 machines with the private keys
6. do sendrawtransaction <rawtransaction>

Unfortunately I got a -22 transaction rejected error!

I then tried submitting it at https://blockchain.info/pushtx but got error "Script not of right size, expecting 2 but got 4"
I searched online and found another site, https://coinb.in/send-raw-transaction.html, and managed to successfully send the raw transaction there.

It seems to be it's been 2 years since P2SH was committed to bitcoind. Am I doing something wrong or are these transactions not yet accepted on all nodes?
1715183006
Hero Member
*
Offline Offline

Posts: 1715183006

View Profile Personal Message (Offline)

Ignore
1715183006
Reply with quote  #2

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

Posts: 1715183006

View Profile Personal Message (Offline)

Ignore
1715183006
Reply with quote  #2

1715183006
Report to moderator
1715183006
Hero Member
*
Offline Offline

Posts: 1715183006

View Profile Personal Message (Offline)

Ignore
1715183006
Reply with quote  #2

1715183006
Report to moderator
1715183006
Hero Member
*
Offline Offline

Posts: 1715183006

View Profile Personal Message (Offline)

Ignore
1715183006
Reply with quote  #2

1715183006
Report to moderator
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
June 01, 2014, 01:37:24 AM
 #2

can you paste the signed transaction here?

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
isidore (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
June 01, 2014, 01:44:14 AM
 #3

this is the transaction:
https://blockchain.info/tx/19f868c7cc8729ddec2c78a0f00f307824391905fe89456c3c699958f7e4fe9a

it seems blockchain now shows it as it has been accepted on the chain following my submission via coinbin. prior to that, blockchain would not show it (as an unconfirmed transaction).

this is the rawtx:
0100000001227c1d32530734974d09e778d88212f67ff52e572433158f86e8c8c0b189a46a00000 000fdfe0000483045022100e9b171318581a287327cb852b011f0e9a8b2538e4ddd5213d66e388a d0bdf75302207e97c8fd7c692b889c4d38b190d018fcdfc08bb64ea01b32a620b170fe8874ce014 830450221008e5d30379f3cfb02b786ba6c55481dba16e0494679ff5a19a5e2c0e6f7ec8d2a0220 268fbed3845858e342c2eeb4cf9ec711fda9943de2642bcf2e2a5ce3fe158846014c69522102550 6dcef68aceb74afd04cf11d78111f3be0274eb5e7b57f0e9b541a38fe43492102a7bc1d861dd37f 19c74b83dfad3471e78870a9180328074428d9e16cecb71d95210305b1f042793916aecf5ffc406 f17345b7427e66e8c1ab5f7cd7f337b56e8273a53aeffffffff0170742f00000000001976a914e6 a3996ef18c69cb1dd44720332bc9513510d13288ac00000000


CaeZaR
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 13, 2014, 08:03:12 PM
 #4

I have a similar but different problem:
I've been able to sign and send single input transactions from a multisig address using bitcoind like this one:
https://blockchain.info/tx/68b45d27ca8405285b4d5490095bfad50ac94c314b75e82bd976e8b40d435408
But, after signing a spent from multiple inputs, I was unable to send the following transaction from bitcoind, it also failed on blockchain tx:
https://blockchain.info/tx/6bf129bc2ef572fbf61af3ff181dc080a69adf8d0951be55d3f6588534d3645d
I got it to work by transmitting it through the same service you did: coinb.in.
Why did the transaction not send from bitcoind? Do I need to connect to a certain node before I send?
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 275


View Profile
June 16, 2014, 11:46:10 PM
 #5

Blockchain uses bitcoinj which can't handle p2sh transactions. Your transactions could be fine (I haven't looked) but you need to find somewhere else to broadcast. You can broadcast if you have bitcoinqt?

Bitwasp Developer.
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!