Friday, April 12, 2024
HomeBitcoinbitcoin core - Sigop depend and its affect on transaction choice

bitcoin core – Sigop depend and its affect on transaction choice


This query was impressed by this latest mempool phenomenon: some transactions have been neglected from blocks even after they had a aggressive fee-rate just because they’d a constructive sigop depend and the max sigop depend was reached earlier than the block template was completely crammed. No matter empty house remained was crammed utilizing zero sigop txs.

Plainly miners have to resolve a knapsack-like drawback the place they’re constrained by two exhausting limits: one is the dimensions of the block and the opposite is the utmost quantity of sigops. The previous is the one truly optimized for in the usual mining algorithm, and the latter is more-or-less thought of because of the content material of this PR, which penalizes the dimensions of a transaction if it has a excessive sigop depend.

Q1: Suppose the mempool contained no zero sigop transactions and that
the choice algorithm constructed a block template consisting of
excessive sigop depend transactions solely however a lot of out there house. Is it
assured by the selection of nBytesPerSigOp that this block template
is extra handy for miners that one the place the block is full and
excessive sigop transactions are averted?

Judging by this reply it’d appear as if certainly the miner may earn barely extra in the event that they did some intelligent work, however that it would be exhausting for it to really occur in observe.

Q2: Why is not the usual mempool-based charge estimation algorithm
sigop-aware? In a context by which there are many excessive sigop
transactions with aggressive fee-rates, there are two totally different subsequent
block charges relying on whether or not the transaction one is about to craft
has a constructive sigop depend or not.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments