Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for querying proofs and remove broadcasting #187

Merged
merged 16 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from 8 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
15 changes: 6 additions & 9 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,12 @@ func DefaultConfig() *Config {
RawRESTListener: fmt.Sprintf("localhost:%d", defaultRESTPort),
GtwConnTimeout: defaultGatewayConnectionTimeout,
Service: &service.Config{
Genesis: defaultGenesisTime,
EpochDuration: defaultEpochDuration,
PhaseShift: defaultPhaseShift,
CycleGap: defaultCycleGap,
MemoryLayers: defaultMemoryLayers,
ConnAcksThreshold: defaultConnAcksThreshold,
BroadcastAcksThreshold: defaultBroadcastAcksThreshold,
BroadcastNumRetries: defaultBroadcastNumRetries,
BroadcastRetriesInterval: defaultBroadcastRetriesInterval,
Genesis: defaultGenesisTime,
EpochDuration: defaultEpochDuration,
PhaseShift: defaultPhaseShift,
CycleGap: defaultCycleGap,
MemoryLayers: defaultMemoryLayers,
ConnAcksThreshold: defaultConnAcksThreshold,
},
CoreService: &coreServiceConfig{
MemoryLayers: defaultMemoryLayers,
Expand Down
120 changes: 0 additions & 120 deletions gateway/broadcaster/broadcaster.go

This file was deleted.

24 changes: 0 additions & 24 deletions gateway/broadcaster/broadcaster_test.go

This file was deleted.

4 changes: 0 additions & 4 deletions integration/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type ServerConfig struct {
CycleGap time.Duration
DebugLog bool
Reset bool
DisableBroadcast bool
RESTListen string
GatewayAddresses []string
GtwConnTimeout time.Duration
Expand Down Expand Up @@ -79,9 +78,6 @@ func (cfg *ServerConfig) genArgs() []string {
if cfg.Reset {
args = append(args, "--reset")
}
if cfg.DisableBroadcast {
args = append(args, "--disablebroadcast")
}

return args
}
Expand Down
9 changes: 6 additions & 3 deletions poet.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ func poetMain() error {

ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
defer stop()
if err := server.StartServer(ctx, cfg); err != nil {
log.Error("failed to start server: %v", err)
return err
server, err := server.New(*cfg)
if err != nil {
return fmt.Errorf("failed to create server: %w", err)
}
if err := server.Start(ctx); err != nil {
return fmt.Errorf("failed to start server: %w", err)
}

return nil
Expand Down
1 change: 0 additions & 1 deletion poet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ func TestHarness_CrashRecovery(t *testing.T) {
req.NoError(err)
cfg.Genesis = time.Now().Add(5 * time.Second)
cfg.Reset = true
cfg.DisableBroadcast = true
cfg.GatewayAddresses = []string{target}
cfg.GtwConnTimeout = time.Second

Expand Down
Loading