mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +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)
|
marks = make(map[common.Address]bool)
|
||||||
auths = make([]common.Address, 0, len(setcodetx.AuthList))
|
auths = make([]common.Address, 0, len(setcodetx.AuthList))
|
||||||
)
|
)
|
||||||
for _, auth := range setcodetx.AuthList {
|
for idx, auth := range setcodetx.AuthList {
|
||||||
addr, err := auth.Authority()
|
addr, err := auth.Authority()
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
if marks[addr] {
|
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
|
continue
|
||||||
}
|
}
|
||||||
marks[addr] = true
|
marks[addr] = true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue