address review
This commit is contained in:
parent
3988cc9b2c
commit
c11ffa58a8
@ -111,7 +111,7 @@ func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, self p
|
||||
// If we are the block proposers we don't need to wait for delivery, we know the blocks are
|
||||
// honest.
|
||||
if src != self {
|
||||
log.Infof("Waiting for consistent broadcast of block in height: %v", blk.Header.Height)
|
||||
log.Debugf("Waiting for consistent broadcast of block in height: %v", blk.Header.Height)
|
||||
if err := cb.WaitForDelivery(blk.Header); err != nil {
|
||||
log.Errorf("couldn't deliver block to syncer over pubsub: %s; source: %s", err, src)
|
||||
return
|
||||
@ -119,7 +119,7 @@ func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, self p
|
||||
}
|
||||
// Garbage collect the broadcast state
|
||||
cb.GarbageCollect(blk.Header.Height)
|
||||
log.Infof("Block in height %v delivered successfully (cid=)", blk.Header.Height, blk.Cid())
|
||||
log.Debugf("Block in height %v delivered successfully (cid=)", blk.Header.Height, blk.Cid())
|
||||
|
||||
if s.InformNewBlock(msg.ReceivedFrom, &types.FullBlock{
|
||||
Header: blk.Header,
|
||||
|
@ -3,7 +3,6 @@ package kit
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
logging "github.com/ipfs/go-log/v2"
|
||||
|
||||
@ -41,11 +40,10 @@ func init() {
|
||||
|
||||
build.InsecurePoStValidation = true
|
||||
|
||||
// NOTE: If we want the payment channel itests to pass that use a
|
||||
// block time of 5*millisecond, we need to set the consistent broadcast
|
||||
// delay to something lower than that block time.
|
||||
// todo: configure such a low delay only for paych tests.
|
||||
build.CBDeliveryDelay = 2 * time.Millisecond
|
||||
// Disabling consistent broadcast in itests. Many tests use really fast
|
||||
// block times, and adding this additional delay for block delivery
|
||||
// would make these tests to fail.
|
||||
build.CBDeliveryDelay = 0
|
||||
|
||||
if err := os.Setenv("BELLMAN_NO_GPU", "1"); err != nil {
|
||||
panic(fmt.Sprintf("failed to set BELLMAN_NO_GPU env variable: %s", err))
|
||||
|
Loading…
Reference in New Issue
Block a user