File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ require (
2222 github.com/hashicorp/golang-lru v0.0.0-20160813221303-0a025b7e63ad
2323 github.com/jedib0t/go-pretty/v6 v6.6.7
2424 github.com/pkg/errors v0.9.1
25- github.com/vechain/networkhub v0.0.5
25+ github.com/vechain/networkhub v0.0.6-0.20251121141639-ce79c69d3adc
2626)
2727
2828require (
Original file line number Diff line number Diff line change @@ -210,8 +210,8 @@ github.com/vechain/go-ethereum v1.8.15-0.20241126085506-c74017ec91b2 h1:ch3DqXvl
210210github.com/vechain/go-ethereum v1.8.15-0.20241126085506-c74017ec91b2 /go.mod h1:yPUCNmntAh1PritrMfSi7noK+9vVPStZX3wgh3ieaY0 =
211211github.com/vechain/goleveldb v1.0.1-0.20220809091043-51eb019c8655 h1:CbHcWpCi7wOYfpoErRABh3Slyq9vO0Ay/EHN5GuJSXQ =
212212github.com/vechain/goleveldb v1.0.1-0.20220809091043-51eb019c8655 /go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48 =
213- github.com/vechain/networkhub v0.0.5 h1:Xbdqo5P0why0cSAB3f8hF+grco8tZ0OMDqDzXN8DdXo =
214- github.com/vechain/networkhub v0.0.5 /go.mod h1:UzjfgiHBvnkl2rhdLw/Hz1GZ7KfXMk2fipq5IBkBIFg =
213+ github.com/vechain/networkhub v0.0.6-0.20251121141639-ce79c69d3adc h1:CgDLh1mKETqPLaCzjti8zIoudbqPuf3usr7rBMDiTw8 =
214+ github.com/vechain/networkhub v0.0.6-0.20251121141639-ce79c69d3adc /go.mod h1:UzjfgiHBvnkl2rhdLw/Hz1GZ7KfXMk2fipq5IBkBIFg =
215215github.com/vechain/thor/v2 v2.3.2-0.20250903112608-b945ee4fdfe6 h1:QvVsfznlaLwUzFUpGc+6mNTAfpvZQyyL/TrUoZclPzk =
216216github.com/vechain/thor/v2 v2.3.2-0.20250903112608-b945ee4fdfe6 /go.mod h1:STGXqeAwg9qHV/q5QlAAA/VvWcC2eAeGAAYuYUUUosg =
217217github.com/yuin/goldmark v1.1.27 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
Original file line number Diff line number Diff line change 44 "errors"
55 "math/big"
66 "slices"
7- "time"
87
98 "github.com/vechain/networkhub/network/node/genesis"
109 "github.com/vechain/thor/v2/builtin"
@@ -37,8 +36,6 @@ type Config struct {
3736
3837// Apply the configuration to the genesis file.
3938func (c * Config ) Apply (genesis * genesis.CustomGenesis ) {
40- genesis .LaunchTime = uint64 (time .Now ().Add (time .Second * 10 ).Unix ())
41-
4239 genesis .ForkConfig .HAYABUSA = c .ForkBlock
4340 genesis .ExtraData = datagen .RandomHash ().String ()
4441
Original file line number Diff line number Diff line change 55 "fmt"
66 "math/big"
77 "sync"
8+ "time"
89
910 "github.com/ethereum/go-ethereum/common"
1011 "github.com/ethereum/go-ethereum/crypto"
@@ -31,6 +32,7 @@ func Genesis(config *Config) *genesis.CustomGenesis {
3132 executor := Executor .Address ()
3233 return genesisbuilder .New (int (config .MaxBlockProposers )).
3334 Overrider (config .Apply ).
35+ GenesisTimestampDelay (10 * time .Second ).
3436 Accounts (genesisAccounts (config )).
3537 Authority (authorities ()).
3638 Executor (thorgenesis.Executor {
You can’t perform that action at this time.
0 commit comments