kaspad icon indicating copy to clipboard operation
kaspad copied to clipboard

Kaspad providing invalid templates to miner

Open michaelsutton opened this issue 3 years ago • 2 comments

A user on discord reported that at some point, all blocks mined by his miner got the following messages:

[2021-12-15T22:05:51Z INFO  kaspa_miner::miner] Found a block: ddd33dbcac02779d7911d1031db6f39bf9d24e53723438e8b97060366b219385
[2021-12-15T22:05:51Z WARN  kaspa_miner::client] Failed submitting block: RpcError { message: "Block rejected. Reason: block is violating bounded merge depth: ErrViolatingBoundedMergeDepth" }

This indicates that the template builder within kaspad is providing a template which kaspad itself rejects during validation, due to finality violation.

Seems like the virtual block is probably in invalid state due to a bug.

michaelsutton avatar Dec 16 '21 09:12 michaelsutton

(this is a rare event, and must be related to the fact that in recent days there appears to be a miner mining more than a day back)

michaelsutton avatar Dec 16 '21 09:12 michaelsutton

It seems there's a bug in the virtual parent selection algorithm that makes the block builder generate an invalid template

someone235 avatar Dec 16 '21 10:12 someone235