Open shayanb opened 7 years ago
Hey,
Could you please share the script you've made? I'm also encountering some issues, but different ones "Invalid state: sigtype must be a number" for a 2-of-3 P2SH.
Ok I got it. I had the exact same error as yours today.
It was because it was not in the right order, althought the order MATTER!
The right order is:
It didn't work because the signing step was right after adding the inputs (the first step).
Then I could broadcast the transaction successfully.
I'm trying to spend Bitcoin cash from a 2 of 3 P2SH address using bitcoin-cash-lib.
It seems to work and generates the transaction. Here is the raw signed transaction:
However on broadcasting it, using insight I get the following error:
this seems like a common error in some other implementations as well (e.g electrum: https://github.com/fyookball/electrum/issues/6)