From 5ab4b9284bb01d6decdfbf46f00768813378179e Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 6 May 2020 16:00:16 +0300 Subject: [PATCH] core: remove unused function from tests --- pkg/core/helper_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/core/helper_test.go b/pkg/core/helper_test.go index 460735c31..575f3d038 100644 --- a/pkg/core/helper_test.go +++ b/pkg/core/helper_test.go @@ -14,7 +14,6 @@ import ( "github.com/nspcc-dev/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/internal/testchain" "github.com/nspcc-dev/neo-go/pkg/internal/testserdes" "github.com/nspcc-dev/neo-go/pkg/io" @@ -141,13 +140,6 @@ func newDumbBlock() *block.Block { } } -func getInvocationScript(data []byte, priv *keys.PrivateKey) []byte { - signature := priv.Sign(data) - buf := io.NewBufBinWriter() - emit.Bytes(buf.BinWriter, signature) - return buf.Bytes() -} - // This function generates "../rpc/testdata/testblocks.acc" file which contains data // for RPC unit tests. It also is a nice integration test. // To generate new "../rpc/testdata/testblocks.acc", follow the steps: