You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tuxcanfly edited this page Oct 25, 2014
·
9 revisions
This simulation is for testing large (upto 32 MB) block sizes. By default btcd nodes accept a block of maximum size ~1 MB. We need to use a fork of btcwire with updated MaxBlockPayload to handle larger blocks:
Go to btcwire directory:
cd $GOPATH/src/github.com/conformal/btcwire/
... and edit msgblock.go MaxBlockPayload:
-const MaxBlockPayload = 1000000 // Not actually 1MB which would be 1024 * 1024
+const MaxBlockPayload = 32 * 1000000 // Not actually 1MB which would be 1024 * 1024
You'll need to re-install dependents of btcwire again, so you can do this:
go install -v github.com/conformal/btcd github.com/conformal/btcwallet
To test, check that btcd accepts the updated param max for -blockmaxsize: