extract tags from DeliverTx/Result

and send them along with predefined
This commit is contained in:
Anton Kaliaev
2017-11-29 14:23:43 -06:00
parent f233cde9a9
commit a52cdbfe43
8 changed files with 28 additions and 13 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ func TestABCIResponsesSaveLoad(t *testing.T) {
// build mock responses
block := makeBlock(2, state)
abciResponses := NewABCIResponses(block)
abciResponses.DeliverTx[0] = &abci.ResponseDeliverTx{Data: []byte("foo")}
abciResponses.DeliverTx[1] = &abci.ResponseDeliverTx{Data: []byte("bar"), Log: "ok"}
abciResponses.DeliverTx[0] = &abci.ResponseDeliverTx{Data: []byte("foo"), Tags: []*abci.KVPair{}}
abciResponses.DeliverTx[1] = &abci.ResponseDeliverTx{Data: []byte("bar"), Log: "ok", Tags: []*abci.KVPair{}}
abciResponses.EndBlock = abci.ResponseEndBlock{Diffs: []*abci.Validator{
{
PubKey: crypto.GenPrivKeyEd25519().PubKey().Bytes(),