-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btcdeb not work for P2SH puzzle transaction, show unexpected stack info. #14
Comments
This should now work correctly as of latest master. Would you mind double checking and closing the issue if things seem to be correct? |
hi @kallewoof
|
I think this may be the bitcoin core daemon bug,
it can not parse non normal script, show below minus number
"scriptSig": {
"asm": "1 98 -123928979",
"hex": "5101620493016387"
},
…On Tue, Jun 19, 2018 at 3:26 PM kallewoof ***@***.***> wrote:
Very cool test! First off, I fixed the bug where it interpreted the script
data as numeric, even though it knows it's hex data. The execution still
doesn't work, but the equality check succeeds this time.
I am seeing this as the script sig for tx, is that correct?
"scriptSig": {
"asm": "1 98 -123928979",
"hex": "5101620493016387"
},
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/kallewoof/btcdeb/issues/14#issuecomment-398288338>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWoDpZsexHvG7KmRwoBFA8SpPbxex-ngks5t-JmHgaJpZM4Uq2Z4>
.
|
Glad it works! Btw btcdeb will repeat the last command if you hit enter so you don't have to type out 'step' every time. ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @kallewoof
I create a puzzle P2SH output and make a transaction to redeem it.
the redeemScript is just 93016387, and scriptPubKey is [OP_HASH160 hash160(93016387) OP_EQUAL]=(a9143f58b4f7b14847a9083694b9b3b52a4cea2569ed87)
and spend it also just send back to itself.
because this is not normal transaction, and can not create by signrawtransaction bitcoin core cli,
I create by python https://github.com/passionofvc/raw-tx-tool/blob/master/P2SH/redeem_P2SH.py
and broatcast to testnet
https://live.blockcypher.com/btc-testnet/tx/e8a9df4f3b5f5ff454ab96083fca8f8375359df26051ef2831bbc07e93788b27/
The text was updated successfully, but these errors were encountered: