Do not store pythnet observations (#49)
This commit is contained in:
parent
9f035b40bd
commit
43c529e5d3
|
@ -95,6 +95,11 @@ func (s *Repository) UpsertObservation(o *gossipv1.SignedObservation) error {
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
//TODO error handling
|
//TODO error handling
|
||||||
chainId, err := strconv.ParseUint(chainIdStr, 10, 16)
|
chainId, err := strconv.ParseUint(chainIdStr, 10, 16)
|
||||||
|
|
||||||
|
// TODO should we notify the caller that pyth observations are not stored?
|
||||||
|
if vaa.ChainID(chainId) == vaa.ChainIDPythNet {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
sequence, err := strconv.ParseUint(sequenceStr, 10, 64)
|
sequence, err := strconv.ParseUint(sequenceStr, 10, 64)
|
||||||
addr := eth_common.BytesToAddress(o.GetAddr())
|
addr := eth_common.BytesToAddress(o.GetAddr())
|
||||||
obs := ObservationUpdate{
|
obs := ObservationUpdate{
|
||||||
|
|
Loading…
Reference in New Issue