Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
i-norden committed Jul 14, 2022
1 parent b609d4d commit 8c6cd1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions statediff/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ func (sds *Service) Unsubscribe(id rpc.ID) error {
// This function will check the status of geth syncing.
// It will return false if geth has finished syncing.
// It will return a true Geth is still syncing.
func (sds *Service) GetSyncStatus(pubEthAPI *ethapi.PublicEthereumAPI) (bool, error) {
func (sds *Service) GetSyncStatus(pubEthAPI *ethapi.EthereumAPI) (bool, error) {
syncStatus, err := pubEthAPI.Syncing()
if err != nil {
return true, err
Expand All @@ -648,7 +648,7 @@ func (sds *Service) WaitingForSync() error {

// Has the geth node synced to head?
Synced := false
pubEthAPI := ethapi.NewPublicEthereumAPI(sds.BackendAPI)
pubEthAPI := ethapi.NewEthereumAPI(sds.BackendAPI)
for !Synced {
syncStatus, err := sds.GetSyncStatus(pubEthAPI)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion statediff/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func testGetSyncStatus(t *testing.T) {
// Update the backend current block value
t.Log("Updating Current Block to: ", table.currentBlock)
backend.CurrBlock = table.currentBlock
pubEthAPI := ethapi.NewPublicEthereumAPI(service.BackendAPI)
pubEthAPI := ethapi.NewEthereumAPI(service.BackendAPI)
syncStatus, err := service.GetSyncStatus(pubEthAPI)

if err != nil {
Expand Down

0 comments on commit 8c6cd1e

Please sign in to comment.