forked from tendermint/tendermint
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* limit gas used * limit gas used * limit gas used * add log for limit gas used * limit gas used * optimize flag * optimize flag * fix ut * fix ut * fix ut
- Loading branch information
1 parent
68d67ac
commit cefe132
Showing
6 changed files
with
76 additions
and
0 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
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,33 @@ | ||
package mempool | ||
|
||
import abci "github.com/tendermint/tendermint/abci/types" | ||
|
||
// SimulationResponse defines the response generated when a transaction is successfully | ||
// simulated by the Baseapp. | ||
type SimulationResponse struct { | ||
GasInfo | ||
Result *Result | ||
} | ||
|
||
// GasInfo defines tx execution gas context. | ||
type GasInfo struct { | ||
// GasWanted is the maximum units of work we allow this tx to perform. | ||
GasWanted uint64 | ||
|
||
// GasUsed is the amount of gas actually consumed. | ||
GasUsed uint64 | ||
} | ||
|
||
// Result is the union of ResponseFormat and ResponseCheckTx. | ||
type Result struct { | ||
// Data is any data returned from message or handler execution. It MUST be length | ||
// prefixed in order to separate data from multiple message executions. | ||
Data []byte | ||
|
||
// Log contains the log information from message or handler execution. | ||
Log string | ||
|
||
// Events contains a slice of Event objects that were emitted during message or | ||
// handler execution. | ||
Events []abci.Event | ||
} |
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