Author: Amir Taaki 2012-01-29 14:36:55
Published on: 2012-01-29T14:36:55+00:00
A new feature has been added to Gavin's fuzzer which allows for controlled generation of blocks. The code can be found on GitHub at https://github.com/genjix/bitcoin/tree/fuzzer. To use this feature, one should enter the commands "bitcoind -daemon", "bitcoind setfuzzpreviousblock 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" and "bitcoind setgenerate true". The system will then begin hashing the block with the previous hash field set to 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f and the target as 0x1d0000ff. After completion, the hex value of the block will be dumped to debug.log and the system will exit. The generated block can then be fed into an implementation in any controlled manner desired. For instance, with libbitcoin, a simple tool can be created in a few lines to read the hex and send it via the network in localhost. If anyone is interested in this tool, they can request it on IRC.
Updated on: 2023-06-05T02:02:01.738030+00:00