Skip to content

Commit 8c6cd1e

Browse files
committed
fixes after rebase
1 parent b609d4d commit 8c6cd1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

statediff/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ func (sds *Service) Unsubscribe(id rpc.ID) error {
628628
// This function will check the status of geth syncing.
629629
// It will return false if geth has finished syncing.
630630
// It will return a true Geth is still syncing.
631-
func (sds *Service) GetSyncStatus(pubEthAPI *ethapi.PublicEthereumAPI) (bool, error) {
631+
func (sds *Service) GetSyncStatus(pubEthAPI *ethapi.EthereumAPI) (bool, error) {
632632
syncStatus, err := pubEthAPI.Syncing()
633633
if err != nil {
634634
return true, err
@@ -648,7 +648,7 @@ func (sds *Service) WaitingForSync() error {
648648

649649
// Has the geth node synced to head?
650650
Synced := false
651-
pubEthAPI := ethapi.NewPublicEthereumAPI(sds.BackendAPI)
651+
pubEthAPI := ethapi.NewEthereumAPI(sds.BackendAPI)
652652
for !Synced {
653653
syncStatus, err := sds.GetSyncStatus(pubEthAPI)
654654
if err != nil {

statediff/service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func testGetSyncStatus(t *testing.T) {
395395
// Update the backend current block value
396396
t.Log("Updating Current Block to: ", table.currentBlock)
397397
backend.CurrBlock = table.currentBlock
398-
pubEthAPI := ethapi.NewPublicEthereumAPI(service.BackendAPI)
398+
pubEthAPI := ethapi.NewEthereumAPI(service.BackendAPI)
399399
syncStatus, err := service.GetSyncStatus(pubEthAPI)
400400

401401
if err != nil {

0 commit comments

Comments
 (0)