File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments