mastercoin-MSC / mastercore

mastercore info
mastercoin.org
MIT License
24 stars 11 forks source link

Swap parameters of sendrawtx_MP to make reference optional #119

Closed dexX7 closed 10 years ago

dexX7 commented 10 years ago

Small fix: redeemtion address was never set.

The basic idea behind the swap: not every transaction type requires a reference output.

Test transaction:

Version: 0
Type: 0
Property: 1
Amount: 0.15

Sender: mvayzbj425X55kRLLPQiuCXWUED6LMP65C
Receiver: n4EmA9R4VmxLnxu9G8yZMDxvBBha8bUtEQ
Redeemer: mz5U62ZoRLF6uDYBh3QUTFLCnNEGLMoZR8

bitcoin-cli sendrawtx_MP "mvayzbj425X55kRLLPQiuCXWUED6LMP65C" "00000000000000010000000000e4e1c0" "n4EmA9R4VmxLnxu9G8yZMDxvBBha8bUtEQ" "mz5U62ZoRLF6uDYBh3QUTFLCnNEGLMoZR8"

Result:
612ab48662d8a1494082d37ff15be9dea72bb9ac708ac6ce09511fa9f662602a]
m21 commented 10 years ago

Looks good to me. @wanderingbort - how about you? thanks

wanderingbort commented 10 years ago

Looks good to me too, even fixes an off by one I left in +1