Skip to content

Commit

Permalink
Merge pull request #68 from blinklabs-io/feat/sanchonet
Browse files Browse the repository at this point in the history
feat: sancho network as a named network
  • Loading branch information
wolf31o2 authored Aug 19, 2023
2 parents f81d349 + 09161c4 commit 4c33313
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func (c *Config) populateByronGenesis() error {
c.Node.ByronGenesis.StartTime = 1666656000
case "preprod":
c.Node.ByronGenesis.StartTime = 1654041600
case "sancho":
c.Node.ByronGenesis.K = 432
c.Node.ByronGenesis.StartTime = 1686789000
case "mainnet":
c.Node.ByronGenesis.StartTime = 1506203091
}
Expand All @@ -199,6 +202,9 @@ func (c *Config) populateByronGenesis() error {
c.Node.ByronGenesis.StartTime = 1666656000
case "preprod":
c.Node.ByronGenesis.StartTime = 1654041600
case "sancho":
c.Node.ByronGenesis.K = 432
c.Node.ByronGenesis.StartTime = 1686789000
case "mainnet":
c.Node.ByronGenesis.StartTime = 1506203091
}
Expand Down
4 changes: 2 additions & 2 deletions config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app:
# Named Cardano network for cardano-node
#
# This is a short-cut to select the NetworkMagic and can be used to
# select mainnet, preprod, or preview networks.
# select mainnet, preprod, preview, or sancho networks.
#
# This can also be set via the NETWORK environment variable and overrides
# the node specific setting below
Expand All @@ -21,7 +21,7 @@ node:
# Named Cardano network for cardano-node
#
# This is a short-cut to select the NetworkMagic and can be used to
# select mainnet, preprod, or preview networks.
# select mainnet, preprod, preview, or sancho networks.
#
# This can also be set via the CARDANO_NETWORK environment variable
network: mainnet
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/blinklabs-io/nview
go 1.19

require (
github.com/blinklabs-io/gouroboros v0.50.0
github.com/blinklabs-io/gouroboros v0.51.0
github.com/gdamore/tcell/v2 v2.6.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/blinklabs-io/gouroboros v0.50.0 h1:TcNgmWgenAE9mVoiZkTw68tk4r+n6oF4iPW0oeX6jjs=
github.com/blinklabs-io/gouroboros v0.50.0/go.mod h1:cQt3XVVG2b+cpIJh+DhID7ivsyBQmTsXqbTDZ+7esXI=
github.com/blinklabs-io/gouroboros v0.51.0 h1:cgl2jgTsPAKC1Jdp44vvzKxDn5fYJNooRR2HpP/ZjkI=
github.com/blinklabs-io/gouroboros v0.51.0/go.mod h1:cQt3XVVG2b+cpIJh+DhID7ivsyBQmTsXqbTDZ+7esXI=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down

0 comments on commit 4c33313

Please sign in to comment.