Bitcoin Forum
May 27, 2024, 09:02:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't redeem simple non-standard transaction on testnet  (Read 882 times)
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
May 21, 2013, 08:23:23 PM
 #1

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?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2217


Chief Scientist


View Profile WWW
May 21, 2013, 08:37:52 PM
 #2

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.

How often do you get the chance to work on a potentially world-changing project?
jackjack (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
May 21, 2013, 09:00:26 PM
Last edit: May 21, 2013, 10:07:27 PM by jackjack
 #3

Thanks! I always thought it was other way round

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
TalkingAntColony
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
May 21, 2013, 10:04:03 PM
 #4

And thus begins solving math problems to redeem Bitcoins Tongue
crary
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
May 22, 2013, 05:14:21 PM
 #5

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!