mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
fix bug
This commit is contained in:
parent
8a88690024
commit
d5a423af06
1 changed files with 3 additions and 3 deletions
|
|
@ -524,14 +524,14 @@ func (tx *Transaction) SetCodeAuthorities() []common.Address {
|
|||
marks = make(map[common.Address]bool)
|
||||
auths = make([]common.Address, 0, len(setcodetx.AuthList))
|
||||
)
|
||||
for _, auth := range setcodetx.AuthList {
|
||||
for idx, auth := range setcodetx.AuthList {
|
||||
addr, err := auth.Authority()
|
||||
if err != nil {
|
||||
log.Error("SetCodeTx authorization has invalid signature", "tx", tx.Hash(), "address", addr, "err", err)
|
||||
log.Error("SetCodeTx authorization has invalid signature", "tx", tx.Hash(), "index", idx, "err", err)
|
||||
continue
|
||||
}
|
||||
if marks[addr] {
|
||||
log.Warn("SetCodeTx authorization has duplicate authority", "tx", tx.Hash(), "address", addr)
|
||||
log.Warn("SetCodeTx authorization has duplicate authority", "tx", tx.Hash(), "index", idx)
|
||||
continue
|
||||
}
|
||||
marks[addr] = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue