mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Update preparePredicateStorageSlots doc (#891)
* update preparePredicateStorageSlots doc * more specified comment for slice of byte slices
This commit is contained in:
committed by
GitHub
parent
892a9eb50f
commit
efdb422d00
@@ -1197,10 +1197,9 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d
|
||||
}
|
||||
|
||||
// preparePredicateStorageSlots populates the predicateStorageSlots field from the transaction's access list
|
||||
// Note: if an address is specified multiple times in the access list, only the last storage slots provided
|
||||
// for it are used in predicates.
|
||||
// During predicate verification, we require that a precompile address is only specififed in the access list
|
||||
// once to avoid a situation where we verify multiple predicate and only expose data from the last one.
|
||||
// Note: if an address is specified multiple times in the access list, each storage slot for that address is
|
||||
// appended to a slice of byte slices. Each byte slice represents a predicate, making it a slice of predicates
|
||||
// for each access list address, and every predicate in the slice goes through verification.
|
||||
func (s *StateDB) preparePredicateStorageSlots(rules params.Rules, list types.AccessList) {
|
||||
s.predicateStorageSlots = make(map[common.Address][][]byte)
|
||||
for _, el := range list {
|
||||
|
||||
Reference in New Issue
Block a user