Commit Graph

23 Commits

Author SHA1 Message Date
62f97a69e9 abci: Refactor CheckTx to notify of recheck (#3744)
As per #2127, this refactors the RequestCheckTx ProtoBuf struct to allow for a flag indicating whether a query is a recheck or not (and allows for possible future, more nuanced states).

In order to pass this extended information through to the ABCI app, the proxy.AppConnMempool (and, for consistency, the proxy.AppConnConsensus) interface seems to need to be refactored along with abcicli.Client.

And, as per this comment, I've made the following modification to the protobuf definition for the RequestCheckTx structure:

enum CheckTxType {
  New = 0;
  Recheck = 1;
}

message RequestCheckTx {
  bytes tx = 1;
  CheckTxType type = 2;
}

* Refactor ABCI CheckTx to notify of recheck

As per #2127, this refactors the `RequestCheckTx` ProtoBuf struct to allow for:

1. a flag indicating whether a query is a recheck or not (and allows for
   possible future, more nuanced states)
2. an `additional_data` bytes array to provide information for those more
   nuanced states.

In order to pass this extended information through to the ABCI app, the
`proxy.AppConnMempool` (and, for consistency, the
`proxy.AppConnConsensus`) interface seems to need to be refactored.

Commits:

* Fix linting issue

* Add CHANGELOG_PENDING entry

* Remove extraneous explicit initialization

* Update ABCI spec doc to include new CheckTx params

* Rename method param for consistency

* Rename CheckTxType enum values and remove additional_data param
2019-07-02 18:14:53 +04:00
a605b66c5a Move abci imports 2018-06-22 07:28:07 +02:00
1e19860585 fixes from my own review 2017-11-29 14:24:18 -06:00
f65e357d2b adapt Tendermint to new abci.Client interface
which was introduced in https://github.com/tendermint/abci/pull/130
2017-11-29 14:23:44 -06:00
8311f5c611 abci.Info takes a struct; less merkleeyes 2017-09-22 11:42:40 -04:00
1af930441c Support new Query message for proofs 2017-01-28 08:27:13 -08:00
94b6dd65ee AppendTx -> DeliverTx 2017-01-12 15:55:03 -05:00
c147b41013 TMSP -> ABCI 2017-01-12 15:53:32 -05:00
2dd7030579 tmsp: ResponseInfo and ResponseEndBlock 2017-01-12 15:21:20 -05:00
fb9735ef46 rebase fixes and BeginBlock(hash,header) 2016-11-16 13:25:13 -05:00
a0e4253edc handshake 2016-11-16 13:25:13 -05:00
c3d5634efa begin block 2016-11-16 13:23:57 -05:00
72c44efd84 fix query conn 2016-08-25 14:16:28 -04:00
3a7ee13ece proxy: typed app conns 2016-08-24 01:45:45 -04:00
a8ee0377d5 Use tmsp.Client interface 2016-03-24 10:42:05 -07:00
8183e3201b CommitSync() returns tmsp.Result 2016-03-23 02:49:30 -07:00
18d0da4ea3 Remove BeginBlock 2016-03-06 18:02:29 -08:00
16437867ff Starting to use tmsp.BlockchainAware 2016-03-05 20:57:36 -08:00
a6d37a49a2 s/GetHash/Commit/g 2016-02-14 13:11:01 -08:00
a4f57e164b BroadcastTx results 2016-02-08 00:48:58 -08:00
236c7afe9e Conform to TMSP v0.2 2016-01-25 14:34:08 -08:00
26d64208d1 Use TMSPClient 2016-01-22 15:48:13 -08:00
3e3c0083c7 Make order be decided first; Remove TMSP Commit/Rollback 2016-01-08 16:51:20 -08:00