miner: add comment on BuildTestingPayload

This commit is contained in:
Felix Lange 2026-02-20 23:03:20 +01:00 committed by GitHub
parent 65376ae804
commit b8d588e474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,6 +274,8 @@ func (miner *Miner) buildPayload(args *BuildPayloadArgs, witness bool) (*Payload
return payload, nil
}
// BuildTestingPayload is for testing_buildBlockV*. It creates a block with the exact content given
// by the parameters instead of using the locally available transactions.
func (miner *Miner) BuildTestingPayload(args *BuildPayloadArgs, transactions []*types.Transaction, empty bool, extraData []byte) (*engine.ExecutionPayloadEnvelope, error) {
fullParams := &generateParams{
timestamp: args.Timestamp,