Skip to content

Commit

Permalink
refactor: changed 10000 to timeDiff in real-bidder
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed May 1, 2024
1 parent 54bc581 commit bfbd778
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions p2p/integrationtest/real-bidder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,18 @@ func main() {
bundleEnd = len(currentBlock.txns) - 1
}

min := 1000
max := 10000
startTimeDiff := rand.Intn(max-min+1) + min
endTimeDiff := rand.Intn(max-min+1) + min
err = sendBid(
bidderClient,
logger,
rpcClient,
currentBlock.txns[bundleStart:bundleEnd],
currentBlock.blockNum,
(time.Now().UnixMilli())-10000,
(time.Now().UnixMilli())+10000,
(time.Now().UnixMilli())-int64(startTimeDiff),
(time.Now().UnixMilli())+int64(endTimeDiff),
)
if err != nil {
logger.Error("failed to send bid", "err", err)
Expand Down

0 comments on commit bfbd778

Please sign in to comment.