Skip to content

Commit

Permalink
[node-split] Remove invalid code for emitting event
Browse files Browse the repository at this point in the history
  • Loading branch information
jellonek committed Dec 14, 2024
1 parent c1615a0 commit 0b54bcd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/node/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/spacemeshos/go-spacemesh/api/node/models"
"github.com/spacemeshos/go-spacemesh/codec"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/events"
"github.com/spacemeshos/go-spacemesh/hare3"
"github.com/spacemeshos/go-spacemesh/p2p/pubsub"
)
Expand Down Expand Up @@ -187,11 +186,7 @@ func (s *Server) PostPublishProtocol(
if err != nil {
return nil, err
}
proposal := &types.Proposal{}
codec.MustDecode(blob, proposal)

events.EmitProposal(proposal.SmesherID, proposal.Layer, proposal.ID())
events.ReportProposal(events.ProposalCreated, proposal)
s.publisher.Publish(ctx, string(request.Protocol), blob)
return PostPublishProtocol200Response{}, nil
}
Expand Down

0 comments on commit 0b54bcd

Please sign in to comment.