Skip to content

Commit 4d2f90d

Browse files
Remove IssueStopVertex message (#1419)
1 parent 59ba604 commit 4d2f90d

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

snow/engine/common/message.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ const (
2121
// StateSyncDone notifies the state syncer engine that the VM has finishing
2222
// syncing the requested state summary.
2323
StateSyncDone
24-
25-
// StopVertex notifies a consensus that it has a pending stop vertex
26-
StopVertex
2724
)
2825

2926
func (msg Message) String() string {
@@ -32,8 +29,6 @@ func (msg Message) String() string {
3229
return "Pending Transactions"
3330
case StateSyncDone:
3431
return "State Sync Done"
35-
case StopVertex:
36-
return "Pending Stop Vertex"
3732
default:
3833
return fmt.Sprintf("Unknown Message: %d", msg)
3934
}

vms/avm/client.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ type Client interface {
4444
ConfirmTx(ctx context.Context, txID ids.ID, freq time.Duration, options ...rpc.Option) (choices.Status, error)
4545
// GetTx returns the byte representation of [txID]
4646
GetTx(ctx context.Context, txID ids.ID, options ...rpc.Option) ([]byte, error)
47-
// IssueStopVertex issues a stop vertex.
48-
IssueStopVertex(ctx context.Context, options ...rpc.Option) error
4947
// GetUTXOs returns the byte representation of the UTXOs controlled by [addrs]
5048
GetUTXOs(
5149
ctx context.Context,
@@ -282,10 +280,6 @@ func (c *client) IssueTx(ctx context.Context, txBytes []byte, options ...rpc.Opt
282280
return res.TxID, err
283281
}
284282

285-
func (c *client) IssueStopVertex(ctx context.Context, options ...rpc.Option) error {
286-
return c.requester.SendRequest(ctx, "avm.issueStopVertex", &struct{}{}, &struct{}{}, options...)
287-
}
288-
289283
func (c *client) GetTxStatus(ctx context.Context, txID ids.ID, options ...rpc.Option) (choices.Status, error) {
290284
res := &GetTxStatusReply{}
291285
err := c.requester.SendRequest(ctx, "avm.getTxStatus", &api.JSONTxID{

vms/avm/service.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,6 @@ func (s *Service) IssueTx(_ *http.Request, args *api.FormattedTx, reply *api.JSO
201201
return nil
202202
}
203203

204-
// TODO: After the chain is linearized, remove this.
205-
func (s *Service) IssueStopVertex(_ *http.Request, _, _ *struct{}) error {
206-
return s.vm.issueStopVertex()
207-
}
208-
209204
// GetTxStatusReply defines the GetTxStatus replies returned from the API
210205
type GetTxStatusReply struct {
211206
Status choices.Status `json:"status"`

vms/avm/vm.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -555,16 +555,6 @@ func (vm *VM) IssueTx(b []byte) (ids.ID, error) {
555555
return tx.ID(), nil
556556
}
557557

558-
// TODO: After the chain is linearized, remove this.
559-
func (vm *VM) issueStopVertex() error {
560-
select {
561-
case vm.toEngine <- common.StopVertex:
562-
default:
563-
vm.ctx.Log.Debug("dropping common.StopVertex message to engine due to contention")
564-
}
565-
return nil
566-
}
567-
568558
/*
569559
******************************************************************************
570560
********************************** Timer API *********************************

0 commit comments

Comments
 (0)