get the bitcoin whitepaper directly from the utxoset. This works on a pruned node:
seq 0 947 | (while read -r n; do bitcoin-cli gettxout 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 $n | jq -r '.scriptPubKey.asm' | awk '{ print $2 $3 $4 }'; done) | tr -d '\n' | cut -c 17-368600 | xxd -r -p > bitcoin-test.pdf
@jb55 TIL there is a ~200kB Bitcoin transaction :)
@jb55 paying 0.596175 BTC in fees
@jb55 I love some good bash one-liner 😍
@jb55 this is awesome. Well done! Works like a charm
@jb55 a bit slow, but very cool.
I have a PR that introduces an RPC call to fetch a single block from a peer, which could be handy for pruned nodes:
https://github.com/bitcoin/bitcoin/pull/20295
@jb55 wow fucking epic man