Skip to content

Commit

Permalink
remove context.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman committed Jan 28, 2025
1 parent b4b1be6 commit 673eafd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion vms/example/xsvm/execute/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ func (t *Tx) Import(i *tx.Import) error {
}

return message.Signature.Verify(
t.Context,
&message.UnsignedMessage,
t.ChainContext.NetworkID,
validators,
Expand Down
1 change: 0 additions & 1 deletion vms/platformvm/txs/executor/warp_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (w *warpVerifier) verify(message []byte) error {
}

return msg.Signature.Verify(
w.context,
&msg.UnsignedMessage,
w.networkID,
validators,
Expand Down
3 changes: 0 additions & 3 deletions vms/platformvm/warp/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package warp

import (
"context"
"errors"
"fmt"
"math/big"
Expand Down Expand Up @@ -36,7 +35,6 @@ type Signature interface {
//
// Invariant: [msg] is correctly initialized.
Verify(
ctx context.Context,
msg *UnsignedMessage,
networkID uint32,
validators CanonicalValidatorSet,
Expand Down Expand Up @@ -66,7 +64,6 @@ func (s *BitSetSignature) NumSigners() (int, error) {
}

func (s *BitSetSignature) Verify(
ctx context.Context,
msg *UnsignedMessage,
networkID uint32,
validators CanonicalValidatorSet,
Expand Down
1 change: 0 additions & 1 deletion vms/platformvm/warp/signature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@ func TestSignatureVerification(t *testing.T) {
}

err = msg.Signature.Verify(
context.Background(),
&msg.UnsignedMessage,
tt.networkID,
validators,
Expand Down

0 comments on commit 673eafd

Please sign in to comment.