Repository navigation
Replies: 1 comment
|
We talked about this on the 20261123 dev call. Nobody objected to the proposal. The talk covered facts about the limits: how stock firmware limits the coinbase, how much memory a larger limit costs, and how ESP-Miner is raising its own. See "Coinbase size limits in Mujina and Bitmain firmware" and "Coinbase limits measured across firmware" in the summary. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Jungly's (@pool2win) p2poolv2 builds coinbases with many outputs, which it sends to the miner in the coinbase suffix (coinb2 in mining.notify). Mujina refuses any Stratum v1 message over 64 KiB (roughly 1,000 P2WPKH outputs), so a large enough coinbase suffix fails.
I talked this over with Jungly. Perhaps Mujina should not set a tighter limit than consensus does. One idea is to derive the limit from the most outputs a block can hold, instead of the fixed 64 KiB.
The cost is memory. Mujina stores the coinbase suffix for each active job, and it can keep only so many coinbase suffixes near that size. A block holds at most about 1 MB of non-witness data, so a coinbase suffix can approach 1 MB (roughly 30,000 P2WPKH outputs) per active job, and about 2 MB as hex on the wire. If this causes memory trouble later, we can add a configuration knob that lowers the limit.
All reactions