return CBDeliveryDelay into a var
This commit is contained in:
parent
f24fc836b3
commit
103d786c72
@ -143,4 +143,4 @@ var WhitelistedBlock = cid.Undef
|
||||
|
||||
// Reducing the delivery delay for equivocation of
|
||||
// consistent broadcast to just half a second.
|
||||
const CBDeliveryDelay = 500 * time.Milisecond
|
||||
var CBDeliveryDelay = 500 * time.Milisecond
|
||||
|
@ -92,4 +92,5 @@ var WhitelistedBlock = cid.Undef
|
||||
|
||||
// CBDeliveryDelay is the delay before deliver in the synchronous consistent broadcast.
|
||||
// This determines the wait time for the detection of potential equivocations.
|
||||
const CBDeliveryDelay = 2 * time.Second
|
||||
// It is a variable instead of a constant so it can be conveniently configured in tests
|
||||
var CBDeliveryDelay = 2 * time.Second
|
||||
|
@ -126,4 +126,5 @@ var WhitelistedBlock = cid.Undef
|
||||
|
||||
// CBDeliveryDelay is the delay before deliver in the synchronous consistent broadcast.
|
||||
// This determines the wait time for the detection of potential equivocations.
|
||||
const CBDeliveryDelay = 2 * time.Second
|
||||
// It is a variable instead of a constant so it can be conveniently configured in tests
|
||||
var CBDeliveryDelay = 2 * time.Second
|
||||
|
@ -132,4 +132,5 @@ var WhitelistedBlock = cid.Undef
|
||||
|
||||
// CBDeliveryDelay is the delay before deliver in the synchronous consistent broadcast.
|
||||
// This determines the wait time for the detection of potential equivocations.
|
||||
const CBDeliveryDelay = 2 * time.Second
|
||||
// It is a variable instead of a constant so it can be conveniently configured in tests
|
||||
var CBDeliveryDelay = 2 * time.Second
|
||||
|
@ -141,4 +141,5 @@ var WhitelistedBlock = MustParseCid("bafy2bzaceapyg2uyzk7vueh3xccxkuwbz3nxewjygu
|
||||
|
||||
// CBDeliveryDelay is the delay before deliver in the synchronous consistent broadcast.
|
||||
// This determines the wait time for the detection of potential equivocations.
|
||||
const CBDeliveryDelay = 2 * time.Second
|
||||
// It is a variable instead of a constant so it can be conveniently configured in tests
|
||||
var CBDeliveryDelay = 2 * time.Second
|
||||
|
Loading…
Reference in New Issue
Block a user