chore: remove unused code (#2061)

This commit is contained in:
Roshan 2023-12-13 15:53:36 +08:00 committed by GitHub
parent 94b68156c8
commit d4f7313760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1445,10 +1445,6 @@ func (c *verifyDoubleSignEvidence) Run(input []byte) ([]byte, error) {
if bytes.Equal(sig1, sig2) {
return nil, ErrExecutionReverted
}
evidenceHeight := header1.Number
if evidenceHeight.Cmp(header2.Number) == -1 {
evidenceHeight = header2.Number
}
// check sig
msgHash1 := types.SealHash(header1, evidence.ChainId)
@ -1470,7 +1466,7 @@ func (c *verifyDoubleSignEvidence) Run(input []byte) ([]byte, error) {
returnBz := make([]byte, 52) // 20 + 32
signerAddr := crypto.Keccak256(pubkey1[1:])[12:]
evidenceHeightBz := evidenceHeight.Bytes()
evidenceHeightBz := header1.Number.Bytes()
copy(returnBz[:20], signerAddr)
copy(returnBz[52-len(evidenceHeightBz):], evidenceHeightBz)