[BTC-dev] (EXPERIMENTAL) Raw Block Eater

Stanislav Datskovskiy stas at loper-os.org
Tue Jun 30 01:44:11 UTC 2015


Name: readme_s.txt
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150629/readme_s_da8df1ec495c70f9c884c0a06e560818105c37fd.txt>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Here I add an rpc function, 'eatblock.'

This patch only makes sense if you have 'dumpblock'. [1]

Does just what is printed on the tin: attempts to receive the
next block from a raw dump of the latter found on disk, e.g.,

$ ./bitcoind eatblock 5.blk
true

Given the potential dangers of having this kind of loaded pistol
around, the 'eatblock' rpc call is DISABLED by default, and must
be explicitly permitted when starting a bitcoind instance,

./bitcoind -caneat -myip=my.ip.is.foo ...

Using 'dumpblock' and 'eatblock', it is now possible to move
blockchains around via various direct channels (e.g., pigeon.)

One could even sync via 'netcat' from a trusted phriend...

Use good judgement when experimenting with 'dumpblock' and 'eatblock.'

[1] http://therealbitcoin.org/ml/btc-dev/2015-June/000104.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBCgAGBQJVkfQpAAoJELmCKKABq//HmU4H/i9rrIqqsSxumeXCStrJYWyo
dKz3aqjPbv7GvfeJyAvO9pnKbz+A5Mz8lZyyfpyMP+7gOKrOATqx9u1BAsC8BlD+
/qQS3NL7pj0QTg2e7KuMx3Z+4+W0J/wT2G0HnSOlsVVVzPVqfGBo2dFVHjK+r6nK
1dosD5HQpf6uB/V4sQEDoLzgAUHxJd6z8Ba1950IUjUfKUkezNmYwI7T6Bb9lkt2
/TJeey3PRLC+G36Fy6zxJyKnQwNSvMP/AWaddg6LFBy5SZrsBJSjWm+hDNW5h5iG
zj01imdYJczYvFTCyBGEKjHZVXRKY7aosj2z28K40jNLVMGcoKg95SSshDFpjtU=
=0eWU
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform_and_now_we_have_eatblock.patch
Type: text/x-patch
Size: 3290 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150629/asciilifeform_and_now_we_have_eatblock_a73a84f6283428180e0b569424bfb868dbc29877.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform_and_now_we_have_eatblock.patch.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150629/asciilifeform_and_now_we_have_eatblock_102cbb140b58dbce41e07dbc15ea4662ef9a99b2.patch.sig>


More information about the BTC-dev mailing list