clean up kvstore example

This commit is contained in:
Callum Waters
2022-09-29 09:58:23 +02:00
parent e35b57dc4e
commit 2dfcbcc310
9 changed files with 394 additions and 342 deletions
+3 -3
View File
@@ -319,7 +319,7 @@ func cmdTest(cmd *cobra.Command, args []string) error {
return servertest.FinalizeBlock(ctx, client, [][]byte{
[]byte("abc"),
}, []uint32{
kvstore.CodeTypeBadNonce,
kvstore.CodeTypeInvalidTxFormat,
}, nil, nil)
},
func() error { return servertest.Commit(ctx, client) },
@@ -340,12 +340,12 @@ func cmdTest(cmd *cobra.Command, args []string) error {
{0x00, 0x00, 0x04},
{0x00, 0x00, 0x06},
}, []uint32{
kvstore.CodeTypeBadNonce,
kvstore.CodeTypeInvalidTxFormat,
kvstore.CodeTypeOK,
kvstore.CodeTypeOK,
kvstore.CodeTypeOK,
kvstore.CodeTypeOK,
kvstore.CodeTypeBadNonce,
kvstore.CodeTypeInvalidTxFormat,
}, nil, []byte{0, 0, 0, 0, 0, 0, 0, 5})
},
func() error { return servertest.Commit(ctx, client) },