Skip to content

Commit

Permalink
blockNumber was not passes in getwork. fixed. Now pandora waiting tim…
Browse files Browse the repository at this point in the history
…e is 20sec
  • Loading branch information
meta-bot committed Sep 9, 2021
1 parent acbe2ec commit a2316ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consensus/pandora/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (api *API) GetShardingWork(parentHash common.Hash, blockNumber uint64, slot
)

select {
case api.pandora.fetchShardingInfoCh <- &shardingInfoReq{errc: errorCh, res: shardingInfoCh, slot: slotNumber, epoch: epoch}:
case api.pandora.fetchShardingInfoCh <- &shardingInfoReq{errc: errorCh, res: shardingInfoCh, slot: slotNumber, epoch: epoch, blockNumber: blockNumber}:
log.Debug("sent sharding info request to fetch channel")
case <-api.pandora.ctx.Done():
return emptyRes, errPandoraStopped
Expand Down
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ func (bc *BlockChain) notifyAndGetConfirmationFromOrchestrator(block *types.Bloc
wg.Add(1)
go func() {
defer wg.Done()
ticker := time.NewTicker(500 * time.Millisecond)
ticker := time.NewTicker(2 * time.Second)
for retryLimit > 0 && status == pandora_orcclient.Pending {
select {
case <-bc.confiramtionExitCh:
Expand Down

0 comments on commit a2316ff

Please sign in to comment.