createmultisig is not working as intended. Am i missing something?

0 votes

We tried sending asset from one account to another (within node1) using multisig, where 2 others have to sign to complete the transaction.

1)  lock unspent amount from address1

chain1: preparelockunspentfrom "1PoDr684LkrMoxW9MSdpsdUe3aNx75CLMmSg4Z" "{\"INR\":1000}"

2) creating multisig for 3 signators

chain1: createmultisig 3 '["020bcf4b16239d52ce753a81ad8dfe033fa8961068c19546e91852cae74c409528", "02aa2260a493441b5d974b3bb512620b9718c9aaa96b96c8acb1c4ed8eacc48b22", "03ab6fa5f4a9b8eb9db6271af4272bc0c3d10a38a37462a29726e2a733fa1bd98d"]'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
4)  creating raw transaction

chain1: createrawtransaction '[{"txid":"aca75cf48ac4e33bb8b62692bf749b6d2e3be709116239d52ce753a81ad8dfe033fa8961068c19546e91852cae74c4095282102aa2260a493441b5d974b3bb512620b9718c9aaa96b96c8acb1c4ed8eacc48b222103ab6fa5f4a9b8"}]' '{"1aGX1ZYjJ8ri7gw5TL1ZZmRt7WwJxWku8JJzMX":{"INR":1000}}''                                                                                                                                                                                                                                                                                                                                                                                                                                   
5) signing transaction

chain1: signrawtransaction 01000000015799b2f2a0e673303cb6d91709e73b2e6d9b74bf9226b6b83be3c48af45ca7ac0000000000ffffffff0100000000000000003776a914f624e1c8d66e4e4b4a88eb88fd6a1ea0168653b688ac1c73706b7113672628ca3ab2373249c8537bee730aa0860100000000007500000000
{"method":"signrawtransaction","params":["01000000015799b2f2a0e673303cb6d91709e73b2e6d9b74bf9226b6b83be3c48af45ca7ac0000000000ffffffff0100000000000000003776a914f624e1c8d66e4e4b4a88eb88fd6a1ea0168653b688ac1c73706b7113672628ca3ab2373249c8537bee730aa0860100000000007500000000"],"id":1,"chain_name":"chain1"}

{
    "hex" : "01000000015799b2f2a0e673303cb6d91709e73b2e6d9b74bf9226b6b83be3c48af45ca7ac000000006a4730440220572785f605071f5ba526452255f3f74aac6d4dff52306a14b5d36e4d312dea9a0220259ab7f01871c7735f90be74517ac79c15790b2f27dc81533e9e54cbd25309a1012102aa2260a493441b5d974b3bb512620b9718c9aaa96b96c8acb1c4ed8eacc48b22ffffffff0100000000000000003776a914f624e1c8d66e4e4b4a88eb88fd6a1ea0168653b688ac1c73706b7113672628ca3ab2373249c8537bee730aa0860100000000007500000000",
    "complete" : true
}

If you notice, in the above output, we have "complete":true

Why does it say that the transaction is complete when other n-required signators have not signed yet? Isn't it wrong? or am i missing something?

asked Jan 11, 2017 by Magesh

1 Answer

0 votes

This transaction you are building is the one which sends assets from a regular address to a multisig address, so only that single regular address needs to sign it. You don't need also this complex process and can combine steps 1, 4, 5 and sending into:

sendassetfrom 1PoDr684LkrMoxW9MSdpsdUe3aNx75CLMmSg4Z [the multi sig from step 2] INR 1000

Then to spend those funds, you require the more complex multi-stage process.

BTW you should probably call addmultisigaddress instead of createmultisig, so that the address goes into the node's wallet and the wallet tracks its balance and incoming transactions.

answered Jan 12, 2017 by MultiChain
...