Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/hashicorp/golang-lru v0.0.0-20160813221303-0a025b7e63ad
github.com/jedib0t/go-pretty/v6 v6.6.7
github.com/pkg/errors v0.9.1
github.com/vechain/networkhub v0.0.5
github.com/vechain/networkhub v0.0.6-0.20251121141639-ce79c69d3adc
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ github.com/vechain/go-ethereum v1.8.15-0.20241126085506-c74017ec91b2 h1:ch3DqXvl
github.com/vechain/go-ethereum v1.8.15-0.20241126085506-c74017ec91b2/go.mod h1:yPUCNmntAh1PritrMfSi7noK+9vVPStZX3wgh3ieaY0=
github.com/vechain/goleveldb v1.0.1-0.20220809091043-51eb019c8655 h1:CbHcWpCi7wOYfpoErRABh3Slyq9vO0Ay/EHN5GuJSXQ=
github.com/vechain/goleveldb v1.0.1-0.20220809091043-51eb019c8655/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
github.com/vechain/networkhub v0.0.5 h1:Xbdqo5P0why0cSAB3f8hF+grco8tZ0OMDqDzXN8DdXo=
github.com/vechain/networkhub v0.0.5/go.mod h1:UzjfgiHBvnkl2rhdLw/Hz1GZ7KfXMk2fipq5IBkBIFg=
github.com/vechain/networkhub v0.0.6-0.20251121141639-ce79c69d3adc h1:CgDLh1mKETqPLaCzjti8zIoudbqPuf3usr7rBMDiTw8=
github.com/vechain/networkhub v0.0.6-0.20251121141639-ce79c69d3adc/go.mod h1:UzjfgiHBvnkl2rhdLw/Hz1GZ7KfXMk2fipq5IBkBIFg=
github.com/vechain/thor/v2 v2.3.2-0.20250903112608-b945ee4fdfe6 h1:QvVsfznlaLwUzFUpGc+6mNTAfpvZQyyL/TrUoZclPzk=
github.com/vechain/thor/v2 v2.3.2-0.20250903112608-b945ee4fdfe6/go.mod h1:STGXqeAwg9qHV/q5QlAAA/VvWcC2eAeGAAYuYUUUosg=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
3 changes: 0 additions & 3 deletions hayabusa/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"math/big"
"slices"
"time"

"github.com/vechain/networkhub/network/node/genesis"
"github.com/vechain/thor/v2/builtin"
Expand Down Expand Up @@ -37,8 +36,6 @@ type Config struct {

// Apply the configuration to the genesis file.
func (c *Config) Apply(genesis *genesis.CustomGenesis) {
genesis.LaunchTime = uint64(time.Now().Add(time.Second * 10).Unix())

genesis.ForkConfig.HAYABUSA = c.ForkBlock
genesis.ExtraData = datagen.RandomHash().String()

Expand Down
2 changes: 2 additions & 0 deletions hayabusa/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"math/big"
"sync"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
Expand All @@ -31,6 +32,7 @@ func Genesis(config *Config) *genesis.CustomGenesis {
executor := Executor.Address()
return genesisbuilder.New(int(config.MaxBlockProposers)).
Overrider(config.Apply).
GenesisTimestampDelay(10 * time.Second).
Accounts(genesisAccounts(config)).
Authority(authorities()).
Executor(thorgenesis.Executor{
Expand Down
Loading