sipa / bitcoin

Bitcoin integration/staging tree
http://www.bitcoin.org
MIT License
88 stars 21 forks source link

RPC: Show txinwitness as json array #66

Closed jl2012 closed 8 years ago

jl2012 commented 8 years ago

Currently null stack item is not shown in txinwitness, except as an extra space. This patch shows null stack item as "null"

An alternative would be using "|" instead of space as separator so it's easier to see null character

sipa commented 8 years ago

Alternatively, why not convert the witness script stack to a JSON array of hex-encoded strings?

jl2012 commented 8 years ago

revised and tested

sipa commented 8 years ago

Squashed into segwit4.