mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
core: add comment regarding index sharing between auth structures in Message
This commit is contained in:
parent
60bcc82b4c
commit
d7f29ad2e6
1 changed files with 27 additions and 13 deletions
|
|
@ -155,7 +155,21 @@ type Message struct {
|
|||
AccessList types.AccessList
|
||||
BlobGasFeeCap *big.Int
|
||||
BlobHashes []common.Hash
|
||||
|
||||
// When SetCodeAuthorizations is not nil, it represents the full set of
|
||||
// auths included in the actual transaction.
|
||||
//
|
||||
// To avoid recovering the authority addresses during the state transition,
|
||||
// they are precomputed or retrieved from the Transaction cache and placed
|
||||
// into Authorities below. The authority for any given index will match the
|
||||
// corresponding authorization in SetCodeAuthorizations. Nil is used when the
|
||||
// authorization is invalid to maintain indexes between the two lists.
|
||||
SetCodeAuthorizations []types.SetCodeAuthorization
|
||||
|
||||
// Authorities is the list of recovered authority addresses for the
|
||||
// authorization list. Nil is used to represent an invalid authorization. The
|
||||
// indexes between SetCodeAuthorizations and Authorities match so that the
|
||||
// each authority matches the corresponding authorization.
|
||||
Authorities []*common.Address // Recovered authority addresses
|
||||
|
||||
// When SkipNonceChecks is true, the message nonce is not checked against the
|
||||
|
|
|
|||
Loading…
Reference in a new issue