Fix race condition where p2p is faster than ETH
This commit is contained in:
parent
ec6e261c43
commit
b6b2d21bde
|
@ -222,6 +222,8 @@ func ethLockupProcessor(lockC chan *common.ChainLock, setC chan *common.Guardian
|
||||||
agg[i] = ok
|
agg[i] = ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if state.lockupSignatures[hash].ourVAA != nil {
|
||||||
|
// We have seen it on chain!
|
||||||
// Deep copy the VAA and add signatures
|
// Deep copy the VAA and add signatures
|
||||||
v := state.lockupSignatures[hash].ourVAA
|
v := state.lockupSignatures[hash].ourVAA
|
||||||
signed := &vaa.VAA{
|
signed := &vaa.VAA{
|
||||||
|
@ -274,3 +276,4 @@ func ethLockupProcessor(lockC chan *common.ChainLock, setC chan *common.Guardian
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue