From dfe2377c048fc7bbac9431219a2ff83e1524480a Mon Sep 17 00:00:00 2001 From: Hleb Albau Date: Wed, 24 Oct 2018 15:24:54 +0300 Subject: [PATCH] #37 Create cyberd PoC based on Cosmos SDK --fix check tx influence on inmem storage --- cosmos/poc/app/handler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cosmos/poc/app/handler.go b/cosmos/poc/app/handler.go index 48aa7925..89e43823 100644 --- a/cosmos/poc/app/handler.go +++ b/cosmos/poc/app/handler.go @@ -16,6 +16,10 @@ func NewLinksHandler(cis CidIndexStorage, ls LinksStorage, imms *InMemoryStorage return func(ctx sdk.Context, msg sdk.Msg) sdk.Result { + if ctx.IsCheckTx() { + return sdk.Result{} + } + link := msg.(MsgLink) linkedCids := LinkedCids{