mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-11 16:46:42 +00:00

* [NOD-1224] Make block already existing a ruleError * [NOD-1224] Remove block from pendingBlocks list only after it was processed * [NOD-1224] AddToPeers should have a Write Lock, not Read Lock * [NOD-1224] Check for unrequested before processing
15 lines
364 B
Go
15 lines
364 B
Go
package common
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
// 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 peer with the same ID already exists")
|