50 PPC bounty - Decoding a raw transaction [Closed / Won]

Hey all,

The following is a raw transaction I created:

01000000013a2b3bfa541066bd3c3c4ff6c49c228c01e8b28a83db474e32778b2d89cfdf7f0100000000ffffffff0200de864218090000232102e84149f2b4aa1650d1ffb1b15d92a41ea1b990492559dbeba3946c8a6b7ea451ac00e1f50500000000206a1e706d706b613737616263363062336635313238363137356633653033343800000000

If you open up the debug window / console in bitcoin core and type in decoderawtransaction with the above, you’ll see json output. Likewise if you go to https://blockchain.info/decode-tx.

If you open up Peerunity and go to the debug window / console, decoderawtransaction with the above will throw an error saying “TX decode failed (code -22)”.

If you can identify precisely why this is the case and suggest the fix, I’ll send you 50 ppc.

Are you trying to decode a bitcoin transaction with a peercoin client?

EDIT:

Peercoin transactions have an extra time field :

https://github.com/ppcoin/ppcoin/blob/master/src/main.h#L433

https://bitcointalk.org/index.php?topic=104070.0
and https://gist.github.com/shesek/5835695 might help

Fuzzybear

[quote=“mably, post:2, topic:3363”]Peercoin transactions have an extra time field :

https://github.com/ppcoin/ppcoin/blob/master/src/main.h#L433[/quote]

Mably, that was exactly it! Thanks for pointing that out to me, I wasn’t aware of that attribute difference between peercoin and bitcoin.

I added that parameter and everything works beautifully now.

50 ppc coming your way.

nice emeth pleased u got it sorted and gtz to mably for winning the bounty

Fuzzybear