Skip to content

Commit

Permalink
Update NewBuilder calls
Browse files Browse the repository at this point in the history
  • Loading branch information
danigomez committed May 22, 2021
1 parent fb3a697 commit 263c354
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/babe/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (

// construct a block for this slot with the given parent
func (b *Service) buildBlock(parent *types.Header, slot Slot) (*types.Block, error) {
builder, err := NewBuilder(
builder, err := NewBlockBuilder(
b.rt,
b.keypair,
b.transactionState,
Expand Down
4 changes: 2 additions & 2 deletions lib/babe/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestSeal(t *testing.T) {

babeService := createTestService(t, cfg)

builder, _ := NewBuilder(
builder, _ := NewBlockBuilder(
babeService.rt,
babeService.keypair,
babeService.transactionState,
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestBuildBlock_ok(t *testing.T) {
babeService := createTestService(t, cfg)
babeService.epochData.threshold = maxThreshold

builder, _ := NewBuilder(
builder, _ := NewBlockBuilder(
babeService.rt,
babeService.keypair,
babeService.transactionState,
Expand Down
4 changes: 2 additions & 2 deletions lib/babe/median_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func addBlocksToState(t *testing.T, babeService *Service, depth int, blockState
previousHash := blockState.BestBlockHash()
previousAT := startTime
duration, err := time.ParseDuration("1s")
builder, _ := NewBuilder(
builder, _ := NewBlockBuilder(
babeService.rt,
babeService.keypair,
babeService.transactionState,
Expand Down Expand Up @@ -139,7 +139,7 @@ func TestEstimateCurrentSlot(t *testing.T) {
babeService.epochData.threshold = maxThreshold
babeService.epochData.authorityIndex = 0

builder, _ := NewBuilder(
builder, _ := NewBlockBuilder(
babeService.rt,
babeService.keypair,
babeService.transactionState,
Expand Down
2 changes: 1 addition & 1 deletion lib/babe/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func TestVerifyPimarySlotWinner(t *testing.T) {
babeService.epochData.threshold = maxThreshold
babeService.epochData.authorityIndex = 0

builder, _ := NewBuilder(
builder, _ := NewBlockBuilder(
babeService.rt,
babeService.keypair,
babeService.transactionState,
Expand Down

0 comments on commit 263c354

Please sign in to comment.