Skip to content

Running large block size simulation

tuxcanfly edited this page Sep 23, 2014 · 9 revisions

Running large block size simulation

This simulation is for testing large (>1 mb) block sizes. By default btcd nodes accept a block of maximum size 999000B. We need to use a fork a btcwire with updated MaxBlockPayload to handle larger blocks:

https://github.com/tuxcanfly/btcwire/tree/maxblocksize

To use this, do:

cd $GOPATH/src/github.com/conformal/btcwire

git remote add tuxcanfly https://github.com/tuxcanfly/btcwire

git fetch tuxcanfly

git checkout maxblocksize

You'll need to re-install dependents of btcwire again:

go install -v all

To test, check that btcd accepts the updated param max for -blockmaxsize:

btcd --simnet -u rpcuser -P rpcpass --blockmaxsize=31999000 

Clone this wiki locally