mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-03 16:00:28 +00:00
[NOD-294] Fix golint in deploy.sh and fix all lint warnings (#380)
* [NOD-294] Fix golint in deploy.sh and fixed all lint errors * [NOD-294] Fix typos in comments * [NOD-294] Convert VirtualForTest into alias of *virtualBlock * [NOD-294] Fixed some more typos in comments
This commit is contained in:
@@ -177,6 +177,10 @@ type SyncManager struct {
|
||||
nextCheckpoint *dagconfig.Checkpoint
|
||||
}
|
||||
|
||||
// PushGetBlockInvsOrHeaders sends a getblockinvs or getheaders message according to checkpoint status
|
||||
// for the provided start hash.
|
||||
//
|
||||
// This function is safe for concurrent access.
|
||||
func (sm *SyncManager) PushGetBlockInvsOrHeaders(peer *peerpkg.Peer, startHash *daghash.Hash) error {
|
||||
// When the current height is less than a known checkpoint we
|
||||
// can use block headers to learn about which blocks comprise
|
||||
|
||||
Reference in New Issue
Block a user