-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [ADR-070] Unordered Transactions (1/2) #18641
Merged
Merged
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
22daac7
init commit
alexanderbez bd17641
updates
alexanderbez 990dd48
updates
alexanderbez 60a2d4a
updates
alexanderbez 03597f3
updates
alexanderbez 1e2254c
updates
alexanderbez bc35655
updates
alexanderbez 7a421d4
updates
alexanderbez 38f1ec4
updates
alexanderbez c573943
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez cded15e
updates
alexanderbez dbb80dd
updates
alexanderbez 86ba3fa
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez f88f383
updates
alexanderbez d265a13
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez deb44e1
updates
alexanderbez fb216de
updates
alexanderbez 6194fdb
lint++
alexanderbez 6c5f722
updates
alexanderbez d1a59f0
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez 975e224
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez 453e270
feat: [ADR-070] Unordered Transactions (2/2) (#18739)
alexanderbez 44b960b
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez be3cad7
fix TestUnknownFields by moving some_new_field to tag 5
facundomedica 11cddfe
add comment
facundomedica 7017fdd
Merge branch 'main' into bez/feature/unordered-txs
alexanderbez 4f1c992
cl++
alexanderbez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -36,6 +36,7 @@ type Factory struct { | |
gasAdjustment float64 | ||
chainID string | ||
fromName string | ||
unordered bool | ||
offline bool | ||
generateOnly bool | ||
memo string | ||
Comment on lines
36
to
42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the new |
||
|
@@ -86,6 +87,7 @@ func NewFactoryCLI(clientCtx client.Context, flagSet *pflag.FlagSet) (Factory, e | |
gasAdj := clientCtx.Viper.GetFloat64(flags.FlagGasAdjustment) | ||
memo := clientCtx.Viper.GetString(flags.FlagNote) | ||
timeoutHeight := clientCtx.Viper.GetUint64(flags.FlagTimeoutHeight) | ||
unordered := clientCtx.Viper.GetBool(flags.FlagUnordered) | ||
|
||
gasStr := clientCtx.Viper.GetString(flags.FlagGas) | ||
gasSetting, _ := flags.ParseGasSetting(gasStr) | ||
|
@@ -103,6 +105,7 @@ func NewFactoryCLI(clientCtx client.Context, flagSet *pflag.FlagSet) (Factory, e | |
accountNumber: accNum, | ||
sequence: accSeq, | ||
timeoutHeight: timeoutHeight, | ||
unordered: unordered, | ||
gasAdjustment: gasAdj, | ||
memo: memo, | ||
signMode: signMode, | ||
|
@@ -132,6 +135,7 @@ func (f Factory) Fees() sdk.Coins { return f.fees } | |
func (f Factory) GasPrices() sdk.DecCoins { return f.gasPrices } | ||
func (f Factory) AccountRetriever() client.AccountRetriever { return f.accountRetriever } | ||
func (f Factory) TimeoutHeight() uint64 { return f.timeoutHeight } | ||
func (f Factory) Unordered() bool { return f.unordered } | ||
func (f Factory) FromName() string { return f.fromName } | ||
|
||
// SimulateAndExecute returns the option to simulate and then execute the transaction | ||
|
@@ -245,6 +249,12 @@ func (f Factory) WithTimeoutHeight(height uint64) Factory { | |
return f | ||
} | ||
|
||
// WithUnordered returns a copy of the Factory with an updated unordered field. | ||
func (f Factory) WithUnordered(v bool) Factory { | ||
f.unordered = v | ||
return f | ||
} | ||
|
||
// WithFeeGranter returns a copy of the Factory with an updated fee granter. | ||
func (f Factory) WithFeeGranter(fg sdk.AccAddress) Factory { | ||
f.feeGranter = fg | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the
UnorderedTxManager
is properly initialized in theApp
constructor, as failure to do so will result in a panic. This is a critical step for the unordered transactions feature to function correctly.