3

I understand that there is a penalty for large block sizes and the miner who finds a large block only gets a portion of the nominal reward.

But I fail to see how a miner, who just "packs" transactions in a block, can control the size of the blocks he or she mines.

As a miner, is there anything you can do to limit the size of the blocks you mine?

1 Answer 1

2

But I fail to see how a miner, who just "packs" transactions in a block, can control the size of the blocks he or she mines.

Exactly like that. You pack until you get to the target size. Then, you simply don't pack the rest of the queue and leave it for the next block. Or you swap low fee tx-es with ones with higher fee, still keeping the size below the limit. You can choose any packing strategy you want, as long as you're able to express it with code.

It's a dynamic process. Any change gives a different hash and could become the winning block if it hits the target. Then, you submit what you had and start with next one.

5
  • I think he was asking more technically as in how to modify the pool software to not include txs that will push you over the target size enough to induce a penalty, but I'm not really sure, maybe OP can clarify.
    – jwinterm
    Commented Jan 24, 2017 at 18:50
  • I'm no expert, but it looks like you might need to modify the daemon, not the pool software to accomplish this. See the getblocktemplate function here: github.com/zone117x/node-cryptonote-pool/blob/master/lib/… it looks like it's just making an RPC call to the daemon.
    – jwinterm
    Commented Jan 24, 2017 at 19:05
  • Mmmm - so the only way would be to modify the code of monerod... Outch !
    – assylias
    Commented Jan 24, 2017 at 19:10
  • 1
    monerod already breaks at ~125% median size, to strike a balance between current and future profits.
    – user36303
    Commented Jan 24, 2017 at 21:12
  • The question sounded general to me, thus the answer. Thanks for clarifying, though. I can't really give a better answer myself anyway, but your comments do help
    – JollyMort
    Commented Jan 25, 2017 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.