-
Notifications
You must be signed in to change notification settings - Fork 28
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!: replace a some same proto message to Tendermint #546
Conversation
(cherry picked from commit 1eeb90f)
* abci -> ocabci * tmabci -> abci
…`AuthSigMessage` of `ostracon/p2p/conn`
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #546 +/- ##
==========================================
+ Coverage 66.10% 66.15% +0.05%
==========================================
Files 278 278
Lines 36981 36943 -38
==========================================
- Hits 24445 24439 -6
+ Misses 10778 10749 -29
+ Partials 1758 1755 -3
|
- ValidatorSet, Validator, SimpleValidator
…nt proto. - abci.RequestInitChain - abci.ResponseEndBlock - abci.LastCommitInfo - abci.Validator - abci.ValidatorUpdate - abci.VoterInfo - state.ValidatorsInfo
…rmint proto. - privval.PubKeyResponse - types.Commit
- abci.Evidence
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.
LGTM
Apply feed-back Co-authored-by: Toshimasa Nasu <toshimasa_nasu@hotmail.com>
chore: apply feed-back Co-authored-by: Toshimasa Nasu <toshimasa_nasu@hotmail.com>
OK, If then, @tnasu , is it ok to change all Other than the ones you pointed out, they are included in the list below.
Next files has just ostracon's
|
I've checked the below with
And I've also the below with
|
#869) * feat!: apply the changes of Finschia/ostracon#546 - (replace a some same proto message to Tendermint ) * chore: fix lint error * chore: add changelog * chore: add more unittest * chore: increase upgrade_height of cosmovisor test. (5->20) * fix: test-cosmovisor error * chore: apply feedback of review. * docs: update proto format and related document.
* Switch to default/ocabci: #546 (comment) * Switch to bcproto/ocbcproto: #546 (comment) * Switch to bcproto/ocbcproto: #546 (comment) * Switch to types/octypes: #546 (comment) * Revert to privvalproto * Format import * Add test for codecov
Abstract
This PR remove a same proto messages with Tendemrint in proto file and change to import tendermint lib.
Background
Like #543 , Ostracon should be as compatible as possible with IBC and Cosmos-SDK. And among the proto messages, the same things as Tendermint are re-defined and used as Ostracon proto. Due to these parts, it is very difficult to be compatible with IBC and Cosmos-SDK. Therefore, it is necessary to use Tendermint proto message as identifical as possible.
Detail Changes
Changed
This change is based on Tendermint v0.34.19.
The following proto messages are removed and change to reference Tendermint proto message.
abci/types.proto
RequestEcho
,RequestFlush
,RequestInfo
,RequestSetOption
,RequestInitChain
,RequestQuery
,RequestCheckTx
,RequestDeliverTx
,RequestEndBlock
,RequestCommit
,RequestListSnapshots
,RequestOfferSnapshot
,RequestLoadSnapshotChunk
,RequestApplySnapshotChunk
ResponseException
,ResponseEcho
,ResponseFlush
,ResponseInfo
,ResponseSetOption
,ResponseInitChain
,ResponseQuery
,ResponseBeginBlock
,ResponseDeliverTx
,ResponseEndBlock
,ResponseCommit
,ResponseListSnapshots
,ResponseOfferSnapshot
,ResponseLoadSnapshotChunk
,ResponseApplySnapshotChunk
enum CheckTxType
,enum Result
ConsensusParams
,BlockParams
,LastCommitInfo
,Event
,EventAttribute
,TxResult
Validator
,ValidatorUpdate
,VoteInfo
,EvidenceType
,Evidence
,Snapshot
blockchain/types.proto
BlockRequest
,NoBlockResponse
,StatusRequest
,StatusResponse
privval/types.proto
enum Errors
RemoteSignerError
,PubKeyRequest
,PubKeyResponse
,SignVoteRequest
,SignedVoteResponse
,SignProposalRequest
,SignedProposalResponse
,PingRequest
,PingResponse
state/types.proto
ValidatorsInfo
,ConsensusParamsInfo
,Version
types/types.proto
enum BlockIDFlag
,enum SignedMsgType
,PartSetHeader
,Part
,BlockID
,Data
,Vote
,Commit
,CommitSig
,Proposal
,TxProof
Removed
The following proto file is removed. Because all proto messages is same with Tendermint.
consensus/types.proto
consensus/wal.proto
crypto/keys.proto
crypto/proof.proto
libs/bits/types.proto
mempool/types.proto
p2p/conn.proto
p2p/pex.proto
p2p/types.proto
statesync/types.proto
store/types.proto
types/canonical.proto
types/events.proto
types/params.proto
types/validator.proto
version/types.proto
Result
The following custom proto file remains. And the related file import path is changed.
abci/types.proto
RequestBeginBlock
andResponseCheckTx
are remained to support custom block header. AndRequestBeginRecheckTx
andRequestEndRecheckTx
request are added.blockchain/types.proto
privval/types.proto
rpc/grpc/types.proto
ResponseBroadcastTx
is changed to support custom block header.state/types.proto
State
for savinglast_proof_hash
types/block.proto
types/evidence.proto
LightClientAttackEvidence
is addedtypes/types.proto
SignedHeader
,LightBlock
andBlockMeta
for supporting custom block header.