mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
miner: remove artifacts
This commit is contained in:
parent
c6dbccfee3
commit
3abe397540
1 changed files with 5 additions and 7 deletions
|
|
@ -35,12 +35,11 @@ import (
|
||||||
// Check engine-api specification for more details.
|
// Check engine-api specification for more details.
|
||||||
// https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#payloadattributesv1
|
// https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#payloadattributesv1
|
||||||
type BuildPayloadArgs struct {
|
type BuildPayloadArgs struct {
|
||||||
Parent common.Hash // The parent block to build payload on top
|
Parent common.Hash // The parent block to build payload on top
|
||||||
Timestamp uint64 // The provided timestamp of generated payload
|
Timestamp uint64 // The provided timestamp of generated payload
|
||||||
FeeRecipient common.Address // The provided recipient address for collecting transaction fee
|
FeeRecipient common.Address // The provided recipient address for collecting transaction fee
|
||||||
Random common.Hash // The provided randomness value
|
Random common.Hash // The provided randomness value
|
||||||
Withdrawals types.Withdrawals // The provided withdrawals
|
Withdrawals types.Withdrawals // The provided withdrawals
|
||||||
Transactions []*types.Transaction // Mandatory transactions to be included
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Id computes an 8-byte identifier by hashing the components of the payload arguments.
|
// Id computes an 8-byte identifier by hashing the components of the payload arguments.
|
||||||
|
|
@ -52,7 +51,6 @@ func (args *BuildPayloadArgs) Id() engine.PayloadID {
|
||||||
hasher.Write(args.Random[:])
|
hasher.Write(args.Random[:])
|
||||||
hasher.Write(args.FeeRecipient[:])
|
hasher.Write(args.FeeRecipient[:])
|
||||||
rlp.Encode(hasher, args.Withdrawals)
|
rlp.Encode(hasher, args.Withdrawals)
|
||||||
rlp.Encode(hasher, args.Transactions)
|
|
||||||
var out engine.PayloadID
|
var out engine.PayloadID
|
||||||
copy(out[:], hasher.Sum(nil)[:8])
|
copy(out[:], hasher.Sum(nil)[:8])
|
||||||
return out
|
return out
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue