consensus: remove debug test

This commit is contained in:
Evgenii Stratonikov 2020-04-22 15:39:40 +03:00
parent 1a54be279e
commit f50eaba202

View file

@ -1,8 +1,6 @@
package consensus package consensus
import ( import (
"encoding/hex"
"fmt"
"testing" "testing"
"github.com/nspcc-dev/dbft/block" "github.com/nspcc-dev/dbft/block"
@ -11,9 +9,7 @@ import (
"github.com/nspcc-dev/neo-go/pkg/core" "github.com/nspcc-dev/neo-go/pkg/core"
"github.com/nspcc-dev/neo-go/pkg/core/storage" "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/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/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/nspcc-dev/neo-go/pkg/internal/testchain" "github.com/nspcc-dev/neo-go/pkg/internal/testchain"
"github.com/nspcc-dev/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
@ -208,14 +204,6 @@ func newTestService(t *testing.T) *service {
return srv.(*service) return srv.(*service)
} }
func TestExport(t *testing.T) {
_, pub := getTestValidator(3)
s, _ := smartcontract.CreateMultiSigRedeemScript(1, keys.PublicKeys{pub.PublicKey})
fmt.Println(hex.EncodeToString(s))
u := hash.Hash160(s)
fmt.Println(address.Uint160ToString(u))
}
func getTestValidator(i int) (*privateKey, *publicKey) { func getTestValidator(i int) (*privateKey, *publicKey) {
key := testchain.PrivateKey(i) key := testchain.PrivateKey(i)
return &privateKey{PrivateKey: key}, &publicKey{PublicKey: key.PublicKey()} return &privateKey{PrivateKey: key}, &publicKey{PublicKey: key.PublicKey()}