Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Relayer from previous Ethereum block #384

Merged
merged 16 commits into from
Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
minor fixes
  • Loading branch information
musnit committed Jun 1, 2021
commit 83cc422c11a71ca4add9b010ceb0d1f418109259
4 changes: 2 additions & 2 deletions relayer/workers/beefyrelayer/beefy-ethereum-listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (li *BeefyEthereumListener) Start(ctx context.Context, eg *errgroup.Group,
if err != nil {
return err
}
// Relayer's operator must update the StartBlock config variable to the latest Ethereum block number
// Relayer config StartBlock config variable must be updated to the latest Ethereum block number
if uint64(li.ethereumConfig.StartBlock) < blockNumber {
denalimarsh marked this conversation as resolved.
Show resolved Hide resolved
li.log.Info(fmt.Sprintf("Syncing Relayer from block %d...", li.ethereumConfig.StartBlock))
err := li.pollHistoricEventsAndHeaders(ctx, descendantsUntilFinal)
Expand Down Expand Up @@ -357,7 +357,7 @@ func (li *BeefyEthereumListener) simulatePayloadGeneration(item store.BeefyRelay
li.log.WithError(err).Error("Error building commitment message")
}

return msg.Payload
return msg.CommitmentHash
}

// forwardWitnessedBeefyJustifications forwards witnessed BEEFY commitments to the Ethereum writer
Expand Down
2 changes: 0 additions & 2 deletions test/scripts/start-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ start_ganache()
{
echo "Starting Ganache"

export INCENTIVIZED_CHANNEL_FEE="1"

yarn run ganache-cli \
--port=8545 \
--networkId=344 \
Expand Down