Skip to content

Commit

Permalink
fix genesis construction (strangelove-ventures#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
n0cte authored Oct 31, 2023
1 parent 018bcae commit 47b612d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion chain/avalanche/node_genesis.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package avalanche

import "time"

type (
GenesisLockedAmount struct {
Amount uint32 `json:"amount"`
Expand Down Expand Up @@ -37,7 +39,7 @@ func NewGenesis(networkID uint32, allocations []GenesisAllocation, initialStaked
return Genesis{
NetworkID: networkID,
Allocations: allocations,
StartTime: 1660536000,
StartTime: uint32(time.Now().Unix()),
InitialStakeDuration: 31536000,
InitialStakeDurationOffset: 5400,
InitialStakedFunds: initialStakedFunds,
Expand Down
2 changes: 1 addition & 1 deletion examples/avalanche/avalanche_chain_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package penumbra_test
package avalanche_test

import (
"context"
Expand Down

0 comments on commit 47b612d

Please sign in to comment.