Skip to content

Commit

Permalink
use constants instead of literals (cosmos#1206)
Browse files Browse the repository at this point in the history
closes: cosmos#349
  • Loading branch information
chandiniv1 authored Sep 27, 2023
1 parent 4303c73 commit 497c015
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 94 deletions.
121 changes: 65 additions & 56 deletions node/full_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ var expectedInfo = abci.ResponseInfo{
LastBlockHeight: 0,
}

const (
InitChain = "InitChain"
CheckTx = "CheckTx"
BeginBlock = "BeginBlock"
DeliverTx = "DeliverTx"
EndBlock = "EndBlock"
Commit = "Commit"
)

var mockTxProcessingTime = 10 * time.Millisecond

// copy-pasted from store/store_test.go
Expand Down Expand Up @@ -111,7 +120,7 @@ func getRPC(t *testing.T) (*mocks.Application, *FullClient) {
t.Helper()
require := require.New(t)
app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
key, _, _ := crypto.GenerateEd25519Key(crand.Reader)
signingKey, _, _ := crypto.GenerateEd25519Key(crand.Reader)
ctx := context.Background()
Expand Down Expand Up @@ -189,7 +198,7 @@ func TestCheckTx(t *testing.T) {
expectedTx := []byte("tx data")

mockApp, rpc := getRPC(t)
mockApp.On("CheckTx", abci.RequestCheckTx{Tx: expectedTx}).Once().Return(abci.ResponseCheckTx{})
mockApp.On(CheckTx, abci.RequestCheckTx{Tx: expectedTx}).Once().Return(abci.ResponseCheckTx{})

res, err := rpc.CheckTx(context.Background(), expectedTx)
assert.NoError(err)
Expand All @@ -210,7 +219,7 @@ func TestGenesisChunked(t *testing.T) {
}

mockApp := &mocks.Application{}
mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
mockApp.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
privKey, _, _ := crypto.GenerateEd25519Key(crand.Reader)
signingKey, _, _ := crypto.GenerateEd25519Key(crand.Reader)
n, _ := newFullNode(context.Background(), config.NodeConfig{DALayer: "mock"}, privKey, signingKey, proxy.NewLocalClientCreator(mockApp), genDoc, log.TestingLogger())
Expand Down Expand Up @@ -245,7 +254,7 @@ func TestBroadcastTxAsync(t *testing.T) {
expectedTx := []byte("tx data")

mockApp, rpc := getRPC(t)
mockApp.On("CheckTx", abci.RequestCheckTx{Tx: expectedTx}).Return(abci.ResponseCheckTx{})
mockApp.On(CheckTx, abci.RequestCheckTx{Tx: expectedTx}).Return(abci.ResponseCheckTx{})

err := rpc.node.Start()
require.NoError(t, err)
Expand Down Expand Up @@ -285,7 +294,7 @@ func TestBroadcastTxSync(t *testing.T) {
defer func() {
assert.NoError(rpc.node.Stop())
}()
mockApp.On("CheckTx", abci.RequestCheckTx{Tx: expectedTx}).Return(expectedResponse)
mockApp.On(CheckTx, abci.RequestCheckTx{Tx: expectedTx}).Return(expectedResponse)

res, err := rpc.BroadcastTxSync(context.Background(), expectedTx)
assert.NoError(err)
Expand Down Expand Up @@ -325,9 +334,9 @@ func TestBroadcastTxCommit(t *testing.T) {
}

mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.BeginBlock(abci.RequestBeginBlock{})
mockApp.On("CheckTx", abci.RequestCheckTx{Tx: expectedTx}).Return(expectedCheckResp)
mockApp.On(CheckTx, abci.RequestCheckTx{Tx: expectedTx}).Return(expectedCheckResp)

// in order to broadcast, the node must be started
err := rpc.node.Start()
Expand Down Expand Up @@ -359,10 +368,10 @@ func TestGetBlock(t *testing.T) {
require := require.New(t)

mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

err := rpc.node.Start()
require.NoError(err)
Expand All @@ -385,8 +394,8 @@ func TestGetCommit(t *testing.T) {
require := require.New(t)
assert := assert.New(t)
mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

blocks := []*types.Block{getRandomBlock(1, 5), getRandomBlock(2, 6), getRandomBlock(3, 8), getRandomBlock(4, 10)}

Expand Down Expand Up @@ -422,8 +431,8 @@ func TestBlockSearch(t *testing.T) {
require := require.New(t)
assert := assert.New(t)
mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

heights := []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
for _, h := range heights {
Expand Down Expand Up @@ -480,10 +489,10 @@ func TestGetBlockByHash(t *testing.T) {
require := require.New(t)

mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

err := rpc.node.Start()
require.NoError(err)
Expand Down Expand Up @@ -516,7 +525,7 @@ func TestTx(t *testing.T) {
require := require.New(t)

mockApp := &mocks.Application{}
mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
mockApp.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
key, _, _ := crypto.GenerateEd25519Key(crand.Reader)
genesisValidators, signingKey := getGenesisValidatorSetWithSigner(1)
node, err := newFullNode(context.Background(), config.NodeConfig{
Expand All @@ -533,11 +542,11 @@ func TestTx(t *testing.T) {

rpc := NewFullClient(node)
require.NotNil(rpc)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{})
mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(DeliverTx, mock.Anything).Return(abci.ResponseDeliverTx{})
mockApp.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})

err = rpc.node.Start()
require.NoError(err)
Expand Down Expand Up @@ -587,8 +596,8 @@ func TestUnconfirmedTxs(t *testing.T) {
require := require.New(t)

mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})

err := rpc.node.Start()
require.NoError(err)
Expand Down Expand Up @@ -626,8 +635,8 @@ func TestUnconfirmedTxsLimit(t *testing.T) {
require := require.New(t)

mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})

err := rpc.node.Start()
require.NoError(err)
Expand Down Expand Up @@ -678,8 +687,8 @@ func TestBlockchainInfo(t *testing.T) {
require := require.New(t)
assert := assert.New(t)
mockApp, rpc := getRPC(t)
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

heights := []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
for _, h := range heights {
Expand Down Expand Up @@ -836,23 +845,23 @@ func checkValSetLatest(rpc *FullClient, assert *assert.Assertions, lastBlockHeig

func createApp(require *require.Assertions, vKeyToRemove cmcrypto.PrivKey, wg *sync.WaitGroup) *mocks.Application {
app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
app.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
app.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
app.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
app.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

pbValKey, err := encoding.PubKeyToProto(vKeyToRemove.PubKey())
require.NoError(err)

app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{}).Times(2)
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{ValidatorUpdates: []abci.ValidatorUpdate{{PubKey: pbValKey, Power: 0}}}).Once()
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{}).Once()
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{ValidatorUpdates: []abci.ValidatorUpdate{{PubKey: pbValKey, Power: 100}}}).Once()
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{}).Times(5)
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{}).Run(func(args mock.Arguments) {
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{}).Times(2)
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{ValidatorUpdates: []abci.ValidatorUpdate{{PubKey: pbValKey, Power: 0}}}).Once()
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{}).Once()
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{ValidatorUpdates: []abci.ValidatorUpdate{{PubKey: pbValKey, Power: 100}}}).Once()
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{}).Times(5)
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{}).Run(func(args mock.Arguments) {
wg.Done()
}).Once()
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
return app
}

Expand Down Expand Up @@ -915,9 +924,9 @@ func TestMempool2Nodes(t *testing.T) {
require := require.New(t)

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On("CheckTx", abci.RequestCheckTx{Tx: []byte("bad")}).Return(abci.ResponseCheckTx{Code: 1})
app.On("CheckTx", abci.RequestCheckTx{Tx: []byte("good")}).Return(abci.ResponseCheckTx{Code: 0})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
app.On(CheckTx, abci.RequestCheckTx{Tx: []byte("bad")}).Return(abci.ResponseCheckTx{Code: 1})
app.On(CheckTx, abci.RequestCheckTx{Tx: []byte("good")}).Return(abci.ResponseCheckTx{Code: 0})
key1, _, _ := crypto.GenerateEd25519Key(crand.Reader)
key2, _, _ := crypto.GenerateEd25519Key(crand.Reader)
signingKey1, _, _ := crypto.GenerateEd25519Key(crand.Reader)
Expand All @@ -926,10 +935,10 @@ func TestMempool2Nodes(t *testing.T) {
id1, err := peer.IDFromPrivateKey(key1)
require.NoError(err)

app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
app.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
app.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{})
app.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
app.On(Commit, mock.Anything).Return(abci.ResponseCommit{})
app.On(DeliverTx, mock.Anything).Return(abci.ResponseDeliverTx{})

ctx, cancel := context.WithCancel(context.Background())
defer cancel()
Expand Down Expand Up @@ -1005,7 +1014,7 @@ func TestStatus(t *testing.T) {
require := require.New(t)

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
key, _, _ := crypto.GenerateEd25519Key(crand.Reader)
signingKey, _, _ := crypto.GenerateEd25519Key(crand.Reader)

Expand Down Expand Up @@ -1130,15 +1139,15 @@ func TestFutureGenesisTime(t *testing.T) {
wg := sync.WaitGroup{}
wg.Add(1)
mockApp := &mocks.Application{}
mockApp.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
mockApp.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{}).Run(func(_ mock.Arguments) {
mockApp.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
mockApp.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{}).Run(func(_ mock.Arguments) {
beginBlockTime = time.Now()
wg.Done()
})
mockApp.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
mockApp.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{})
mockApp.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
mockApp.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
mockApp.On(Commit, mock.Anything).Return(abci.ResponseCommit{})
mockApp.On(DeliverTx, mock.Anything).Return(abci.ResponseDeliverTx{})
mockApp.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
key, _, _ := crypto.GenerateEd25519Key(crand.Reader)
genesisValidators, signingKey := getGenesisValidatorSetWithSigner(1)
genesisTime := time.Now().Local().Add(time.Second * time.Duration(1))
Expand Down
48 changes: 24 additions & 24 deletions node/full_node_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func TestAggregatorMode(t *testing.T) {
require := require.New(t)

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
app.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{})
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
app.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
app.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
app.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
app.On(DeliverTx, mock.Anything).Return(abci.ResponseDeliverTx{})
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
app.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

key, _, _ := crypto.GenerateEd25519Key(rand.Reader)
anotherKey, _, _ := crypto.GenerateEd25519Key(rand.Reader)
Expand Down Expand Up @@ -95,11 +95,11 @@ func TestTxGossipingAndAggregation(t *testing.T) {
aggApp := apps[0]
apps = apps[1:]

aggApp.AssertNumberOfCalls(t, "DeliverTx", clientNodes)
aggApp.AssertNumberOfCalls(t, DeliverTx, clientNodes)
aggApp.AssertExpectations(t)

for i, app := range apps {
app.AssertNumberOfCalls(t, "DeliverTx", clientNodes)
app.AssertNumberOfCalls(t, DeliverTx, clientNodes)
app.AssertExpectations(t)

// assert that we have most of the blocks from aggregator
Expand All @@ -108,11 +108,11 @@ func TestTxGossipingAndAggregation(t *testing.T) {
commitCnt := 0
for _, call := range app.Calls {
switch call.Method {
case "BeginBlock":
case BeginBlock:
beginCnt++
case "EndBlock":
case EndBlock:
endCnt++
case "Commit":
case Commit:
commitCnt++
}
}
Expand All @@ -138,12 +138,12 @@ func TestLazyAggregator(t *testing.T) {
require := require.New(t)

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
app.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{})
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
app.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
app.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
app.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
app.On(DeliverTx, mock.Anything).Return(abci.ResponseDeliverTx{})
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
app.On(Commit, mock.Anything).Return(abci.ResponseCommit{})

key, _, _ := crypto.GenerateEd25519Key(rand.Reader)
genesisValidators, signingKey := getGenesisValidatorSetWithSigner(1)
Expand Down Expand Up @@ -466,7 +466,7 @@ func startNodes(nodes []*FullNode, apps []*mocks.Application, t *testing.T) {
matcher := mock.MatchedBy(func(i interface{}) bool { return true })
err := testutils.Retry(300, 100*time.Millisecond, func() error {
for i := 0; i < len(apps); i++ {
if !apps[i].AssertCalled(m, "DeliverTx", matcher) {
if !apps[i].AssertCalled(m, DeliverTx, matcher) {
return errors.New("DeliverTx hasn't been called yet")
}
}
Expand Down Expand Up @@ -542,12 +542,12 @@ func createNode(ctx context.Context, n int, aggregator bool, isLight bool, keys
p2pConfig.Seeds = strings.TrimSuffix(p2pConfig.Seeds, ",")

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
app.On("BeginBlock", mock.Anything).Return(abci.ResponseBeginBlock{})
app.On("EndBlock", mock.Anything).Return(abci.ResponseEndBlock{})
app.On("Commit", mock.Anything).Return(abci.ResponseCommit{})
app.On("DeliverTx", mock.Anything).Return(abci.ResponseDeliverTx{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
app.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
app.On(BeginBlock, mock.Anything).Return(abci.ResponseBeginBlock{})
app.On(EndBlock, mock.Anything).Return(abci.ResponseEndBlock{})
app.On(Commit, mock.Anything).Return(abci.ResponseCommit{})
app.On(DeliverTx, mock.Anything).Return(abci.ResponseDeliverTx{})

if ctx == nil {
ctx = context.Background()
Expand Down
6 changes: 3 additions & 3 deletions node/full_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestStartup(t *testing.T) {
require := require.New(t)

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
key, _, _ := crypto.GenerateEd25519Key(rand.Reader)
signingKey, _, _ := crypto.GenerateEd25519Key(rand.Reader)
ctx, cancel := context.WithCancel(context.Background())
Expand All @@ -55,8 +55,8 @@ func TestMempoolDirectly(t *testing.T) {
require := require.New(t)

app := &mocks.Application{}
app.On("InitChain", mock.Anything).Return(abci.ResponseInitChain{})
app.On("CheckTx", mock.Anything).Return(abci.ResponseCheckTx{})
app.On(InitChain, mock.Anything).Return(abci.ResponseInitChain{})
app.On(CheckTx, mock.Anything).Return(abci.ResponseCheckTx{})
key, _, _ := crypto.GenerateEd25519Key(rand.Reader)
signingKey, _, _ := crypto.GenerateEd25519Key(rand.Reader)
anotherKey, _, _ := crypto.GenerateEd25519Key(rand.Reader)
Expand Down
Loading

0 comments on commit 497c015

Please sign in to comment.