-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap
PayForMessage
s in order to remove WirePayForMessage
from the…
… mempool (#149) * register standard interface types while creating encoding config * implement and add the child tx decoder * linter: handle error * update to the latest verison of celestia-core * use a specific commit instead of a branch to not confuse go * patch copy bug and add test to double check that protobuf bug * use latest version of celestia-core
- Loading branch information
1 parent
3192328
commit 1fcccc4
Showing
7 changed files
with
97 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package app | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
coretypes "github.com/tendermint/tendermint/types" | ||
) | ||
|
||
func ChildTxDecoder(dec sdk.TxDecoder) sdk.TxDecoder { | ||
return func(txBytes []byte) (sdk.Tx, error) { | ||
if _, childTx, has := coretypes.DecodeChildTx(txBytes); has { | ||
return dec(childTx) | ||
} | ||
return dec(txBytes) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters