Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak committed Oct 24, 2023
1 parent 85e48c8 commit fbf6667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions atxsdata/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ package atxsdata

import (
"sync"

"go.uber.org/atomic"
"sync/atomic"

"github.com/spacemeshos/go-spacemesh/common/types"
)
Expand Down
10 changes: 0 additions & 10 deletions atxsdata/warmup.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,3 @@ func Warmup(db sql.Executor, cache *Data) error {
}
return ierr
}

func ToATXData(atx *types.ActivationTxHeader, nonce types.VRFPostIndex, malicious bool) *ATX {
return &ATX{
Weight: atx.GetWeight(),
BaseHeight: atx.BaseTickHeight,
Height: atx.TickHeight(),
Nonce: nonce,
Malicious: malicious,
}
}

0 comments on commit fbf6667

Please sign in to comment.