Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Like txids, we need to reverse them. We didn't, but then we only used them to pass to/from bitcoind. We're about to get them from the block header, so we need to fix that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
It turns out using the verbose=false parameter, you can get the raw block from getblock. Do that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>