Skip to content

Commit

Permalink
sharding: Fix Lint (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas committed May 16, 2018
1 parent a88b20f commit 72089a1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions sharding/collation.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type collationHeaderData struct {
ProposerSignature []byte // the proposer's signature for calculating collation hash.
}

var collationSizelimit = int64(math.Pow(float64(2), float64(20)))

// NewCollation initializes a collation and leaves it up to clients to serialize, deserialize
// and provide the body and transactions upon creation.
func NewCollation(header *CollationHeader, body []byte, transactions []*types.Transaction) *Collation {
Expand Down Expand Up @@ -92,13 +94,6 @@ func (c *Collation) Header() *CollationHeader { return c.header }
// Body returns the collation's byte body.
func (c *Collation) Body() []byte { return c.body }

// Transactions returns an array of tx's in the collation.
var (
collationSizelimit = int64(math.Pow(float64(2), float64(20)))
chunkSize = int64(32)
numberOfChunks = collationSizelimit / chunkSize
)

// Transactions returns an array of tx's in the collation.
func (c *Collation) Transactions() []*types.Transaction { return c.transactions }

Expand Down

0 comments on commit 72089a1

Please sign in to comment.