Author

Topic: Can't redeem simple non-standard transaction on testnet (Read 915 times)

newbie
Activity: 15
Merit: 0
You use the XVERIFY instructions if you want to check more than one condition (eg, EQUAL and CHECKSIG) to avoid needing BOOLAND and annoying stack manipulation.  So XVERIFY all but the last condition.
member
Activity: 62
Merit: 10
And thus begins solving math problems to redeem Bitcoins Tongue
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
Thanks! I always thought it was other way round
legendary
Activity: 1652
Merit: 2311
Chief Scientist
Yes, after NUMEQUALVERIFY the stack will be empty, and for a script to be valid it must leave a true value on the stack.

Use NUMEQUAL and it should work.
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
I made a transaction with this output: "2 OP_ADD 3 OP_NUMEQUALVERIFY" (0x5293539d)
But bitcoin-qt throws an error when I try to redeem it with "1" (0x51)
Am I missing something?
Jump to: