mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-1168] Add context interfaces to flows * [NOD-1168] Move IBD state to protocol manager * [NOD-1168] Move ready peers to protocol manager * [NOD-1168] Add comments * [NOD-1168] Separate context interfaces for send and receive pings * [NOD-1168] Add protocol shared state to FlowContext * [NOD-1168] Fix comment * [NOD-1168] Rename Context->HandleHandshakeContext * [NOD-1168] Initialize readyPeers and transactionsToRebroadcast * [NOD-1168] Rename readyPeers -> peers
14 lines
358 B
Go
14 lines
358 B
Go
package common
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
"time"
|
|
)
|
|
|
|
// DefaultTimeout is the default duration to wait for enqueuing/dequeuing
|
|
// to/from routes.
|
|
const DefaultTimeout = 30 * time.Second
|
|
|
|
// ErrPeerWithSameIDExists signifies that a peer with the same ID already exist.
|
|
var ErrPeerWithSameIDExists = errors.New("ready with the same ID already exists")
|