@@ -11,8 +11,8 @@ import (
1111)
1212
1313func newCanton (ctx context.Context , in * Input ) (* Output , error ) {
14- if in .NumberOfValidators >= 100 {
15- return nil , fmt .Errorf ("number of validators too high: %d, max is 99" , in .NumberOfValidators )
14+ if in .NumberOfCantonValidators >= 100 {
15+ return nil , fmt .Errorf ("number of validators too high: %d, max is 99" , in .NumberOfCantonValidators )
1616 }
1717
1818 // TODO - remove debug prints
@@ -25,7 +25,7 @@ func newCanton(ctx context.Context, in *Input) (*Output, error) {
2525 fmt .Println ("Network created:" , dockerNetwork .Name )
2626
2727 // Set up Postgres container
28- postgresReq := canton .PostgresContainerRequest (in .NumberOfValidators , dockerNetwork .Name )
28+ postgresReq := canton .PostgresContainerRequest (in .NumberOfCantonValidators , dockerNetwork .Name )
2929 fmt .Printf ("Starting postgres container %s...\n " , postgresReq .Name )
3030 c , err := testcontainers .GenericContainer (ctx , testcontainers.GenericContainerRequest {
3131 ContainerRequest : postgresReq ,
@@ -38,7 +38,7 @@ func newCanton(ctx context.Context, in *Input) (*Output, error) {
3838 fmt .Println ("Postgres container started" )
3939
4040 // Set up Canton container
41- cantonReq := canton .CantonContainerRequest (dockerNetwork .Name , in .NumberOfValidators , in .Image )
41+ cantonReq := canton .CantonContainerRequest (dockerNetwork .Name , in .NumberOfCantonValidators , in .Image )
4242 fmt .Printf ("Starting canton container %s...\n " , cantonReq .Name )
4343 cantonContainer , err := testcontainers .GenericContainer (ctx , testcontainers.GenericContainerRequest {
4444 ContainerRequest : cantonReq ,
@@ -51,7 +51,7 @@ func newCanton(ctx context.Context, in *Input) (*Output, error) {
5151 fmt .Println ("Canton container started" )
5252
5353 // Set up Splice container
54- spliceReq := canton .SpliceContainerRequest (dockerNetwork .Name , in .NumberOfValidators , in .Image )
54+ spliceReq := canton .SpliceContainerRequest (dockerNetwork .Name , in .NumberOfCantonValidators , in .Image )
5555 fmt .Printf ("Starting splice container %s...\n " , spliceReq .Name )
5656 spliceContainer , err := testcontainers .GenericContainer (ctx , testcontainers.GenericContainerRequest {
5757 ContainerRequest : spliceReq ,
@@ -64,7 +64,7 @@ func newCanton(ctx context.Context, in *Input) (*Output, error) {
6464 fmt .Println ("Splice container started" )
6565
6666 // Set up Nginx container
67- nginxReq := canton .NginxContainerRequest (dockerNetwork .Name , in .NumberOfValidators , in .Port )
67+ nginxReq := canton .NginxContainerRequest (dockerNetwork .Name , in .NumberOfCantonValidators , in .Port )
6868 fmt .Printf ("Starting nginx container %s...\n " , nginxReq .Name )
6969 nginxContainer , err := testcontainers .GenericContainer (ctx , testcontainers.GenericContainerRequest {
7070 ContainerRequest : nginxReq ,
0 commit comments