Commit Graph

171 Commits

Author SHA1 Message Date
Sunny Aggarwal d666658ca9 Merge PR #2553: Renamed msg.Name() and msg.Type() to msg.Type() and msg.Route() 2018-10-23 21:23:55 +02:00
zhangzheng c653053cfb Merge PR #2468: fix bounds checking and missing return 2018-10-11 23:34:46 -04:00
Christopher Goes 17983460b8
Merge PR #2219: Update to Tendermint 0.24 (except NextValSet offsets) 2018-10-03 17:48:23 +02:00
Dev Ojha 145e06b85c Merge PR #2382: baseapp: Move code from setters.go to options.go 2018-09-26 21:17:46 +08:00
Dev Ojha b1583dd8c5 Merge PR #2383: baseapp: Move query tests to their own file 2018-09-26 21:16:50 +08:00
Dev Ojha 7823b9bb10 Merge PR #2366: baseapp: Automatically add action tags to messages 2018-09-21 23:54:32 +08:00
Alessio Treglia b74a6a9066 Merge PR #2328: Support min fees-based anti spam strategy 2018-09-19 23:25:52 +08:00
Dev Ojha 65137f6331 Merge PR #2343: Add a name field to the message type
This is to facillitate ease of implementing #1406. (Tags for messages
could then be added dynamically)

Ultimately once we make the router support hiearchical routing, (#770)
we can then remove the name field and just the parse info for tags from that.

Until then, we can parse the tag name as
`fmt.Sprintf("%s %s", msg.Type(), msg.Name())`
2018-09-17 22:34:06 +08:00
Dev Ojha 6b55093c75 Merge PR #2324: rename wire to codec
* rename wire to codec

* fix formatting and cli

* fix the docs
2018-09-13 14:17:32 -04:00
Rigel 5bf9401e87
Merge PR #2310: staking transient store for Tendermint Updates
* working

* non-tests compile

* fix mounting error, working on testing

* stumped using transient store

* joon comments

* remove old comments

* resolve ibc error

* lint/sim_test

* fix determinism sim test

* sim enable commit

* docs and pending
2018-09-13 00:53:55 -04:00
Christopher Goes e410a9e38a
Merge PR #1952: Update IAVL dependency for v0.10.0 2018-09-06 11:18:16 +02:00
ValarDragon ea01b91958 baseapp: Remove baseapp.SetTxDecoder()
Closes #1441
2018-09-03 22:53:07 -07:00
Jeremiah Andrews 2378e3431c Fix linter errors 2018-09-03 07:58:57 -07:00
Alessio Treglia 76a16ab288
Modify AnteHandler to take a simulate boolean parameter 2018-08-25 20:12:14 +01:00
Alessio Treglia 7e8feec738
Incorporating @cwgoes comments 2018-08-24 15:20:53 +01:00
Alessio Treglia e959478e61
comment getContextForAnte(), rename applyTxMode() 2018-08-24 10:16:51 +01:00
Alessio Treglia f432c0c383
Simulate transactions before actual execution
* Change --gas=0 semantic in order to enable gas auto estimate.
* REST clients have been modified to simulate the execution of
  the tx first to then populate the context with the estimated
  gas amount returned by the simulation.
* The simulation returns both an unadjusted gas estimate and an
  adjusted one. The adjustment is required to ensure that the
  ensuing execution doesn't fail due to state changes that might
  have occurred. Gas adjustment can be controlled via the CLI's
  --gas-adjustment flag.
* Tiny refactorig of REST endpoints error handling.

Closes: #1246
2018-08-24 10:16:51 +01:00
Sunny Aggarwal 5ae20d2d51 address Chris's comments 2018-08-22 00:15:18 -07:00
Sunny Aggarwal 44bf69e564 run queries against cachewrapped commit state, not checkstate 2018-08-22 00:15:18 -07:00
Sunny Aggarwal 97f7b88a9f addressed Jae's comments 2018-08-22 00:15:18 -07:00
Sunny Aggarwal 0134c3b7f1 Address Anton's comments 2018-08-22 00:15:18 -07:00
Sunny Aggarwal cc1d1fbcf7 moved queryrouter to behind baseapp seal 2018-08-22 00:12:44 -07:00
Sunny Aggarwal 804baa70f4 added querier to gov module 2018-08-22 00:12:44 -07:00
Sunny Aggarwal 1d1a95656a custom queriables 2018-08-22 00:11:23 -07:00
Christopher Goes 3d50567034
Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
Dev Ojha b2a4aecc44 Upgrade to tm version 23.0. (#1927)
* Start upgrade. Currently go test ./... hangs.

* (squash this) Fix staking tests

* wip

* note what changes need to be made to make this work on tm v0.23.0

* Fix addr -> pubkey map

* cleanup code

* Fix slashing test failures except for begin blocker

* fix all slashing tests

* fix lcd tests

* Address PR comments

* add link to changelog.

* (wip) start making addrToPubkey map persisted. Since amino can't handle maps,
we have to change from what this commit is doing.

* Use the correct method of storing a map

* (squash this) address PR comments

* Did you run 'make'?

* remove gaiadebug binary
2018-08-12 03:33:48 -04:00
Joon 7b54e4b786 Merge pull request #1812: Add BaseApp.Seal
* Merge pull request #1812: Add BaseApp.Seal

fix pow

move setter functions

apply requests

* fix errors

* fix test

* fix test

* changelog
2018-08-01 00:23:25 -04:00
Jeremiah Andrews 0166cf2aa0 Add test which fails without patch, comment on patch 2018-07-25 22:13:58 -07:00
Jeremiah Andrews 6ea0a1b66f fix gaiad export 2018-07-25 22:13:58 -07:00
Aditya Sripal 48885b4093 merge 2018-07-19 11:38:44 -07:00
Aditya Sripal 1e87b5e02e remove old comment 2018-07-19 11:36:36 -07:00
Aditya Sripal 5015c46e06 revert change to queryApp encoding 2018-07-19 11:35:31 -07:00
Joon aa525418e1 Merge PR #1373: Initialization of POS chain 2018-07-19 08:39:40 +02:00
Aditya Sripal 218c9b3702 Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into aditya/cleanup 2018-07-18 17:48:15 -07:00
Christopher Goes cbf432d34c
Merge PR #1746: Remove ctx.IsCheckTx
* Remove ctx.IsCheckTx
* Changelog to Pending
* Typo
* Simulate instead of Check in SignCheckDeliver
* Add descriptive comment
* Change to 'CheckTx implements ABCI'
* Alphabetize changelog
2018-07-19 02:42:19 +02:00
Aditya Sripal 46b87666bd fmt 2018-07-18 16:34:15 -07:00
Aditya Sripal 81f3e794fe make breaking changes 2018-07-18 16:24:16 -07:00
Dev Ojha f88d64499d Merge PR #1705: baseapp: Allow alphanumerics in routes
Previously only alphabetic characters were allowed.
2018-07-17 23:11:34 +02:00
Aditya Sripal aa3a64d289 Test recover in ante 2018-07-13 10:53:12 -07:00
Aditya Sripal 4751727351 fmt 2018-07-12 19:06:54 -07:00
Aditya Sripal 98c19516c5 merge 2018-07-12 18:34:54 -07:00
Aditya Sripal fa31165438 Refactor BaseApp without breaking change 2018-07-12 18:32:48 -07:00
Jeremiah Andrews 43b9cc6df0 Merge PR #1533: Pruning Cleanup 2018-07-13 03:20:26 +02:00
Alexander Bezobchuk 5983a07fb6 Merge PR #1599: Implementation of TraceKVStore 2018-07-13 01:58:51 +02:00
Jeremiah Andrews 338c7b5e4c Merge pull request #1603: Adding option functions to NewBaseApp
* adding option functions to baseapp constructor

* Added simple test and changed godoc

* remove unrelated changelog updates
2018-07-10 15:10:59 -04:00
ValarDragon 985037d2bd Fix unformatted files 2018-07-09 22:08:01 -07:00
mossid 4761612288 Merge pull request #1400: Cleanup Baseapp
fix lint

apply requests

revert removing newCtx

refactor

fix errors
2018-07-09 23:59:30 -04:00
Christopher Goes 5a56c3f03d
Merge PR #1575: ready-for-review: sdk.AccAddress natively bech32 2018-07-10 04:18:23 +02:00
ValarDragon 30c4abb394 Fix golint error 2018-07-09 16:27:51 -07:00
ValarDragon 472e168a72 Minor refactor to reduce complexity, add nolint 2018-07-09 16:24:20 -07:00