0xPolygonHermez / zkevm-bridge-service

Other
68 stars 68 forks source link

Error on claim to L1 from another rollup #596

Closed joanestebanr closed 8 months ago

joanestebanr commented 8 months ago

Version: v0.4.1

When another rollup make a Claim against L1 the bridge of the zkEVM try to store this claim on DB failing a constraint of database

networkID: 0, error storing new Claim in Block:  19373343, Claim: {MainnetFlag:false RollupIndex:1 Index:1 OriginalNetwork:0 OriginalAddress:0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c Amount:+500000000000000000 DestinationAddress:0xc66947359c7Fd2AF9763426DD78794529EaC4Ac4 BlockID:484667 BlockNumber:19373343 NetworkID:0 TxHash:0xad886975cd2d7ead0340bd955dd0d9639e03e950eb73a6ccf070ab7dc0ada1dd}, err: ERROR: duplicate key value violates unique constraint "claim_pkey" (SQLSTATE 23505)%!(EXTRA string=
/go/pkg/mod/github.com/0x!polygon!hermez/zkevm-node@v0.5.0-!r!c18/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
/go/pkg/mod/github.com/0x!polygon!hermez/zkevm-node@v0.5.0-!r!c18/log/log.go:251 github.com/0xPolygonHermez/zkevm-node/log.Errorf()
/src/synchronizer/synchronizer.go:640 github.com/0xPolygonHermez/zkevm-bridge-service/synchronizer.(*ClientSynchronizer).processClaim()
/src/synchronizer/synchronizer.go:352 github.com/0xPolygonHermez/zkevm-bridge-service/synchronizer.(*ClientSynchronizer).processBlockRange()
/src/synchronizer/synchronizer.go:266 github.com/0xPolygonHermez/zkevm-bridge-service/synchronizer.(*ClientSynchronizer).syncBlocks()
/src/synchronizer/synchronizer.go:133 github.com/0xPolygonHermez/zkevm-bridge-service/synchronizer.(*ClientSynchronizer).Sync()
/src/cmd/run.go:166 main.runSynchronizer()