Skip to content

Commit

Permalink
Merge branch 'andrius/relay-upgrade-2' into 'main'
Browse files Browse the repository at this point in the history
Support Relay upgrade on Songbird and Coston

See merge request flarenetwork/flare-system-client!47
  • Loading branch information
adg-flare committed Oct 16, 2024
2 parents 6c56549 + 42b7838 commit 8bc7613
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/finalizer/relay_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,21 @@ func (r *relayContractClient) FetchSigningPolicies(db finalizerDB, from, to int6

// If using new Songbird Relay, query the old one as well.
// Note: this won't have any effect on other networks as we currently have unique Relay addresses for each network.
if r.address == common.HexToAddress("0x0D462d2Fec11554D64F52D7c5A5C269d748037aD") {
if r.address == common.HexToAddress("0x67a916E175a2aF01369294739AA60dDdE1Fad189") {
logsOld, err := db.FetchLogsByAddressAndTopic0(common.HexToAddress("0xbA35e39D01A3f5710d1e43FC61dbb738B68641c4"), r.topic0SPI, from, to)
if err != nil {
return nil, err
}
allLogs = append(allLogs, logsOld...)
}
// If using new Coston Relay, query the old one as well.
if r.address == common.HexToAddress("0x92a6E1127262106611e1e129BB64B6D8654273F7") {
logsOld, err := db.FetchLogsByAddressAndTopic0(common.HexToAddress("0xA300E71257547e645CD7241987D3B75f2012E0E3"), r.topic0SPI, from, to)
if err != nil {
return nil, err
}
allLogs = append(allLogs, logsOld...)
}
// END TEMP CHANGE

logs, err := db.FetchLogsByAddressAndTopic0(r.address, r.topic0SPI, from, to)
Expand Down

0 comments on commit 8bc7613

Please sign in to comment.