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
The second one makes sense in case of ethereum when there's plenty of time to build a block and there are better transactions available. I don't think it makes sense for us as we should not be very picky in 2s block time because it can lead to delays in block execution, db operations and block propagation.
We should evaluate whether we need this trigger to enable mining or not.
Secondly, if we choose to keep it, the logic doesn't honour commit interrupt as we don't set any context with timeout before commit transactions. We should add it in that case or try to generalise commit interrupt so that it can handle both case.
The text was updated successfully, but these errors were encountered:
In miner, there are mainly 2 paths which triggers block production.
One is the ideal way which gets triggered when a new block is received
bor/miner/worker.go
Line 538 in fd71beb
Another is when there are new transactions
bor/miner/worker.go
Line 623 in fd71beb
The second one makes sense in case of ethereum when there's plenty of time to build a block and there are better transactions available. I don't think it makes sense for us as we should not be very picky in 2s block time because it can lead to delays in block execution, db operations and block propagation.
We should evaluate whether we need this trigger to enable mining or not.
Secondly, if we choose to keep it, the logic doesn't honour commit interrupt as we don't set any context with timeout before commit transactions. We should add it in that case or try to generalise commit interrupt so that it can handle both case.
The text was updated successfully, but these errors were encountered: