Title: Errors when using self-made transactions Post by: jackjack on August 12, 2011, 03:48:10 AM Hi,
When I make and import a tx into my wallet I got some errors when I run Bitcoin: Code: ************************ My transaction is: Code: 01000000 The import function works correctly, it has been tested many times, so the tx must be the problem but I can't see why Title: Re: Errors when using self-made transactions Post by: twobitcoins on August 12, 2011, 04:09:36 AM What is the final 01000000 at the end of the transaction? I would expect it to end with the nLockTime = 00000000.
Edit: I guess it is SIGHASH_ALL which you used while signing. That isn't part of the actual transaction. Title: Re: Errors when using self-made transactions Post by: jackjack on August 12, 2011, 01:15:26 PM Yes, I forgot to delete SIGHASH I used before
I edited, no more 01000000 and the hash is now 3a30caeb095a6a46878f25d0aa418eb6758bc58bb41fe39426145796789e98a5 But bitcoin still throw me these errors It's a testnet tx, i don't think it's relevant but maybe Title: Re: Errors when using self-made transactions Post by: jackjack on August 13, 2011, 02:48:16 AM It seems (in the french subforum) that the client source use this syntax:
Code: -the transaction (classe CTransaction) Title: Re: Errors when using self-made transactions Post by: jackjack on August 14, 2011, 08:46:57 PM I managed to get it working when there's only one input
I read the C++ sources but I can't find any clue (I can't find where the write method of Stream is defined...) |