()
| 484 | } |
| 485 | |
| 486 | func GetSyncStatus() (SyncStatus, error) { |
| 487 | var status SyncStatus |
| 488 | height, err := bactor.GetMaxPeerBlockHeight() |
| 489 | if err != nil { |
| 490 | return status, err |
| 491 | } |
| 492 | cnt, err := bactor.GetConnectionCnt() |
| 493 | if err != nil { |
| 494 | return status, err |
| 495 | } |
| 496 | curBlockHeight := bactor.GetCurrentBlockHeight() |
| 497 | |
| 498 | return SyncStatus{ |
| 499 | CurrentBlockHeight: curBlockHeight, |
| 500 | ConnectCount: cnt, |
| 501 | MaxPeerBlockHeight: height, |
| 502 | }, nil |
| 503 | } |
nothing calls this directly
no test coverage detected