From 09161c4ad6a81fff9cb572c24cb9d1532a78624b Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Sat, 19 Aug 2023 09:46:39 -0400 Subject: [PATCH] feat: sancho network as a named network Signed-off-by: Chris Gianelloni --- config.go | 6 ++++++ config.yaml.example | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config.go b/config.go index f9fb2bf..71a54bf 100644 --- a/config.go +++ b/config.go @@ -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 } @@ -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 } diff --git a/config.yaml.example b/config.yaml.example index 81daa47..c06bb98 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -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 @@ -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 diff --git a/go.mod b/go.mod index f60c4d9..dcedb35 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index b07a449..9cb17f5 100644 --- a/go.sum +++ b/go.sum @@ -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=