return CBDeliveryDelay into a var

This commit is contained in:
Alfonso de la Rocha 2023-03-29 17:43:10 +02:00
parent f24fc836b3
commit 103d786c72
No known key found for this signature in database
GPG Key ID: B7BEF4B895F2B535
5 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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