diff --git a/Makefile b/Makefile index 8ca6886db..95b510964 100644 --- a/Makefile +++ b/Makefile @@ -68,9 +68,9 @@ proto-all: proto-gen proto-lint proto-check-breaking .PHONY: proto-all proto-gen: - @docker pull -q ostracondev/docker-build-proto + @docker pull -q tendermintdev/docker-build-proto @echo "Generating Protobuf files" - @docker run -v $(shell pwd):/workspace --workdir /workspace ostracondev/docker-build-proto sh ./scripts/protocgen.sh + @docker run -v $(shell pwd):/workspace --workdir /workspace tendermintdev/docker-build-proto sh ./scripts/protocgen.sh .PHONY: proto-gen proto-lint: diff --git a/abci/client/client.go b/abci/client/client.go index dd3b8a8b6..48ac778cc 100644 --- a/abci/client/client.go +++ b/abci/client/client.go @@ -9,6 +9,7 @@ import ( tmsync "github.com/line/ostracon/libs/sync" ) +//go:generate mockery --case underscore --name Client const ( dialRetryIntervalSeconds = 3 echoRetryIntervalSeconds = 1 @@ -36,6 +37,8 @@ type Client interface { InitChainAsync(types.RequestInitChain) *ReqRes BeginBlockAsync(types.RequestBeginBlock) *ReqRes EndBlockAsync(types.RequestEndBlock) *ReqRes + BeginRecheckTxAsync(types.RequestBeginRecheckTx) *ReqRes + EndRecheckTxAsync(types.RequestEndRecheckTx) *ReqRes ListSnapshotsAsync(types.RequestListSnapshots) *ReqRes OfferSnapshotAsync(types.RequestOfferSnapshot) *ReqRes LoadSnapshotChunkAsync(types.RequestLoadSnapshotChunk) *ReqRes @@ -52,6 +55,8 @@ type Client interface { InitChainSync(types.RequestInitChain) (*types.ResponseInitChain, error) BeginBlockSync(types.RequestBeginBlock) (*types.ResponseBeginBlock, error) EndBlockSync(types.RequestEndBlock) (*types.ResponseEndBlock, error) + BeginRecheckTxSync(types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) + EndRecheckTxSync(types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) ListSnapshotsSync(types.RequestListSnapshots) (*types.ResponseListSnapshots, error) OfferSnapshotSync(types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) LoadSnapshotChunkSync(types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) diff --git a/abci/client/grpc_client.go b/abci/client/grpc_client.go index a041c6523..605cb72a3 100644 --- a/abci/client/grpc_client.go +++ b/abci/client/grpc_client.go @@ -266,6 +266,24 @@ func (cli *grpcClient) EndBlockAsync(params types.RequestEndBlock) *ReqRes { return cli.finishAsyncCall(req, &types.Response{Value: &types.Response_EndBlock{EndBlock: res}}) } +func (cli *grpcClient) BeginRecheckTxAsync(params types.RequestBeginRecheckTx) *ReqRes { + req := types.ToRequestBeginRecheckTx(params) + res, err := cli.client.BeginRecheckTx(context.Background(), req.GetBeginRecheckTx(), grpc.WaitForReady(true)) + if err != nil { + cli.StopForError(err) + } + return cli.finishAsyncCall(req, &types.Response{Value: &types.Response_BeginRecheckTx{BeginRecheckTx: res}}) +} + +func (cli *grpcClient) EndRecheckTxAsync(params types.RequestEndRecheckTx) *ReqRes { + req := types.ToRequestEndRecheckTx(params) + res, err := cli.client.EndRecheckTx(context.Background(), req.GetEndRecheckTx(), grpc.WaitForReady(true)) + if err != nil { + cli.StopForError(err) + } + return cli.finishAsyncCall(req, &types.Response{Value: &types.Response_EndRecheckTx{EndRecheckTx: res}}) +} + func (cli *grpcClient) ListSnapshotsAsync(params types.RequestListSnapshots) *ReqRes { req := types.ToRequestListSnapshots(params) res, err := cli.client.ListSnapshots(context.Background(), req.GetListSnapshots(), grpc.WaitForReady(true)) @@ -396,6 +414,16 @@ func (cli *grpcClient) EndBlockSync(params types.RequestEndBlock) (*types.Respon return cli.finishSyncCall(reqres).GetEndBlock(), cli.Error() } +func (cli *grpcClient) BeginRecheckTxSync(params types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { + reqres := cli.BeginRecheckTxAsync(params) + return reqres.Response.GetBeginRecheckTx(), cli.Error() +} + +func (cli *grpcClient) EndRecheckTxSync(params types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { + reqres := cli.EndRecheckTxAsync(params) + return reqres.Response.GetEndRecheckTx(), cli.Error() +} + func (cli *grpcClient) ListSnapshotsSync(params types.RequestListSnapshots) (*types.ResponseListSnapshots, error) { reqres := cli.ListSnapshotsAsync(params) return cli.finishSyncCall(reqres).GetListSnapshots(), cli.Error() diff --git a/abci/client/local_client.go b/abci/client/local_client.go index 5bc0ec0fb..9737453ab 100644 --- a/abci/client/local_client.go +++ b/abci/client/local_client.go @@ -92,9 +92,8 @@ func (app *localClient) DeliverTxAsync(params types.RequestDeliverTx) *ReqRes { } func (app *localClient) CheckTxAsync(req types.RequestCheckTx) *ReqRes { - app.mtx.Lock() - defer app.mtx.Unlock() - + // CONTRACT: Application should handle concurrent `CheckTx` + // In this abci client layer, we don't protect `CheckTx` with a mutex for concurrency res := app.Application.CheckTx(req) return app.callback( types.ToRequestCheckTx(req), @@ -157,6 +156,28 @@ func (app *localClient) EndBlockAsync(req types.RequestEndBlock) *ReqRes { ) } +func (app *localClient) BeginRecheckTxAsync(req types.RequestBeginRecheckTx) *ReqRes { + app.mtx.Lock() + defer app.mtx.Unlock() + + res := app.Application.BeginRecheckTx(req) + return app.callback( + types.ToRequestBeginRecheckTx(req), + types.ToResponseBeginRecheckTx(res), + ) +} + +func (app *localClient) EndRecheckTxAsync(req types.RequestEndRecheckTx) *ReqRes { + app.mtx.Lock() + defer app.mtx.Unlock() + + res := app.Application.EndRecheckTx(req) + return app.callback( + types.ToRequestEndRecheckTx(req), + types.ToResponseEndRecheckTx(res), + ) +} + func (app *localClient) ListSnapshotsAsync(req types.RequestListSnapshots) *ReqRes { app.mtx.Lock() defer app.mtx.Unlock() @@ -236,9 +257,8 @@ func (app *localClient) DeliverTxSync(req types.RequestDeliverTx) (*types.Respon } func (app *localClient) CheckTxSync(req types.RequestCheckTx) (*types.ResponseCheckTx, error) { - app.mtx.Lock() - defer app.mtx.Unlock() - + // CONTRACT: Application should handle concurrent `CheckTx` + // In this abci client layer, we don't protect `CheckTx` with a mutex for concurrency res := app.Application.CheckTx(req) return &res, nil } @@ -283,6 +303,22 @@ func (app *localClient) EndBlockSync(req types.RequestEndBlock) (*types.Response return &res, nil } +func (app *localClient) BeginRecheckTxSync(req types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { + app.mtx.Lock() + defer app.mtx.Unlock() + + res := app.Application.BeginRecheckTx(req) + return &res, nil +} + +func (app *localClient) EndRecheckTxSync(req types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { + app.mtx.Lock() + defer app.mtx.Unlock() + + res := app.Application.EndRecheckTx(req) + return &res, nil +} + func (app *localClient) ListSnapshotsSync(req types.RequestListSnapshots) (*types.ResponseListSnapshots, error) { app.mtx.Lock() defer app.mtx.Unlock() diff --git a/abci/client/mocks/client.go b/abci/client/mocks/client.go index 9b4a046b0..031e983b4 100644 --- a/abci/client/mocks/client.go +++ b/abci/client/mocks/client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.1.1. DO NOT EDIT. +// Code generated by mockery 2.7.4. DO NOT EDIT. package mocks @@ -94,6 +94,45 @@ func (_m *Client) BeginBlockSync(_a0 types.RequestBeginBlock) (*types.ResponseBe return r0, r1 } +// BeginRecheckTxAsync provides a mock function with given fields: _a0 +func (_m *Client) BeginRecheckTxAsync(_a0 types.RequestBeginRecheckTx) *abcicli.ReqRes { + ret := _m.Called(_a0) + + var r0 *abcicli.ReqRes + if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) *abcicli.ReqRes); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*abcicli.ReqRes) + } + } + + return r0 +} + +// BeginRecheckTxSync provides a mock function with given fields: _a0 +func (_m *Client) BeginRecheckTxSync(_a0 types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { + ret := _m.Called(_a0) + + var r0 *types.ResponseBeginRecheckTx + if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) *types.ResponseBeginRecheckTx); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*types.ResponseBeginRecheckTx) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(types.RequestBeginRecheckTx) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CheckTxAsync provides a mock function with given fields: _a0 func (_m *Client) CheckTxAsync(_a0 types.RequestCheckTx) *abcicli.ReqRes { ret := _m.Called(_a0) @@ -289,6 +328,45 @@ func (_m *Client) EndBlockSync(_a0 types.RequestEndBlock) (*types.ResponseEndBlo return r0, r1 } +// EndRecheckTxAsync provides a mock function with given fields: _a0 +func (_m *Client) EndRecheckTxAsync(_a0 types.RequestEndRecheckTx) *abcicli.ReqRes { + ret := _m.Called(_a0) + + var r0 *abcicli.ReqRes + if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) *abcicli.ReqRes); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*abcicli.ReqRes) + } + } + + return r0 +} + +// EndRecheckTxSync provides a mock function with given fields: _a0 +func (_m *Client) EndRecheckTxSync(_a0 types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { + ret := _m.Called(_a0) + + var r0 *types.ResponseEndRecheckTx + if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) *types.ResponseEndRecheckTx); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*types.ResponseEndRecheckTx) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(types.RequestEndRecheckTx) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // Error provides a mock function with given fields: func (_m *Client) Error() error { ret := _m.Called() diff --git a/abci/client/socket_client.go b/abci/client/socket_client.go index 736a9a1d6..d70441993 100644 --- a/abci/client/socket_client.go +++ b/abci/client/socket_client.go @@ -263,6 +263,14 @@ func (cli *socketClient) EndBlockAsync(req types.RequestEndBlock) *ReqRes { return cli.queueRequest(types.ToRequestEndBlock(req)) } +func (cli *socketClient) BeginRecheckTxAsync(req types.RequestBeginRecheckTx) *ReqRes { + return cli.queueRequest(types.ToRequestBeginRecheckTx(req)) +} + +func (cli *socketClient) EndRecheckTxAsync(req types.RequestEndRecheckTx) *ReqRes { + return cli.queueRequest(types.ToRequestEndRecheckTx(req)) +} + func (cli *socketClient) ListSnapshotsAsync(req types.RequestListSnapshots) *ReqRes { return cli.queueRequest(types.ToRequestListSnapshots(req)) } @@ -380,6 +388,24 @@ func (cli *socketClient) EndBlockSync(req types.RequestEndBlock) (*types.Respons return reqres.Response.GetEndBlock(), cli.Error() } +func (cli *socketClient) BeginRecheckTxSync(req types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { + reqres := cli.queueRequest(types.ToRequestBeginRecheckTx(req)) + if err := cli.FlushSync(); err != nil { + return nil, err + } + + return reqres.Response.GetBeginRecheckTx(), cli.Error() +} + +func (cli *socketClient) EndRecheckTxSync(req types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { + reqres := cli.queueRequest(types.ToRequestEndRecheckTx(req)) + if err := cli.FlushSync(); err != nil { + return nil, err + } + + return reqres.Response.GetEndRecheckTx(), cli.Error() +} + func (cli *socketClient) ListSnapshotsSync(req types.RequestListSnapshots) (*types.ResponseListSnapshots, error) { reqres := cli.queueRequest(types.ToRequestListSnapshots(req)) if err := cli.FlushSync(); err != nil { diff --git a/abci/example/kvstore/persistent_kvstore.go b/abci/example/kvstore/persistent_kvstore.go index 6a449d3e8..f54c69ef3 100644 --- a/abci/example/kvstore/persistent_kvstore.go +++ b/abci/example/kvstore/persistent_kvstore.go @@ -84,6 +84,14 @@ func (app *PersistentKVStoreApplication) CheckTx(req types.RequestCheckTx) types return app.app.CheckTx(req) } +func (app *PersistentKVStoreApplication) BeginRecheckTx(req types.RequestBeginRecheckTx) types.ResponseBeginRecheckTx { + return app.app.BeginRecheckTx(req) +} + +func (app *PersistentKVStoreApplication) EndRecheckTx(req types.RequestEndRecheckTx) types.ResponseEndRecheckTx { + return app.app.EndRecheckTx(req) +} + // Commit will panic if InitChain was not called func (app *PersistentKVStoreApplication) Commit() types.ResponseCommit { return app.app.Commit() diff --git a/abci/types/application.go b/abci/types/application.go index 65cc78b8c..9d93f8e2a 100644 --- a/abci/types/application.go +++ b/abci/types/application.go @@ -15,7 +15,9 @@ type Application interface { Query(RequestQuery) ResponseQuery // Query for state // Mempool Connection - CheckTx(RequestCheckTx) ResponseCheckTx // Validate a tx for the mempool + CheckTx(RequestCheckTx) ResponseCheckTx // Validate a tx for the mempool + BeginRecheckTx(RequestBeginRecheckTx) ResponseBeginRecheckTx // Signals the beginning of rechecking + EndRecheckTx(RequestEndRecheckTx) ResponseEndRecheckTx // Signals the end of rechecking // Consensus Connection InitChain(RequestInitChain) ResponseInitChain // Initialize blockchain w validators/other info from TendermintCore @@ -79,6 +81,14 @@ func (BaseApplication) EndBlock(req RequestEndBlock) ResponseEndBlock { return ResponseEndBlock{} } +func (BaseApplication) BeginRecheckTx(req RequestBeginRecheckTx) ResponseBeginRecheckTx { + return ResponseBeginRecheckTx{Code: CodeTypeOK} +} + +func (BaseApplication) EndRecheckTx(req RequestEndRecheckTx) ResponseEndRecheckTx { + return ResponseEndRecheckTx{Code: CodeTypeOK} +} + func (BaseApplication) ListSnapshots(req RequestListSnapshots) ResponseListSnapshots { return ResponseListSnapshots{} } @@ -159,6 +169,17 @@ func (app *GRPCApplication) EndBlock(ctx context.Context, req *RequestEndBlock) return &res, nil } +func (app *GRPCApplication) BeginRecheckTx(ctx context.Context, req *RequestBeginRecheckTx) ( + *ResponseBeginRecheckTx, error) { + res := app.app.BeginRecheckTx(*req) + return &res, nil +} + +func (app *GRPCApplication) EndRecheckTx(ctx context.Context, req *RequestEndRecheckTx) (*ResponseEndRecheckTx, error) { + res := app.app.EndRecheckTx(*req) + return &res, nil +} + func (app *GRPCApplication) ListSnapshots( ctx context.Context, req *RequestListSnapshots) (*ResponseListSnapshots, error) { res := app.app.ListSnapshots(*req) diff --git a/abci/types/messages.go b/abci/types/messages.go index 531f75fed..e617f8593 100644 --- a/abci/types/messages.go +++ b/abci/types/messages.go @@ -135,6 +135,18 @@ func ToRequestEndBlock(req RequestEndBlock) *Request { } } +func ToRequestBeginRecheckTx(req RequestBeginRecheckTx) *Request { + return &Request{ + Value: &Request_BeginRecheckTx{&req}, + } +} + +func ToRequestEndRecheckTx(req RequestEndRecheckTx) *Request { + return &Request{ + Value: &Request_EndRecheckTx{&req}, + } +} + func ToRequestListSnapshots(req RequestListSnapshots) *Request { return &Request{ Value: &Request_ListSnapshots{&req}, @@ -233,6 +245,18 @@ func ToResponseEndBlock(res ResponseEndBlock) *Response { } } +func ToResponseBeginRecheckTx(res ResponseBeginRecheckTx) *Response { + return &Response{ + Value: &Response_BeginRecheckTx{&res}, + } +} + +func ToResponseEndRecheckTx(res ResponseEndRecheckTx) *Response { + return &Response{ + Value: &Response_EndRecheckTx{&res}, + } +} + func ToResponseListSnapshots(res ResponseListSnapshots) *Response { return &Response{ Value: &Response_ListSnapshots{&res}, diff --git a/abci/types/types.pb.go b/abci/types/types.pb.go index 73d21c07d..1889f80fc 100644 --- a/abci/types/types.pb.go +++ b/abci/types/types.pb.go @@ -120,7 +120,7 @@ func (x ResponseOfferSnapshot_Result) String() string { } func (ResponseOfferSnapshot_Result) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{30, 0} + return fileDescriptor_addf585b2317eb36, []int{32, 0} } type ResponseApplySnapshotChunk_Result int32 @@ -157,7 +157,7 @@ func (x ResponseApplySnapshotChunk_Result) String() string { } func (ResponseApplySnapshotChunk_Result) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{32, 0} + return fileDescriptor_addf585b2317eb36, []int{34, 0} } type Request struct { @@ -177,6 +177,8 @@ type Request struct { // *Request_OfferSnapshot // *Request_LoadSnapshotChunk // *Request_ApplySnapshotChunk + // *Request_BeginRecheckTx + // *Request_EndRecheckTx Value isRequest_Value `protobuf_oneof:"value"` } @@ -264,6 +266,12 @@ type Request_LoadSnapshotChunk struct { type Request_ApplySnapshotChunk struct { ApplySnapshotChunk *RequestApplySnapshotChunk `protobuf:"bytes,15,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"` } +type Request_BeginRecheckTx struct { + BeginRecheckTx *RequestBeginRecheckTx `protobuf:"bytes,100,opt,name=begin_recheck_tx,json=beginRecheckTx,proto3,oneof" json:"begin_recheck_tx,omitempty"` +} +type Request_EndRecheckTx struct { + EndRecheckTx *RequestEndRecheckTx `protobuf:"bytes,101,opt,name=end_recheck_tx,json=endRecheckTx,proto3,oneof" json:"end_recheck_tx,omitempty"` +} func (*Request_Echo) isRequest_Value() {} func (*Request_Flush) isRequest_Value() {} @@ -280,6 +288,8 @@ func (*Request_ListSnapshots) isRequest_Value() {} func (*Request_OfferSnapshot) isRequest_Value() {} func (*Request_LoadSnapshotChunk) isRequest_Value() {} func (*Request_ApplySnapshotChunk) isRequest_Value() {} +func (*Request_BeginRecheckTx) isRequest_Value() {} +func (*Request_EndRecheckTx) isRequest_Value() {} func (m *Request) GetValue() isRequest_Value { if m != nil { @@ -393,6 +403,20 @@ func (m *Request) GetApplySnapshotChunk() *RequestApplySnapshotChunk { return nil } +func (m *Request) GetBeginRecheckTx() *RequestBeginRecheckTx { + if x, ok := m.GetValue().(*Request_BeginRecheckTx); ok { + return x.BeginRecheckTx + } + return nil +} + +func (m *Request) GetEndRecheckTx() *RequestEndRecheckTx { + if x, ok := m.GetValue().(*Request_EndRecheckTx); ok { + return x.EndRecheckTx + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*Request) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -411,6 +435,8 @@ func (*Request) XXX_OneofWrappers() []interface{} { (*Request_OfferSnapshot)(nil), (*Request_LoadSnapshotChunk)(nil), (*Request_ApplySnapshotChunk)(nil), + (*Request_BeginRecheckTx)(nil), + (*Request_EndRecheckTx)(nil), } } @@ -1215,6 +1241,94 @@ func (m *RequestApplySnapshotChunk) GetSender() string { return "" } +type RequestBeginRecheckTx struct { + Header types1.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` +} + +func (m *RequestBeginRecheckTx) Reset() { *m = RequestBeginRecheckTx{} } +func (m *RequestBeginRecheckTx) String() string { return proto.CompactTextString(m) } +func (*RequestBeginRecheckTx) ProtoMessage() {} +func (*RequestBeginRecheckTx) Descriptor() ([]byte, []int) { + return fileDescriptor_addf585b2317eb36, []int{16} +} +func (m *RequestBeginRecheckTx) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestBeginRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestBeginRecheckTx.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RequestBeginRecheckTx) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestBeginRecheckTx.Merge(m, src) +} +func (m *RequestBeginRecheckTx) XXX_Size() int { + return m.Size() +} +func (m *RequestBeginRecheckTx) XXX_DiscardUnknown() { + xxx_messageInfo_RequestBeginRecheckTx.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestBeginRecheckTx proto.InternalMessageInfo + +func (m *RequestBeginRecheckTx) GetHeader() types1.Header { + if m != nil { + return m.Header + } + return types1.Header{} +} + +type RequestEndRecheckTx struct { + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +func (m *RequestEndRecheckTx) Reset() { *m = RequestEndRecheckTx{} } +func (m *RequestEndRecheckTx) String() string { return proto.CompactTextString(m) } +func (*RequestEndRecheckTx) ProtoMessage() {} +func (*RequestEndRecheckTx) Descriptor() ([]byte, []int) { + return fileDescriptor_addf585b2317eb36, []int{17} +} +func (m *RequestEndRecheckTx) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestEndRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestEndRecheckTx.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RequestEndRecheckTx) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestEndRecheckTx.Merge(m, src) +} +func (m *RequestEndRecheckTx) XXX_Size() int { + return m.Size() +} +func (m *RequestEndRecheckTx) XXX_DiscardUnknown() { + xxx_messageInfo_RequestEndRecheckTx.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestEndRecheckTx proto.InternalMessageInfo + +func (m *RequestEndRecheckTx) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + type Response struct { // Types that are valid to be assigned to Value: // *Response_Exception @@ -1233,6 +1347,8 @@ type Response struct { // *Response_OfferSnapshot // *Response_LoadSnapshotChunk // *Response_ApplySnapshotChunk + // *Response_BeginRecheckTx + // *Response_EndRecheckTx Value isResponse_Value `protobuf_oneof:"value"` } @@ -1240,7 +1356,7 @@ func (m *Response) Reset() { *m = Response{} } func (m *Response) String() string { return proto.CompactTextString(m) } func (*Response) ProtoMessage() {} func (*Response) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{16} + return fileDescriptor_addf585b2317eb36, []int{18} } func (m *Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1323,6 +1439,12 @@ type Response_LoadSnapshotChunk struct { type Response_ApplySnapshotChunk struct { ApplySnapshotChunk *ResponseApplySnapshotChunk `protobuf:"bytes,16,opt,name=apply_snapshot_chunk,json=applySnapshotChunk,proto3,oneof" json:"apply_snapshot_chunk,omitempty"` } +type Response_BeginRecheckTx struct { + BeginRecheckTx *ResponseBeginRecheckTx `protobuf:"bytes,100,opt,name=begin_recheck_tx,json=beginRecheckTx,proto3,oneof" json:"begin_recheck_tx,omitempty"` +} +type Response_EndRecheckTx struct { + EndRecheckTx *ResponseEndRecheckTx `protobuf:"bytes,101,opt,name=end_recheck_tx,json=endRecheckTx,proto3,oneof" json:"end_recheck_tx,omitempty"` +} func (*Response_Exception) isResponse_Value() {} func (*Response_Echo) isResponse_Value() {} @@ -1340,6 +1462,8 @@ func (*Response_ListSnapshots) isResponse_Value() {} func (*Response_OfferSnapshot) isResponse_Value() {} func (*Response_LoadSnapshotChunk) isResponse_Value() {} func (*Response_ApplySnapshotChunk) isResponse_Value() {} +func (*Response_BeginRecheckTx) isResponse_Value() {} +func (*Response_EndRecheckTx) isResponse_Value() {} func (m *Response) GetValue() isResponse_Value { if m != nil { @@ -1460,6 +1584,20 @@ func (m *Response) GetApplySnapshotChunk() *ResponseApplySnapshotChunk { return nil } +func (m *Response) GetBeginRecheckTx() *ResponseBeginRecheckTx { + if x, ok := m.GetValue().(*Response_BeginRecheckTx); ok { + return x.BeginRecheckTx + } + return nil +} + +func (m *Response) GetEndRecheckTx() *ResponseEndRecheckTx { + if x, ok := m.GetValue().(*Response_EndRecheckTx); ok { + return x.EndRecheckTx + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*Response) XXX_OneofWrappers() []interface{} { return []interface{}{ @@ -1479,6 +1617,8 @@ func (*Response) XXX_OneofWrappers() []interface{} { (*Response_OfferSnapshot)(nil), (*Response_LoadSnapshotChunk)(nil), (*Response_ApplySnapshotChunk)(nil), + (*Response_BeginRecheckTx)(nil), + (*Response_EndRecheckTx)(nil), } } @@ -1491,7 +1631,7 @@ func (m *ResponseException) Reset() { *m = ResponseException{} } func (m *ResponseException) String() string { return proto.CompactTextString(m) } func (*ResponseException) ProtoMessage() {} func (*ResponseException) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{17} + return fileDescriptor_addf585b2317eb36, []int{19} } func (m *ResponseException) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1535,7 +1675,7 @@ func (m *ResponseEcho) Reset() { *m = ResponseEcho{} } func (m *ResponseEcho) String() string { return proto.CompactTextString(m) } func (*ResponseEcho) ProtoMessage() {} func (*ResponseEcho) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{18} + return fileDescriptor_addf585b2317eb36, []int{20} } func (m *ResponseEcho) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1578,7 +1718,7 @@ func (m *ResponseFlush) Reset() { *m = ResponseFlush{} } func (m *ResponseFlush) String() string { return proto.CompactTextString(m) } func (*ResponseFlush) ProtoMessage() {} func (*ResponseFlush) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{19} + return fileDescriptor_addf585b2317eb36, []int{21} } func (m *ResponseFlush) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1619,7 +1759,7 @@ func (m *ResponseInfo) Reset() { *m = ResponseInfo{} } func (m *ResponseInfo) String() string { return proto.CompactTextString(m) } func (*ResponseInfo) ProtoMessage() {} func (*ResponseInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{20} + return fileDescriptor_addf585b2317eb36, []int{22} } func (m *ResponseInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1695,7 +1835,7 @@ func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} } func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) } func (*ResponseSetOption) ProtoMessage() {} func (*ResponseSetOption) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{21} + return fileDescriptor_addf585b2317eb36, []int{23} } func (m *ResponseSetOption) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1755,7 +1895,7 @@ func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} } func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) } func (*ResponseInitChain) ProtoMessage() {} func (*ResponseInitChain) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{22} + return fileDescriptor_addf585b2317eb36, []int{24} } func (m *ResponseInitChain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1822,7 +1962,7 @@ func (m *ResponseQuery) Reset() { *m = ResponseQuery{} } func (m *ResponseQuery) String() string { return proto.CompactTextString(m) } func (*ResponseQuery) ProtoMessage() {} func (*ResponseQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{23} + return fileDescriptor_addf585b2317eb36, []int{25} } func (m *ResponseQuery) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1922,7 +2062,7 @@ func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} } func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) } func (*ResponseBeginBlock) ProtoMessage() {} func (*ResponseBeginBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{24} + return fileDescriptor_addf585b2317eb36, []int{26} } func (m *ResponseBeginBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1973,7 +2113,7 @@ func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} } func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) } func (*ResponseCheckTx) ProtoMessage() {} func (*ResponseCheckTx) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{25} + return fileDescriptor_addf585b2317eb36, []int{27} } func (m *ResponseCheckTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2073,7 +2213,7 @@ func (m *ResponseDeliverTx) Reset() { *m = ResponseDeliverTx{} } func (m *ResponseDeliverTx) String() string { return proto.CompactTextString(m) } func (*ResponseDeliverTx) ProtoMessage() {} func (*ResponseDeliverTx) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{26} + return fileDescriptor_addf585b2317eb36, []int{28} } func (m *ResponseDeliverTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2168,7 +2308,7 @@ func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} } func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) } func (*ResponseEndBlock) ProtoMessage() {} func (*ResponseEndBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{27} + return fileDescriptor_addf585b2317eb36, []int{29} } func (m *ResponseEndBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2228,7 +2368,7 @@ func (m *ResponseCommit) Reset() { *m = ResponseCommit{} } func (m *ResponseCommit) String() string { return proto.CompactTextString(m) } func (*ResponseCommit) ProtoMessage() {} func (*ResponseCommit) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{28} + return fileDescriptor_addf585b2317eb36, []int{30} } func (m *ResponseCommit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2279,7 +2419,7 @@ func (m *ResponseListSnapshots) Reset() { *m = ResponseListSnapshots{} } func (m *ResponseListSnapshots) String() string { return proto.CompactTextString(m) } func (*ResponseListSnapshots) ProtoMessage() {} func (*ResponseListSnapshots) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{29} + return fileDescriptor_addf585b2317eb36, []int{31} } func (m *ResponseListSnapshots) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2323,7 +2463,7 @@ func (m *ResponseOfferSnapshot) Reset() { *m = ResponseOfferSnapshot{} } func (m *ResponseOfferSnapshot) String() string { return proto.CompactTextString(m) } func (*ResponseOfferSnapshot) ProtoMessage() {} func (*ResponseOfferSnapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{30} + return fileDescriptor_addf585b2317eb36, []int{32} } func (m *ResponseOfferSnapshot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2367,7 +2507,7 @@ func (m *ResponseLoadSnapshotChunk) Reset() { *m = ResponseLoadSnapshotC func (m *ResponseLoadSnapshotChunk) String() string { return proto.CompactTextString(m) } func (*ResponseLoadSnapshotChunk) ProtoMessage() {} func (*ResponseLoadSnapshotChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{31} + return fileDescriptor_addf585b2317eb36, []int{33} } func (m *ResponseLoadSnapshotChunk) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2413,7 +2553,7 @@ func (m *ResponseApplySnapshotChunk) Reset() { *m = ResponseApplySnapsho func (m *ResponseApplySnapshotChunk) String() string { return proto.CompactTextString(m) } func (*ResponseApplySnapshotChunk) ProtoMessage() {} func (*ResponseApplySnapshotChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{32} + return fileDescriptor_addf585b2317eb36, []int{34} } func (m *ResponseApplySnapshotChunk) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2463,6 +2603,94 @@ func (m *ResponseApplySnapshotChunk) GetRejectSenders() []string { return nil } +type ResponseBeginRecheckTx struct { + Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` +} + +func (m *ResponseBeginRecheckTx) Reset() { *m = ResponseBeginRecheckTx{} } +func (m *ResponseBeginRecheckTx) String() string { return proto.CompactTextString(m) } +func (*ResponseBeginRecheckTx) ProtoMessage() {} +func (*ResponseBeginRecheckTx) Descriptor() ([]byte, []int) { + return fileDescriptor_addf585b2317eb36, []int{35} +} +func (m *ResponseBeginRecheckTx) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseBeginRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseBeginRecheckTx.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ResponseBeginRecheckTx) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseBeginRecheckTx.Merge(m, src) +} +func (m *ResponseBeginRecheckTx) XXX_Size() int { + return m.Size() +} +func (m *ResponseBeginRecheckTx) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseBeginRecheckTx.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseBeginRecheckTx proto.InternalMessageInfo + +func (m *ResponseBeginRecheckTx) GetCode() uint32 { + if m != nil { + return m.Code + } + return 0 +} + +type ResponseEndRecheckTx struct { + Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` +} + +func (m *ResponseEndRecheckTx) Reset() { *m = ResponseEndRecheckTx{} } +func (m *ResponseEndRecheckTx) String() string { return proto.CompactTextString(m) } +func (*ResponseEndRecheckTx) ProtoMessage() {} +func (*ResponseEndRecheckTx) Descriptor() ([]byte, []int) { + return fileDescriptor_addf585b2317eb36, []int{36} +} +func (m *ResponseEndRecheckTx) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResponseEndRecheckTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResponseEndRecheckTx.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ResponseEndRecheckTx) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseEndRecheckTx.Merge(m, src) +} +func (m *ResponseEndRecheckTx) XXX_Size() int { + return m.Size() +} +func (m *ResponseEndRecheckTx) XXX_DiscardUnknown() { + xxx_messageInfo_ResponseEndRecheckTx.DiscardUnknown(m) +} + +var xxx_messageInfo_ResponseEndRecheckTx proto.InternalMessageInfo + +func (m *ResponseEndRecheckTx) GetCode() uint32 { + if m != nil { + return m.Code + } + return 0 +} + // ConsensusParams contains all consensus-relevant parameters // that can be adjusted by the abci app type ConsensusParams struct { @@ -2476,7 +2704,7 @@ func (m *ConsensusParams) Reset() { *m = ConsensusParams{} } func (m *ConsensusParams) String() string { return proto.CompactTextString(m) } func (*ConsensusParams) ProtoMessage() {} func (*ConsensusParams) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{33} + return fileDescriptor_addf585b2317eb36, []int{37} } func (m *ConsensusParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2545,7 +2773,7 @@ func (m *BlockParams) Reset() { *m = BlockParams{} } func (m *BlockParams) String() string { return proto.CompactTextString(m) } func (*BlockParams) ProtoMessage() {} func (*BlockParams) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{34} + return fileDescriptor_addf585b2317eb36, []int{38} } func (m *BlockParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2597,7 +2825,7 @@ func (m *LastCommitInfo) Reset() { *m = LastCommitInfo{} } func (m *LastCommitInfo) String() string { return proto.CompactTextString(m) } func (*LastCommitInfo) ProtoMessage() {} func (*LastCommitInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{35} + return fileDescriptor_addf585b2317eb36, []int{39} } func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2652,7 +2880,7 @@ func (m *Event) Reset() { *m = Event{} } func (m *Event) String() string { return proto.CompactTextString(m) } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{36} + return fileDescriptor_addf585b2317eb36, []int{40} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2706,7 +2934,7 @@ func (m *EventAttribute) Reset() { *m = EventAttribute{} } func (m *EventAttribute) String() string { return proto.CompactTextString(m) } func (*EventAttribute) ProtoMessage() {} func (*EventAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{37} + return fileDescriptor_addf585b2317eb36, []int{41} } func (m *EventAttribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2770,7 +2998,7 @@ func (m *TxResult) Reset() { *m = TxResult{} } func (m *TxResult) String() string { return proto.CompactTextString(m) } func (*TxResult) ProtoMessage() {} func (*TxResult) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{38} + return fileDescriptor_addf585b2317eb36, []int{42} } func (m *TxResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2838,7 +3066,7 @@ func (m *Validator) Reset() { *m = Validator{} } func (m *Validator) String() string { return proto.CompactTextString(m) } func (*Validator) ProtoMessage() {} func (*Validator) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{39} + return fileDescriptor_addf585b2317eb36, []int{43} } func (m *Validator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2891,7 +3119,7 @@ func (m *ValidatorUpdate) Reset() { *m = ValidatorUpdate{} } func (m *ValidatorUpdate) String() string { return proto.CompactTextString(m) } func (*ValidatorUpdate) ProtoMessage() {} func (*ValidatorUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{40} + return fileDescriptor_addf585b2317eb36, []int{44} } func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2944,7 +3172,7 @@ func (m *VoteInfo) Reset() { *m = VoteInfo{} } func (m *VoteInfo) String() string { return proto.CompactTextString(m) } func (*VoteInfo) ProtoMessage() {} func (*VoteInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{41} + return fileDescriptor_addf585b2317eb36, []int{45} } func (m *VoteInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3005,7 +3233,7 @@ func (m *Evidence) Reset() { *m = Evidence{} } func (m *Evidence) String() string { return proto.CompactTextString(m) } func (*Evidence) ProtoMessage() {} func (*Evidence) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{42} + return fileDescriptor_addf585b2317eb36, []int{46} } func (m *Evidence) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3081,7 +3309,7 @@ func (m *Snapshot) Reset() { *m = Snapshot{} } func (m *Snapshot) String() string { return proto.CompactTextString(m) } func (*Snapshot) ProtoMessage() {} func (*Snapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_addf585b2317eb36, []int{43} + return fileDescriptor_addf585b2317eb36, []int{47} } func (m *Snapshot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3166,6 +3394,8 @@ func init() { proto.RegisterType((*RequestOfferSnapshot)(nil), "ostracon.abci.RequestOfferSnapshot") proto.RegisterType((*RequestLoadSnapshotChunk)(nil), "ostracon.abci.RequestLoadSnapshotChunk") proto.RegisterType((*RequestApplySnapshotChunk)(nil), "ostracon.abci.RequestApplySnapshotChunk") + proto.RegisterType((*RequestBeginRecheckTx)(nil), "ostracon.abci.RequestBeginRecheckTx") + proto.RegisterType((*RequestEndRecheckTx)(nil), "ostracon.abci.RequestEndRecheckTx") proto.RegisterType((*Response)(nil), "ostracon.abci.Response") proto.RegisterType((*ResponseException)(nil), "ostracon.abci.ResponseException") proto.RegisterType((*ResponseEcho)(nil), "ostracon.abci.ResponseEcho") @@ -3183,6 +3413,8 @@ func init() { proto.RegisterType((*ResponseOfferSnapshot)(nil), "ostracon.abci.ResponseOfferSnapshot") proto.RegisterType((*ResponseLoadSnapshotChunk)(nil), "ostracon.abci.ResponseLoadSnapshotChunk") proto.RegisterType((*ResponseApplySnapshotChunk)(nil), "ostracon.abci.ResponseApplySnapshotChunk") + proto.RegisterType((*ResponseBeginRecheckTx)(nil), "ostracon.abci.ResponseBeginRecheckTx") + proto.RegisterType((*ResponseEndRecheckTx)(nil), "ostracon.abci.ResponseEndRecheckTx") proto.RegisterType((*ConsensusParams)(nil), "ostracon.abci.ConsensusParams") proto.RegisterType((*BlockParams)(nil), "ostracon.abci.BlockParams") proto.RegisterType((*LastCommitInfo)(nil), "ostracon.abci.LastCommitInfo") @@ -3199,179 +3431,187 @@ func init() { func init() { proto.RegisterFile("ostracon/abci/types.proto", fileDescriptor_addf585b2317eb36) } var fileDescriptor_addf585b2317eb36 = []byte{ - // 2743 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 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, 0x95, 0xae, - 0x65, 0x3a, 0xc4, 0x74, 0x26, 0x8e, 0x2e, 0x40, 0x59, 0x82, 0x5b, 0x34, 0x52, 0x1a, 0xae, 0xda, - 0x01, 0xd7, 0xd2, 0x56, 0xba, 0x61, 0x01, 0xba, 0x0d, 0x70, 0x82, 0x87, 0x46, 0x0f, 0x53, 0x6b, - 0xec, 0x54, 0x33, 0x57, 0xd3, 0x53, 0x9c, 0x1c, 0xb9, 0x0a, 0xf7, 0xed, 0x1e, 0xa6, 0xa4, 0x9e, - 0x61, 0x5f, 0xaa, 0x05, 0xec, 0xd0, 0xf7, 0x60, 0x05, 0xdb, 0xb6, 0xee, 0x50, 0x4c, 0x89, 0xde, - 0x39, 0xa3, 0xc4, 0xe1, 0x90, 0xb7, 0xac, 0x95, 0xb0, 0x6d, 0x1f, 0x32, 0x69, 0x9d, 0x09, 0xd1, - 0xf3, 0x50, 0x66, 0x00, 0x67, 0xe0, 0xa1, 0x3e, 0x20, 0x46, 0x7f, 0x40, 0x39, 0xb8, 0xa5, 0xb5, - 0x92, 0x94, 0xb6, 0xb8, 0x50, 0xed, 0x79, 0x87, 0x80, 0xc3, 0x1b, 0x42, 0x90, 0xe9, 0x61, 0x8a, - 0xf9, 0x26, 0x2e, 0x6b, 0xfc, 0x99, 0xc9, 0x6c, 0x4c, 0x07, 0x72, 0x6b, 0xf8, 0x33, 0xba, 0x08, - 0x39, 0xe9, 0x36, 0xcd, 0xdd, 0xca, 0x11, 0xfb, 0xbd, 0xec, 0xb1, 0x75, 0x42, 0x38, 0x92, 0x17, - 0x34, 0x31, 0x50, 0xff, 0x93, 0x84, 0xd5, 0x73, 0x50, 0xc8, 0xfc, 0x0e, 0xb0, 0x33, 0x70, 0xdf, - 0xc5, 0x9e, 0xd1, 0x6b, 0xcc, 0x2f, 0xee, 0x91, 0xb1, 0x4c, 0x3b, 0x17, 0xfd, 0x0d, 0x12, 0xa9, - 0xb4, 0xc5, 0x67, 0xe5, 0xc6, 0x48, 0x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, 0x6c, 0xee, 0xee, 0x39, 0x36, 0x27, 0xf8, 0xd7, 0x77, 0x63, 0x1c, 0xcc, - 0xa1, 0x73, 0x77, 0xcf, 0xd1, 0xb9, 0xf2, 0x4c, 0x77, 0x73, 0xf8, 0xdc, 0x83, 0xe9, 0x7c, 0x2e, - 0x8e, 0x73, 0xc9, 0x4f, 0x5c, 0x8c, 0xd0, 0xfd, 0x2c, 0x86, 0xd0, 0x55, 0xb8, 0xf3, 0x97, 0x62, - 0x9c, 0x3f, 0x3d, 0xa3, 0x7b, 0x89, 0x25, 0xcf, 0x08, 0x34, 0x30, 0x28, 0x22, 0xe3, 0xb1, 0x35, - 0x96, 0x64, 0x49, 0x0c, 0xd4, 0x17, 0x59, 0x3a, 0xf7, 0x81, 0x60, 0x06, 0xfb, 0xe3, 0x80, 0x1f, - 0x08, 0x7f, 0xf5, 0x0f, 0x49, 0xdf, 0x96, 0x67, 0xc1, 0x20, 0x15, 0x28, 0x4a, 0x2a, 0x10, 0x20, - 0x85, 0xa9, 0x30, 0x29, 0xdc, 0x80, 0x25, 0x06, 0xe5, 0x11, 0xbe, 0x87, 0x6d, 0x97, 0xef, 0xa1, - 0xeb, 0xb0, 0xca, 0x73, 0xb4, 0xa0, 0x8e, 0x12, 0xbf, 0x33, 0x3c, 0x09, 0xad, 0xb0, 0x09, 0x71, - 0x24, 0x05, 0x90, 0xff, 0x00, 0x2e, 0x04, 0x74, 0xbd, 0x14, 0x21, 0x88, 0x4e, 0xc5, 0xd3, 0xae, - 0xc9, 0x5c, 0x71, 0xd7, 0xdf, 0x20, 0x9f, 0x4b, 0x22, 0xc8, 0x74, 0xad, 0x1e, 0x91, 0x00, 0xce, - 0x9f, 0x19, 0xbf, 0x1c, 0x5a, 0x7d, 0x09, 0xd3, 0xec, 0x91, 0x69, 0x79, 0x58, 0x57, 0x14, 0x60, - 0xa6, 0xfe, 0x29, 0xe9, 0xfb, 0xf3, 0xe9, 0xe5, 0x34, 0x26, 0x98, 0xfc, 0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4a, 0xe2, 0x59, 0xbf, 0xb3, 0xaf, 0xdd, 0xad, - 0xb5, 0x2b, 0x99, 0x80, 0xe8, 0xb0, 0xb9, 0x77, 0xbb, 0xa9, 0x55, 0xb2, 0xea, 0xab, 0xac, 0x38, - 0x89, 0x61, 0x23, 0x7e, 0x19, 0x92, 0x0c, 0x94, 0x21, 0xea, 0xef, 0x53, 0xa0, 0xc4, 0x93, 0x0c, - 0xd4, 0x8a, 0x2c, 0xfb, 0x95, 0x85, 0xf9, 0x49, 0x64, 0xed, 0xe8, 0x79, 0x28, 0x8f, 0xc9, 0x31, - 0xa1, 0xdd, 0x81, 0x20, 0x3c, 0x22, 0x85, 0x95, 0xb4, 0x92, 0x94, 0x72, 0x23, 0x47, 0xa8, 0xfd, - 0x82, 0x74, 0xa9, 0x2e, 0xea, 0x21, 0x71, 0xd8, 0x8a, 0x4c, 0x8d, 0x49, 0x0f, 0x85, 0x50, 0xfd, - 0xf8, 0xa9, 0x76, 0xb2, 0x08, 0x59, 0xad, 0xd9, 0xd6, 0x3e, 0xa8, 0xa4, 0x11, 0x82, 0x32, 0x7f, - 0xd4, 0x0f, 0xf7, 0x6a, 0x07, 0x87, 0xad, 0x7d, 0xb6, 0x93, 0x17, 0x60, 0xc5, 0xdd, 0x49, 0x57, - 0x98, 0x55, 0xff, 0x95, 0x84, 0x95, 0x48, 0x60, 0xa0, 0x57, 0x20, 0x2b, 0xa8, 0xf2, 0xf4, 0x86, - 0x38, 0x8f, 0x68, 0x19, 0x43, 0x42, 0x11, 0xbd, 0x05, 0x05, 0x22, 0x2b, 0xfd, 0xf3, 0xc1, 0x27, - 0x7a, 0x13, 0x6e, 0x27, 0x40, 0x1a, 0x7a, 0xfa, 0xe8, 0x16, 0x14, 0xbd, 0xd8, 0x96, 0xb5, 0xd8, - 0x46, 0xd4, 0xd8, 0xc3, 0x04, 0x69, 0xed, 0x5b, 0xa0, 0x37, 0x7c, 0xd6, 0x95, 0x89, 0x92, 0x73, - 0x69, 0x2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x00, + // 2873 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5a, 0xcf, 0x73, 0x23, 0xc5, + 0xf5, 0xd7, 0xef, 0x1f, 0xcf, 0x96, 0x2c, 0xf7, 0x9a, 0x5d, 0xed, 0x2c, 0xd8, 0xfb, 0x9d, 0xfd, + 0x12, 0x60, 0x03, 0x36, 0xec, 0x12, 0x08, 0x10, 0x08, 0xb2, 0x56, 0x20, 0x63, 0xaf, 0xed, 0x1d, + 0x8b, 0xa5, 0xf8, 0x95, 0x61, 0x34, 0x6a, 0x4b, 0x93, 0x95, 0x66, 0x06, 0x4d, 0xcb, 0xd8, 0xb9, + 0x25, 0xa9, 0x54, 0xa5, 0x38, 0x91, 0x4b, 0x6e, 0xfc, 0x1f, 0x39, 0xa4, 0x2a, 0xc7, 0x70, 0xe4, + 0x98, 0x13, 0x49, 0x41, 0xe5, 0x92, 0x7b, 0x2a, 0x95, 0x4b, 0x92, 0xea, 0x1f, 0xf3, 0x53, 0x33, + 0x23, 0x2d, 0xe4, 0x96, 0x5b, 0xf7, 0xeb, 0xf7, 0xde, 0x4c, 0xf7, 0x74, 0x7f, 0xde, 0xe7, 0xbd, + 0x1e, 0xb8, 0x6a, 0x39, 0x64, 0xaa, 0xe9, 0x96, 0xb9, 0xa3, 0xf5, 0x75, 0x63, 0x87, 0x5c, 0xd8, + 0xd8, 0xd9, 0xb6, 0xa7, 0x16, 0xb1, 0x50, 0xcd, 0x1d, 0xda, 0xa6, 0x43, 0xd2, 0x35, 0x4f, 0x53, + 0x9f, 0x5e, 0xd8, 0xc4, 0xda, 0xb1, 0xa7, 0x96, 0x75, 0xca, 0x75, 0x25, 0xc9, 0x1b, 0x64, 0x1e, + 0x82, 0x7e, 0x02, 0x63, 0xc2, 0xf0, 0x01, 0xbe, 0x70, 0xc7, 0xae, 0x45, 0xec, 0x6c, 0x6d, 0xaa, + 0x4d, 0xd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, 0x69, 0x03, 0xd7, + 0x41, 0x9b, 0xaa, 0x77, 0x33, 0xca, 0xfa, 0x38, 0x2a, 0x44, 0x1f, 0xc0, 0x86, 0x66, 0xdb, 0xe3, + 0x8b, 0xa8, 0xef, 0x35, 0xe6, 0xfb, 0xc9, 0x78, 0xdf, 0x2d, 0x6a, 0x11, 0x75, 0x8e, 0xb4, 0x39, + 0x29, 0x3a, 0x86, 0x06, 0xdf, 0x8e, 0x53, 0xec, 0xed, 0xa8, 0x01, 0xf3, 0xfc, 0xff, 0x29, 0x7b, + 0x52, 0xc1, 0xba, 0xb7, 0xb1, 0xea, 0xfd, 0x90, 0x04, 0xbd, 0x05, 0x75, 0xba, 0x3b, 0x02, 0xfe, + 0x30, 0xf3, 0x27, 0x27, 0x6e, 0x91, 0xa0, 0xb7, 0x55, 0x1c, 0xe8, 0xef, 0x96, 0xa1, 0x78, 0xa6, + 0x8d, 0x67, 0x58, 0x7e, 0x02, 0x56, 0x02, 0x60, 0x83, 0x9a, 0x50, 0x9e, 0x60, 0xc7, 0xd1, 0x86, + 0x98, 0x21, 0x53, 0x55, 0x71, 0xbb, 0x72, 0x1d, 0x56, 0x83, 0x10, 0x23, 0x4f, 0x3c, 0x43, 0x0a, + 0x1f, 0xd4, 0xf0, 0x0c, 0x4f, 0x1d, 0x8a, 0x19, 0xc2, 0x50, 0x74, 0xd1, 0x0d, 0xa8, 0xb1, 0x0d, + 0xad, 0xba, 0xe3, 0x14, 0xbf, 0x0a, 0xca, 0x2a, 0x13, 0xde, 0x17, 0x4a, 0x5b, 0xb0, 0x62, 0xdf, + 0xb2, 0x3d, 0x95, 0x3c, 0x53, 0x01, 0xfb, 0x96, 0x2d, 0x14, 0xe4, 0x97, 0xa1, 0x11, 0x45, 0x1d, + 0xd4, 0x80, 0xfc, 0x03, 0x7c, 0x21, 0x9e, 0x47, 0x9b, 0x68, 0x43, 0x4c, 0x8b, 0x3d, 0xa3, 0xaa, + 0x88, 0x39, 0xfe, 0x31, 0xe7, 0x19, 0x7b, 0x80, 0x83, 0x7e, 0x08, 0x05, 0x8a, 0xda, 0x1e, 0x00, + 0x73, 0x48, 0xdf, 0x76, 0x21, 0x7d, 0xbb, 0xe7, 0x42, 0xfa, 0x6e, 0xe5, 0x8b, 0xaf, 0xb6, 0x32, + 0x9f, 0xfd, 0x79, 0x2b, 0xab, 0x30, 0x0b, 0x74, 0x95, 0x62, 0x84, 0x66, 0x98, 0xaa, 0x31, 0x10, + 0xcf, 0x29, 0xb3, 0xfe, 0xde, 0x00, 0xed, 0x41, 0x43, 0xb7, 0x4c, 0x07, 0x9b, 0xce, 0xcc, 0x51, + 0x79, 0xc8, 0x10, 0xd0, 0x1b, 0x3d, 0xc7, 0x6d, 0x57, 0xed, 0x98, 0x69, 0x29, 0x6b, 0x7a, 0x58, + 0x80, 0xee, 0x00, 0x9c, 0x69, 0x63, 0x63, 0xa0, 0x11, 0x6b, 0xea, 0x34, 0x0b, 0xd7, 0xf3, 0x31, + 0x4e, 0xee, 0xbb, 0x0a, 0x6f, 0xdb, 0x03, 0x8d, 0xe0, 0xdd, 0x02, 0x7d, 0x53, 0x25, 0x60, 0x87, + 0xbe, 0x07, 0x6b, 0x9a, 0x6d, 0xab, 0x0e, 0xd1, 0x08, 0x56, 0xfb, 0x17, 0x04, 0x3b, 0x0c, 0x90, + 0x57, 0x95, 0x9a, 0x66, 0xdb, 0x27, 0x54, 0xba, 0x4b, 0x85, 0xe8, 0x71, 0xa8, 0x53, 0xf8, 0x35, + 0xb4, 0xb1, 0x3a, 0xc2, 0xc6, 0x70, 0x44, 0x18, 0xf4, 0xe6, 0x95, 0x9a, 0x90, 0x76, 0x99, 0x50, + 0x1e, 0x78, 0x9b, 0x80, 0x81, 0x2f, 0x42, 0x50, 0x18, 0x68, 0x44, 0x63, 0x8b, 0xb8, 0xaa, 0xb0, + 0x36, 0x95, 0xd9, 0x1a, 0x19, 0x89, 0xa5, 0x61, 0x6d, 0x74, 0x19, 0x4a, 0xc2, 0x6d,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, 0xbe, 0x40, 0xfe, 0x00, 0xd0, 0x7c, 0x20, 0x41, 0x6f, + 0x40, 0x09, 0x9f, 0x61, 0x93, 0xd0, 0xef, 0x45, 0x97, 0x7a, 0x63, 0x8e, 0xde, 0x62, 0x93, 0xec, + 0x36, 0xe9, 0x02, 0xff, 0xed, 0xab, 0xad, 0x06, 0xd7, 0x7d, 0xda, 0x9a, 0x18, 0x04, 0x4f, 0x6c, + 0x72, 0xa1, 0x08, 0x6b, 0xf9, 0xe7, 0x39, 0xca, 0x36, 0x43, 0x41, 0x26, 0x76, 0x5d, 0xdd, 0x83, + 0x93, 0x0b, 0x64, 0x18, 0xcb, 0xad, 0xf5, 0x26, 0xc0, 0x50, 0x73, 0xd4, 0x4f, 0x34, 0x93, 0xe0, + 0x81, 0x58, 0xf0, 0x80, 0x04, 0x49, 0x50, 0xa1, 0xbd, 0x99, 0x83, 0x07, 0x22, 0xd9, 0xf1, 0xfa, + 0x81, 0x59, 0x96, 0xbf, 0xcb, 0x2c, 0xc3, 0x2b, 0x5c, 0x89, 0xae, 0xf0, 0x2f, 0x73, 0xfe, 0xd9, + 0xf0, 0x69, 0xf9, 0xff, 0xda, 0x2a, 0xfc, 0x8a, 0x65, 0xe7, 0xe1, 0x68, 0x8f, 0xee, 0xc1, 0xba, + 0x77, 0x3a, 0xd5, 0x19, 0x3b, 0xb5, 0xee, 0x8e, 0x5b, 0xee, 0x70, 0x37, 0xce, 0xc2, 0x62, 0x07, + 0xdd, 0x87, 0x2b, 0x11, 0xcc, 0xf1, 0x1c, 0xe7, 0x96, 0x82, 0x9e, 0x47, 0xc2, 0xd0, 0xe3, 0xfa, + 0xf5, 0x57, 0x29, 0xff, 0x9d, 0x4e, 0xc4, 0x1e, 0x4d, 0xfa, 0x82, 0xbc, 0x25, 0xf6, 0xab, 0xdf, + 0x80, 0xda, 0x14, 0x13, 0xcd, 0x30, 0xd5, 0x50, 0x42, 0xbd, 0xca, 0x85, 0x22, 0x4d, 0x3f, 0xa4,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0x66, 0xfe, + 0xcb, 0xdc, 0xe5, 0x4b, 0x4b, 0x95, 0x41, 0xa9, 0xef, 0x70, 0x12, 0xb0, 0xcc, 0xcd, 0xbe, 0xb4, + 0x54, 0x4d, 0x14, 0x9d, 0xc2, 0xfa, 0x3c, 0x45, 0x5f, 0xf6, 0x9a, 0x5f, 0x5a, 0xba, 0x46, 0x8a, + 0x0c, 0x40, 0x31, 0xb4, 0x7e, 0xe9, 0x3b, 0x7f, 0x69, 0xf9, 0x82, 0x29, 0xfa, 0x10, 0xea, 0x11, + 0xa6, 0xbc, 0xd4, 0x0f, 0x00, 0xd2, 0x72, 0x85, 0x53, 0xf4, 0x0e, 0xac, 0x86, 0xa8, 0xf5, 0x12, + 0x7f, 0x03, 0x48, 0xcb, 0x94, 0x50, 0x77, 0x5f, 0xfd, 0xe2, 0xeb, 0xcd, 0xec, 0x97, 0x5f, 0x6f, + 0x66, 0xff, 0xf2, 0xf5, 0x66, 0xf6, 0xb3, 0x6f, 0x36, 0x33, 0x5f, 0x7e, 0xb3, 0x99, 0xf9, 0xd3, + 0x37, 0x9b, 0x99, 0xf7, 0x6e, 0x0c, 0x0d, 0x32, 0x9a, 0xf5, 0xb7, 0x75, 0x6b, 0xb2, 0x33, 0x36, + 0x4c, 0xbc, 0x13, 0xf3, 0xab, 0x56, 0xbf, 0xc4, 0x82, 0xe3, 0xed, 0xff, 0x04, 0x00, 0x00, 0xff, + 0xff, 0x02, 0x9d, 0x43, 0x0a, 0xc8, 0x25, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3401,6 +3641,8 @@ type ABCIApplicationClient interface { OfferSnapshot(ctx context.Context, in *RequestOfferSnapshot, opts ...grpc.CallOption) (*ResponseOfferSnapshot, error) LoadSnapshotChunk(ctx context.Context, in *RequestLoadSnapshotChunk, opts ...grpc.CallOption) (*ResponseLoadSnapshotChunk, error) ApplySnapshotChunk(ctx context.Context, in *RequestApplySnapshotChunk, opts ...grpc.CallOption) (*ResponseApplySnapshotChunk, error) + BeginRecheckTx(ctx context.Context, in *RequestBeginRecheckTx, opts ...grpc.CallOption) (*ResponseBeginRecheckTx, error) + EndRecheckTx(ctx context.Context, in *RequestEndRecheckTx, opts ...grpc.CallOption) (*ResponseEndRecheckTx, error) } type aBCIApplicationClient struct { @@ -3546,6 +3788,24 @@ func (c *aBCIApplicationClient) ApplySnapshotChunk(ctx context.Context, in *Requ return out, nil } +func (c *aBCIApplicationClient) BeginRecheckTx(ctx context.Context, in *RequestBeginRecheckTx, opts ...grpc.CallOption) (*ResponseBeginRecheckTx, error) { + out := new(ResponseBeginRecheckTx) + err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/BeginRecheckTx", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aBCIApplicationClient) EndRecheckTx(ctx context.Context, in *RequestEndRecheckTx, opts ...grpc.CallOption) (*ResponseEndRecheckTx, error) { + out := new(ResponseEndRecheckTx) + err := c.cc.Invoke(ctx, "/ostracon.abci.ABCIApplication/EndRecheckTx", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ABCIApplicationServer is the server API for ABCIApplication service. type ABCIApplicationServer interface { Echo(context.Context, *RequestEcho) (*ResponseEcho, error) @@ -3563,6 +3823,8 @@ type ABCIApplicationServer interface { OfferSnapshot(context.Context, *RequestOfferSnapshot) (*ResponseOfferSnapshot, error) LoadSnapshotChunk(context.Context, *RequestLoadSnapshotChunk) (*ResponseLoadSnapshotChunk, error) ApplySnapshotChunk(context.Context, *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) + BeginRecheckTx(context.Context, *RequestBeginRecheckTx) (*ResponseBeginRecheckTx, error) + EndRecheckTx(context.Context, *RequestEndRecheckTx) (*ResponseEndRecheckTx, error) } // UnimplementedABCIApplicationServer can be embedded to have forward compatible implementations. @@ -3614,6 +3876,12 @@ func (*UnimplementedABCIApplicationServer) LoadSnapshotChunk(ctx context.Context func (*UnimplementedABCIApplicationServer) ApplySnapshotChunk(ctx context.Context, req *RequestApplySnapshotChunk) (*ResponseApplySnapshotChunk, error) { return nil, status.Errorf(codes.Unimplemented, "method ApplySnapshotChunk not implemented") } +func (*UnimplementedABCIApplicationServer) BeginRecheckTx(ctx context.Context, req *RequestBeginRecheckTx) (*ResponseBeginRecheckTx, error) { + return nil, status.Errorf(codes.Unimplemented, "method BeginRecheckTx not implemented") +} +func (*UnimplementedABCIApplicationServer) EndRecheckTx(ctx context.Context, req *RequestEndRecheckTx) (*ResponseEndRecheckTx, error) { + return nil, status.Errorf(codes.Unimplemented, "method EndRecheckTx not implemented") +} func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) { s.RegisterService(&_ABCIApplication_serviceDesc, srv) @@ -3889,6 +4157,42 @@ func _ABCIApplication_ApplySnapshotChunk_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } +func _ABCIApplication_BeginRecheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestBeginRecheckTx) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIApplicationServer).BeginRecheckTx(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ostracon.abci.ABCIApplication/BeginRecheckTx", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIApplicationServer).BeginRecheckTx(ctx, req.(*RequestBeginRecheckTx)) + } + return interceptor(ctx, in, info, handler) +} + +func _ABCIApplication_EndRecheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestEndRecheckTx) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ABCIApplicationServer).EndRecheckTx(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ostracon.abci.ABCIApplication/EndRecheckTx", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ABCIApplicationServer).EndRecheckTx(ctx, req.(*RequestEndRecheckTx)) + } + return interceptor(ctx, in, info, handler) +} + var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ ServiceName: "ostracon.abci.ABCIApplication", HandlerType: (*ABCIApplicationServer)(nil), @@ -3953,6 +4257,14 @@ var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ MethodName: "ApplySnapshotChunk", Handler: _ABCIApplication_ApplySnapshotChunk_Handler, }, + { + MethodName: "BeginRecheckTx", + Handler: _ABCIApplication_BeginRecheckTx_Handler, + }, + { + MethodName: "EndRecheckTx", + Handler: _ABCIApplication_EndRecheckTx_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "ostracon/abci/types.proto", @@ -4305,22 +4617,68 @@ func (m *Request_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, err } return len(dAtA) - i, nil } -func (m *RequestEcho) Marshal() (dAtA []byte, err error) { +func (m *Request_BeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) { +func (m *Request_BeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BeginRecheckTx != nil { + { + size, err := m.BeginRecheckTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} +func (m *Request_EndRecheckTx) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Request_EndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.EndRecheckTx != nil { + { + size, err := m.EndRecheckTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} +func (m *RequestEcho) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RequestEcho) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestEcho) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4500,12 +4858,12 @@ func (m *RequestInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) - if err17 != nil { - return 0, err17 + n19, err19 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + if err19 != nil { + return 0, err19 } - i -= n17 - i = encodeVarintTypes(dAtA, i, uint64(n17)) + i -= n19 + i = encodeVarintTypes(dAtA, i, uint64(n19)) i-- dAtA[i] = 0xa return len(dAtA) - i, nil @@ -4888,6 +5246,67 @@ func (m *RequestApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } +func (m *RequestBeginRecheckTx) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RequestBeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestBeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RequestEndRecheckTx) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RequestEndRecheckTx) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestEndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *Response) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5258,6 +5677,52 @@ func (m *Response_ApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, er } return len(dAtA) - i, nil } +func (m *Response_BeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Response_BeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BeginRecheckTx != nil { + { + size, err := m.BeginRecheckTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} +func (m *Response_EndRecheckTx) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Response_EndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.EndRecheckTx != nil { + { + size, err := m.EndRecheckTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} func (m *ResponseException) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5998,20 +6463,20 @@ func (m *ResponseApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, err } } if len(m.RefetchChunks) > 0 { - dAtA41 := make([]byte, len(m.RefetchChunks)*10) - var j40 int + dAtA46 := make([]byte, len(m.RefetchChunks)*10) + var j45 int for _, num := range m.RefetchChunks { for num >= 1<<7 { - dAtA41[j40] = uint8(uint64(num)&0x7f | 0x80) + dAtA46[j45] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j40++ + j45++ } - dAtA41[j40] = uint8(num) - j40++ + dAtA46[j45] = uint8(num) + j45++ } - i -= j40 - copy(dAtA[i:], dAtA41[:j40]) - i = encodeVarintTypes(dAtA, i, uint64(j40)) + i -= j45 + copy(dAtA[i:], dAtA46[:j45]) + i = encodeVarintTypes(dAtA, i, uint64(j45)) i-- dAtA[i] = 0x12 } @@ -6023,6 +6488,62 @@ func (m *ResponseApplySnapshotChunk) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } +func (m *ResponseBeginRecheckTx) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResponseBeginRecheckTx) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseBeginRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Code != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ResponseEndRecheckTx) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResponseEndRecheckTx) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResponseEndRecheckTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Code != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *ConsensusParams) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -6451,12 +6972,12 @@ func (m *Evidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x28 } - n49, err49 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) - if err49 != nil { - return 0, err49 + n54, err54 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + if err54 != nil { + return 0, err54 } - i -= n49 - i = encodeVarintTypes(dAtA, i, uint64(n49)) + i -= n54 + i = encodeVarintTypes(dAtA, i, uint64(n54)) i-- dAtA[i] = 0x22 if m.Height != 0 { @@ -6737,6 +7258,30 @@ func (m *Request_ApplySnapshotChunk) Size() (n int) { } return n } +func (m *Request_BeginRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BeginRecheckTx != nil { + l = m.BeginRecheckTx.Size() + n += 2 + l + sovTypes(uint64(l)) + } + return n +} +func (m *Request_EndRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EndRecheckTx != nil { + l = m.EndRecheckTx.Size() + n += 2 + l + sovTypes(uint64(l)) + } + return n +} func (m *RequestEcho) Size() (n int) { if m == nil { return 0 @@ -6987,6 +7532,29 @@ func (m *RequestApplySnapshotChunk) Size() (n int) { return n } +func (m *RequestBeginRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Header.Size() + n += 1 + l + sovTypes(uint64(l)) + return n +} + +func (m *RequestEndRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovTypes(uint64(m.Height)) + } + return n +} + func (m *Response) Size() (n int) { if m == nil { return 0 @@ -7191,6 +7759,30 @@ func (m *Response_ApplySnapshotChunk) Size() (n int) { } return n } +func (m *Response_BeginRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BeginRecheckTx != nil { + l = m.BeginRecheckTx.Size() + n += 2 + l + sovTypes(uint64(l)) + } + return n +} +func (m *Response_EndRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EndRecheckTx != nil { + l = m.EndRecheckTx.Size() + n += 2 + l + sovTypes(uint64(l)) + } + return n +} func (m *ResponseException) Size() (n int) { if m == nil { return 0 @@ -7539,6 +8131,30 @@ func (m *ResponseApplySnapshotChunk) Size() (n int) { return n } +func (m *ResponseBeginRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovTypes(uint64(m.Code)) + } + return n +} + +func (m *ResponseEndRecheckTx) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovTypes(uint64(m.Code)) + } + return n +} + func (m *ConsensusParams) Size() (n int) { if m == nil { return 0 @@ -8309,14 +8925,84 @@ func (m *Request) Unmarshal(dAtA []byte) error { } m.Value = &Request_ApplySnapshotChunk{v} iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeginRecheckTx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &RequestBeginRecheckTx{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &Request_BeginRecheckTx{v} + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndRecheckTx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &RequestEndRecheckTx{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &Request_EndRecheckTx{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -9991,6 +10677,158 @@ func (m *RequestApplySnapshotChunk) Unmarshal(dAtA []byte) error { } return nil } +func (m *RequestBeginRecheckTx) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RequestBeginRecheckTx: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestBeginRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RequestEndRecheckTx) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RequestEndRecheckTx: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestEndRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -10580,6 +11418,76 @@ func (m *Response) Unmarshal(dAtA []byte) error { } m.Value = &Response_ApplySnapshotChunk{v} iNdEx = postIndex + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeginRecheckTx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ResponseBeginRecheckTx{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &Response_BeginRecheckTx{v} + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndRecheckTx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ResponseEndRecheckTx{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &Response_EndRecheckTx{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) @@ -12892,6 +13800,144 @@ func (m *ResponseApplySnapshotChunk) Unmarshal(dAtA []byte) error { } return nil } +func (m *ResponseBeginRecheckTx) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResponseBeginRecheckTx: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResponseBeginRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResponseEndRecheckTx) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResponseEndRecheckTx: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResponseEndRecheckTx: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ConsensusParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/config/toml.go b/config/toml.go index 9b11b21a7..fe797e95b 100644 --- a/config/toml.go +++ b/config/toml.go @@ -556,7 +556,7 @@ var testGenesisFmt = `{ "validators": [ { "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE=" }, "power": "10", @@ -569,11 +569,11 @@ var testGenesisFmt = `{ var testPrivValidatorKey = `{ "address": "A3258DCBF45DCA0DF052981870F2D1441A36D145", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE=" }, "priv_key": { - "type": "tendermint/PrivKeyEd25519", + "type": "ostracon/PrivKeyEd25519", "value": "EVkqJO/jIXp3rkASXfh9YnyToYXRXhBr6g9cQVxPFnQBP/5povV4HTjvsy530kybxKHwEi85iU8YL0qQhSYVoQ==" } }` diff --git a/consensus/byzantine_test.go b/consensus/byzantine_test.go index 33b65ac68..4639d34bd 100644 --- a/consensus/byzantine_test.go +++ b/consensus/byzantine_test.go @@ -52,7 +52,7 @@ func TestByzantinePrevoteEquivocation(t *testing.T) { defer os.RemoveAll(thisConfig.RootDir) ensureDir(path.Dir(thisConfig.Consensus.WalFile()), 0700) // dir for wal app := appFunc() - vals := types.TM2PB.ValidatorUpdates(state.Validators) + vals := types.OST2PB.ValidatorUpdates(state.Validators) app.InitChain(abci.RequestInitChain{Validators: vals}) blockDB := memdb.NewDB() diff --git a/consensus/common_test.go b/consensus/common_test.go index 1c87c8144..9330f8e31 100644 --- a/consensus/common_test.go +++ b/consensus/common_test.go @@ -689,7 +689,7 @@ func randConsensusNet(nValidators int, testName string, tickerFunc func() Timeou } ensureDir(filepath.Dir(thisConfig.Consensus.WalFile()), 0700) // dir for wal app := appFunc() - vals := types.TM2PB.ValidatorUpdates(state.Validators) + vals := types.OST2PB.ValidatorUpdates(state.Validators) app.InitChain(abci.RequestInitChain{Validators: vals}) css[i] = newStateWithConfigAndBlockStore(thisConfig, state, privVals[i], app, stateDB) @@ -743,7 +743,7 @@ func randConsensusNetWithPeers( } app := appFunc(path.Join(config.DBDir(), fmt.Sprintf("%s_%d", testName, i))) - vals := types.TM2PB.ValidatorUpdates(state.Validators) + vals := types.OST2PB.ValidatorUpdates(state.Validators) if _, ok := app.(*kvstore.PersistentKVStoreApplication); ok { // simulate handshake, receive app version. If don't do this, replay test will fail state.Version.Consensus.App = kvstore.ProtocolVersion diff --git a/consensus/mempool_test.go b/consensus/mempool_test.go index bf02768cf..23f487af3 100644 --- a/consensus/mempool_test.go +++ b/consensus/mempool_test.go @@ -4,6 +4,7 @@ import ( "encoding/binary" "fmt" "os" + "sync" "testing" "time" @@ -153,6 +154,14 @@ func TestMempoolRmBadTx(t *testing.T) { resCommit := app.Commit() assert.True(t, len(resCommit.Data) > 0) + resBeginRecheckTx := app.BeginRecheckTx(abci.RequestBeginRecheckTx{}) + assert.Equal(t, code.CodeTypeOK, resBeginRecheckTx.Code) + + // There is no tx to recheck + + resEndRecheckTx := app.EndRecheckTx(abci.RequestEndRecheckTx{}) + assert.Equal(t, code.CodeTypeOK, resEndRecheckTx.Code) + emptyMempoolCh := make(chan struct{}) checkTxRespCh := make(chan struct{}) go func() { @@ -207,8 +216,9 @@ func TestMempoolRmBadTx(t *testing.T) { type CounterApplication struct { abci.BaseApplication - txCount int - mempoolTxCount int + txCount int + mempoolTxCount int + mempoolTxCountMtx sync.Mutex } func NewCounterApplication() *CounterApplication { @@ -232,6 +242,8 @@ func (app *CounterApplication) DeliverTx(req abci.RequestDeliverTx) abci.Respons func (app *CounterApplication) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx { txValue := txAsUint64(req.Tx) + app.mempoolTxCountMtx.Lock() + defer app.mempoolTxCountMtx.Unlock() if txValue != uint64(app.mempoolTxCount) { return abci.ResponseCheckTx{ Code: code.CodeTypeBadNonce, @@ -241,6 +253,11 @@ func (app *CounterApplication) CheckTx(req abci.RequestCheckTx) abci.ResponseChe return abci.ResponseCheckTx{Code: code.CodeTypeOK} } +func (app *CounterApplication) BeginRecheckTx(abci.RequestBeginRecheckTx) abci.ResponseBeginRecheckTx { + app.mempoolTxCount = app.txCount + return abci.ResponseBeginRecheckTx{Code: code.CodeTypeOK} +} + func txAsUint64(tx []byte) uint64 { tx8 := make([]byte, 8) copy(tx8[len(tx8)-len(tx):], tx) @@ -248,7 +265,6 @@ func txAsUint64(tx []byte) uint64 { } func (app *CounterApplication) Commit() abci.ResponseCommit { - app.mempoolTxCount = app.txCount if app.txCount == 0 { return abci.ResponseCommit{} } diff --git a/consensus/reactor_test.go b/consensus/reactor_test.go index 7471a3e71..0dfe4d965 100644 --- a/consensus/reactor_test.go +++ b/consensus/reactor_test.go @@ -142,7 +142,7 @@ func TestReactorWithEvidence(t *testing.T) { defer os.RemoveAll(thisConfig.RootDir) ensureDir(path.Dir(thisConfig.Consensus.WalFile()), 0700) // dir for wal app := appFunc() - vals := types.TM2PB.ValidatorUpdates(state.Validators) + vals := types.OST2PB.ValidatorUpdates(state.Validators) app.InitChain(abci.RequestInitChain{Validators: vals}) pv := privVals[i] diff --git a/consensus/replay.go b/consensus/replay.go index f96a59cfd..9c5b0be41 100644 --- a/consensus/replay.go +++ b/consensus/replay.go @@ -306,8 +306,8 @@ func (h *Handshaker) ReplayBlocks( validators[i] = types.NewValidator(val.PubKey, val.Power) } validatorSet := types.NewValidatorSet(validators) - nextVals := types.TM2PB.ValidatorUpdates(validatorSet) - csParams := types.TM2PB.ConsensusParams(h.genDoc.ConsensusParams) + nextVals := types.OST2PB.ValidatorUpdates(validatorSet) + csParams := types.OST2PB.ConsensusParams(h.genDoc.ConsensusParams) req := abci.RequestInitChain{ Time: h.genDoc.GenesisTime, ChainId: h.genDoc.ChainID, diff --git a/consensus/replay_stubs.go b/consensus/replay_stubs.go index 39c84b578..5c94c9fce 100644 --- a/consensus/replay_stubs.go +++ b/consensus/replay_stubs.go @@ -24,8 +24,7 @@ func (emptyMempool) CheckTx(_ types.Tx, _ func(*abci.Response), _ mempl.TxInfo) func (emptyMempool) ReapMaxBytesMaxGas(_, _ int64) types.Txs { return types.Txs{} } func (emptyMempool) ReapMaxTxs(n int) types.Txs { return types.Txs{} } func (emptyMempool) Update( - _ int64, - _ types.Txs, + _ *types.Block, _ []*abci.ResponseDeliverTx, _ mempl.PreCheckFunc, _ mempl.PostCheckFunc, diff --git a/consensus/replay_test.go b/consensus/replay_test.go index d05112181..d5557c72f 100644 --- a/consensus/replay_test.go +++ b/consensus/replay_test.go @@ -798,7 +798,7 @@ func buildAppStateFromChain(proxyApp proxy.AppConns, stateStore sm.Store, defer proxyApp.Stop() //nolint:errcheck // ignore state.Version.Consensus.App = kvstore.ProtocolVersion // simulate handshake, receive app version - validators := types.TM2PB.ValidatorUpdates(state.Validators) + validators := types.OST2PB.ValidatorUpdates(state.Validators) if _, err := proxyApp.Consensus().InitChainSync(abci.RequestInitChain{ Validators: validators, }); err != nil { @@ -848,7 +848,7 @@ func buildTMStateFromChain( defer proxyApp.Stop() //nolint:errcheck state.Version.Consensus.App = kvstore.ProtocolVersion // simulate handshake, receive app version - validators := types.TM2PB.ValidatorUpdates(state.Validators) + validators := types.OST2PB.ValidatorUpdates(state.Validators) if _, err := proxyApp.Consensus().InitChainSync(abci.RequestInitChain{ Validators: validators, }); err != nil { @@ -1218,7 +1218,7 @@ func (bs *mockBlockStore) PruneBlocks(height int64) (uint64, error) { func TestHandshakeUpdatesValidators(t *testing.T) { val, _ := types.RandValidator(true, 10) vals := types.NewValidatorSet([]*types.Validator{val}) - app := &initChainApp{vals: types.TM2PB.ValidatorUpdates(vals)} + app := &initChainApp{vals: types.OST2PB.ValidatorUpdates(vals)} clientCreator := proxy.NewLocalClientCreator(app) config := ResetConfig("handshake_test_") diff --git a/crypto/README.md b/crypto/README.md index 57ea9c716..c13ab0394 100644 --- a/crypto/README.md +++ b/crypto/README.md @@ -22,7 +22,7 @@ JSON encoding is done using tendermint's internal json encoder. For more informa Example JSON encodings: ed25519.PrivKey - {"type":"tendermint/PrivKeyEd25519","value":"EVkqJO/jIXp3rkASXfh9YnyToYXRXhBr6g9cQVxPFnQBP/5povV4HTjvsy530kybxKHwEi85iU8YL0qQhSYVoQ=="} -ed25519.PubKey - {"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="} +ed25519.PubKey - {"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="} sr25519.PrivKeySr25519 - {"type":"tendermint/PrivKeySr25519","value":"xtYVH8UCIqfrY8FIFc0QEpAEBShSG4NT0zlEOVSZ2w4="} sr25519.PubKeySr25519 - {"type":"tendermint/PubKeySr25519","value":"8sKBLKQ/OoXMcAJVxBqz1U7TyxRFQ5cmliuHy4MrF0s="} crypto.PrivKeySecp256k1 - {"type":"tendermint/PrivKeySecp256k1","value":"zx4Pnh67N+g2V+5vZbQzEyRerX9c4ccNZOVzM9RvJ0Y="} diff --git a/crypto/ed25519/ed25519.go b/crypto/ed25519/ed25519.go index bc795b33b..550187b78 100644 --- a/crypto/ed25519/ed25519.go +++ b/crypto/ed25519/ed25519.go @@ -18,8 +18,8 @@ import ( var _ crypto.PrivKey = PrivKey{} const ( - PrivKeyName = "tendermint/PrivKeyEd25519" - PubKeyName = "tendermint/PubKeyEd25519" + PrivKeyName = "ostracon/PrivKeyEd25519" + PubKeyName = "ostracon/PubKeyEd25519" // PubKeySize is is the size, in bytes, of public keys as used in this package. PubKeySize = 32 // PrivateKeySize is the size, in bytes, of private keys as used in this package. diff --git a/crypto/secp256k1/secp256k1.go b/crypto/secp256k1/secp256k1.go index 8ce0e83ca..f94aeb863 100644 --- a/crypto/secp256k1/secp256k1.go +++ b/crypto/secp256k1/secp256k1.go @@ -17,8 +17,8 @@ import ( //------------------------------------- const ( - PrivKeyName = "tendermint/PrivKeySecp256k1" - PubKeyName = "tendermint/PubKeySecp256k1" + PrivKeyName = "ostracon/PrivKeySecp256k1" + PubKeyName = "ostracon/PubKeySecp256k1" KeyType = "secp256k1" PrivKeySize = 32 diff --git a/crypto/sr25519/encoding.go b/crypto/sr25519/encoding.go index e04975164..b55e11c9a 100644 --- a/crypto/sr25519/encoding.go +++ b/crypto/sr25519/encoding.go @@ -8,8 +8,8 @@ import ( var _ crypto.PrivKey = PrivKey{} const ( - PrivKeyName = "tendermint/PrivKeySr25519" - PubKeyName = "tendermint/PubKeySr25519" + PrivKeyName = "ostracon/PrivKeySr25519" + PubKeyName = "ostracon/PubKeySr25519" // SignatureSize is the size of an Edwards25519 signature. Namely the size of a compressed // Sr25519 point, and a field element. Both of which are 32 bytes. diff --git a/docs/tendermint-core/subscription.md b/docs/tendermint-core/subscription.md index 067d0bf51..3bf379e70 100644 --- a/docs/tendermint-core/subscription.md +++ b/docs/tendermint-core/subscription.md @@ -61,7 +61,7 @@ Response: { "address": "09EAD022FD25DE3A02E64B0FE9610B1417183EE4", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "ww0z4WaZ0Xg+YI10w43wTWbBmM3dpVza4mmSQYsd0ck=" }, "voting_power": "10", diff --git a/docs/tendermint-core/using-tendermint.md b/docs/tendermint-core/using-tendermint.md index bf39d8678..043826a03 100644 --- a/docs/tendermint-core/using-tendermint.md +++ b/docs/tendermint-core/using-tendermint.md @@ -113,7 +113,7 @@ definition](https://github.com/tendermint/tendermint/blob/master/types/genesis.g { "address": "B547AB87E79F75A4A3198C57A8C2FDAF8628CB47", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "P/V6GHuZrb8rs/k1oBorxc6vyXMlnzhJmv7LmjELDys=" }, "power": "10", @@ -355,7 +355,7 @@ When `tendermint init` is run, both a `genesis.json` and { "pub_key" : { "value" : "h3hk+QE8c6QLTySp8TcfzclJw/BG79ziGB/pIA+DfPE=", - "type" : "tendermint/PubKeyEd25519" + "type" : "ostracon/PubKeyEd25519" }, "power" : 10, "name" : "" @@ -376,7 +376,7 @@ And the `priv_validator_key.json`: "address" : "B788DEDE4F50AD8BC9462DE76741CCAFF87D51E2", "pub_key" : { "value" : "h3hk+QE8c6QLTySp8TcfzclJw/BG79ziGB/pIA+DfPE=", - "type" : "tendermint/PubKeyEd25519" + "type" : "ostracon/PubKeyEd25519" }, "last_height" : "0", "priv_key" : { @@ -501,7 +501,7 @@ Now we can update our genesis file. For instance, if the new "address" : "5AF49D2A2D4F5AD4C7C8C4CC2FB020131E9C4902", "pub_key" : { "value" : "l9X9+fjkeBzDfPGbUM7AMIRE6uJN78zN5+lk5OYotek=", - "type" : "tendermint/PubKeyEd25519" + "type" : "ostracon/PubKeyEd25519" }, "priv_key" : { "value" : "EDJY9W6zlAw+su6ITgTKg2nTZcHAH1NMTW5iwlgmNDuX1f35+OR4HMN88ZtQzsAwhETq4k3vzM3n6WTk5ii16Q==", @@ -521,7 +521,7 @@ then the new `genesis.json` will be: { "pub_key" : { "value" : "h3hk+QE8c6QLTySp8TcfzclJw/BG79ziGB/pIA+DfPE=", - "type" : "tendermint/PubKeyEd25519" + "type" : "ostracon/PubKeyEd25519" }, "power" : 10, "name" : "" @@ -529,7 +529,7 @@ then the new `genesis.json` will be: { "pub_key" : { "value" : "l9X9+fjkeBzDfPGbUM7AMIRE6uJN78zN5+lk5OYotek=", - "type" : "tendermint/PubKeyEd25519" + "type" : "ostracon/PubKeyEd25519" }, "power" : 10, "name" : "" diff --git a/mempool/cache_test.go b/mempool/cache_test.go index 2187fed45..e36f36740 100644 --- a/mempool/cache_test.go +++ b/mempool/cache_test.go @@ -68,7 +68,8 @@ func TestCacheAfterUpdate(t *testing.T) { tx := types.Tx{byte(v)} updateTxs = append(updateTxs, tx) } - err := mempool.Update(int64(tcIndex), updateTxs, abciResponses(len(updateTxs), abci.CodeTypeOK), nil, nil) + err := mempool.Update(newTestBlock(int64(tcIndex), updateTxs), + abciResponses(len(updateTxs), abci.CodeTypeOK), nil, nil) require.NoError(t, err) for _, v := range tc.reAddIndices { diff --git a/mempool/clist_mempool.go b/mempool/clist_mempool.go index 383003929..234a4a140 100644 --- a/mempool/clist_mempool.go +++ b/mempool/clist_mempool.go @@ -20,6 +20,7 @@ import ( "github.com/line/ostracon/p2p" "github.com/line/ostracon/proxy" "github.com/line/ostracon/types" + "github.com/pkg/errors" ) // TxKeySize is the size of the transaction key index @@ -568,14 +569,13 @@ func (mem *CListMempool) ReapMaxTxs(max int) types.Txs { // Lock() must be help by the caller during execution. func (mem *CListMempool) Update( - height int64, - txs types.Txs, + block *types.Block, deliverTxResponses []*abci.ResponseDeliverTx, preCheck PreCheckFunc, postCheck PostCheckFunc, ) error { // Set height - mem.height = height + mem.height = block.Height mem.notifiedTxsAvailable = false if preCheck != nil { @@ -585,7 +585,7 @@ func (mem *CListMempool) Update( mem.postCheck = postCheck } - for i, tx := range txs { + for i, tx := range block.Txs { if deliverTxResponses[i].Code == abci.CodeTypeOK { // Add valid committed tx to the cache (if missing). _ = mem.cache.Push(tx) @@ -614,8 +614,28 @@ func (mem *CListMempool) Update( recheckStartTime := time.Now().UnixNano() if mem.Size() > 0 { if mem.config.Recheck { - mem.logger.Debug("recheck txs", "numtxs", mem.Size(), "height", height) - mem.recheckTxs() + mem.logger.Debug("recheck txs", "numtxs", mem.Size(), "height", block.Height) + res, err := mem.proxyAppConn.BeginRecheckTxSync(abci.RequestBeginRecheckTx{ + Header: types.OST2PB.Header(&block.Header), + }) + if res.Code == abci.CodeTypeOK && err == nil { + mem.recheckTxs() + res2, err2 := mem.proxyAppConn.EndRecheckTxSync(abci.RequestEndRecheckTx{Height: block.Height}) + if res2.Code != abci.CodeTypeOK { + return errors.New("the function EndRecheckTxSync does not respond CodeTypeOK") + } + if err2 != nil { + return errors.Wrap(err2, "the function EndRecheckTxSync returns an error") + } + } else { + if res.Code != abci.CodeTypeOK { + return errors.New("the function BeginRecheckTxSync does not respond CodeTypeOK") + } + if err != nil { + return errors.Wrap(err, "the function BeginRecheckTxSync returns an error") + } + } + // At this point, mem.txs are being rechecked. // mem.recheckCursor re-scans mem.txs and possibly removes some txs. // Before mem.Reap(), we should wait for mem.recheckCursor to be nil. diff --git a/mempool/clist_mempool_test.go b/mempool/clist_mempool_test.go index 776064cc1..f8b2c2b87 100644 --- a/mempool/clist_mempool_test.go +++ b/mempool/clist_mempool_test.go @@ -170,7 +170,8 @@ func TestMempoolFilters(t *testing.T) { {10, PreCheckMaxBytes(22), PostCheckMaxGas(0), 0}, } for tcIndex, tt := range tests { - err := mempool.Update(1, emptyTxArr, abciResponses(len(emptyTxArr), abci.CodeTypeOK), tt.preFilter, tt.postFilter) + err := mempool.Update(newTestBlock(1, emptyTxArr), + abciResponses(len(emptyTxArr), abci.CodeTypeOK), tt.preFilter, tt.postFilter) require.NoError(t, err) checkTxs(t, mempool, tt.numTxsToCreate, UnknownPeerID) require.Equal(t, tt.expectedNumTxs, mempool.Size(), "mempool had the incorrect size, on test case %d", tcIndex) @@ -186,7 +187,8 @@ func TestMempoolUpdate(t *testing.T) { // 1. Adds valid txs to the cache { - err := mempool.Update(1, []types.Tx{[]byte{0x01}}, abciResponses(1, abci.CodeTypeOK), nil, nil) + err := mempool.Update(newTestBlock(1, []types.Tx{[]byte{0x01}}), + abciResponses(1, abci.CodeTypeOK), nil, nil) require.NoError(t, err) err = mempool.CheckTx([]byte{0x01}, nil, TxInfo{}) if assert.Error(t, err) { @@ -198,7 +200,7 @@ func TestMempoolUpdate(t *testing.T) { { err := mempool.CheckTx([]byte{0x02}, nil, TxInfo{}) require.NoError(t, err) - err = mempool.Update(1, []types.Tx{[]byte{0x02}}, abciResponses(1, abci.CodeTypeOK), nil, nil) + err = mempool.Update(newTestBlock(1, []types.Tx{[]byte{0x02}}), abciResponses(1, abci.CodeTypeOK), nil, nil) require.NoError(t, err) assert.Zero(t, mempool.Size()) } @@ -207,7 +209,7 @@ func TestMempoolUpdate(t *testing.T) { { err := mempool.CheckTx([]byte{0x03}, nil, TxInfo{}) require.NoError(t, err) - err = mempool.Update(1, []types.Tx{[]byte{0x03}}, abciResponses(1, 1), nil, nil) + err = mempool.Update(newTestBlock(1, []types.Tx{[]byte{0x03}}), abciResponses(1, 1), nil, nil) require.NoError(t, err) assert.Zero(t, mempool.Size()) @@ -238,7 +240,7 @@ func TestMempool_KeepInvalidTxsInCache(t *testing.T) { // simulate new block _ = app.DeliverTx(abci.RequestDeliverTx{Tx: a}) _ = app.DeliverTx(abci.RequestDeliverTx{Tx: b}) - err = mempool.Update(1, []types.Tx{a, b}, + err = mempool.Update(newTestBlock(1, []types.Tx{a, b}), []*abci.ResponseDeliverTx{{Code: abci.CodeTypeOK}, {Code: 2}}, nil, nil) require.NoError(t, err) @@ -294,7 +296,8 @@ func TestTxsAvailable(t *testing.T) { // it should fire once now for the new height // since there are still txs left committedTxs, txs := txs[:50], txs[50:] - if err := mempool.Update(1, committedTxs, abciResponses(len(committedTxs), abci.CodeTypeOK), nil, nil); err != nil { + if err := mempool.Update(newTestBlock(1, committedTxs), + abciResponses(len(committedTxs), abci.CodeTypeOK), nil, nil); err != nil { t.Error(err) } ensureFire(t, mempool.TxsAvailable(), timeoutMS) @@ -306,7 +309,8 @@ func TestTxsAvailable(t *testing.T) { // now call update with all the txs. it should not fire as there are no txs left committedTxs = append(txs, moreTxs...) //nolint: gocritic - if err := mempool.Update(2, committedTxs, abciResponses(len(committedTxs), abci.CodeTypeOK), nil, nil); err != nil { + if err := mempool.Update(newTestBlock(2, committedTxs), + abciResponses(len(committedTxs), abci.CodeTypeOK), nil, nil); err != nil { t.Error(err) } ensureNoFire(t, mempool.TxsAvailable(), timeoutMS) @@ -365,7 +369,8 @@ func TestSerialReap(t *testing.T) { binary.BigEndian.PutUint64(txBytes, uint64(i)) txs = append(txs, txBytes) } - if err := mempool.Update(0, txs, abciResponses(len(txs), abci.CodeTypeOK), nil, nil); err != nil { + if err := mempool.Update(newTestBlock(0, txs), + abciResponses(len(txs), abci.CodeTypeOK), nil, nil); err != nil { t.Error(err) } } @@ -536,7 +541,8 @@ func TestMempoolTxsBytes(t *testing.T) { assert.EqualValues(t, 1, mempool.TxsBytes()) // 3. zero again after tx is removed by Update - err = mempool.Update(1, []types.Tx{[]byte{0x01}}, abciResponses(1, abci.CodeTypeOK), nil, nil) + err = mempool.Update(newTestBlock(1, []types.Tx{[]byte{0x01}}), + abciResponses(1, abci.CodeTypeOK), nil, nil) require.NoError(t, err) assert.EqualValues(t, 0, mempool.TxsBytes()) @@ -586,7 +592,7 @@ func TestMempoolTxsBytes(t *testing.T) { require.NotEmpty(t, res2.Data) // Pretend like we committed nothing so txBytes gets rechecked and removed. - err = mempool.Update(1, []types.Tx{}, abciResponses(0, abci.CodeTypeOK), nil, nil) + err = mempool.Update(newTestBlock(1, []types.Tx{}), abciResponses(0, abci.CodeTypeOK), nil, nil) require.NoError(t, err) assert.EqualValues(t, 0, mempool.TxsBytes()) @@ -641,6 +647,17 @@ func TestMempoolRemoteAppConcurrency(t *testing.T) { require.NoError(t, err) } +func newTestBlock(height int64, txs types.Txs) *types.Block { + return &types.Block{ + Header: types.Header{ + Height: height, + }, + Data: types.Data{ + Txs: txs, + }, + } +} + // caller must close server func newRemoteApp( t *testing.T, diff --git a/mempool/mempool.go b/mempool/mempool.go index cef9c64bf..217b29540 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -39,8 +39,7 @@ type Mempool interface { // NOTE: this should be called *after* block is committed by consensus. // NOTE: Lock/Unlock must be managed by caller Update( - blockHeight int64, - blockTxs types.Txs, + block *types.Block, deliverTxResponses []*abci.ResponseDeliverTx, newPreFn PreCheckFunc, newPostFn PostCheckFunc, diff --git a/mempool/mock/mempool.go b/mempool/mock/mempool.go index c8b328194..de0b65d4c 100644 --- a/mempool/mock/mempool.go +++ b/mempool/mock/mempool.go @@ -21,8 +21,7 @@ func (Mempool) CheckTx(_ types.Tx, _ func(*abci.Response), _ mempl.TxInfo) error func (Mempool) ReapMaxBytesMaxGas(_, _ int64) types.Txs { return types.Txs{} } func (Mempool) ReapMaxTxs(n int) types.Txs { return types.Txs{} } func (Mempool) Update( - _ int64, - _ types.Txs, + _ *types.Block, _ []*abci.ResponseDeliverTx, _ mempl.PreCheckFunc, _ mempl.PostCheckFunc, diff --git a/mempool/reactor_test.go b/mempool/reactor_test.go index 3c67644bc..d4cc3d03a 100644 --- a/mempool/reactor_test.go +++ b/mempool/reactor_test.go @@ -102,7 +102,7 @@ func TestReactorConcurrency(t *testing.T) { for i := range txs { deliverTxResponses[i] = &abci.ResponseDeliverTx{Code: 0} } - err := reactors[0].mempool.Update(1, txs, deliverTxResponses, nil, nil) + err := reactors[0].mempool.Update(newTestBlock(1, txs), deliverTxResponses, nil, nil) assert.NoError(t, err) }() @@ -114,7 +114,8 @@ func TestReactorConcurrency(t *testing.T) { reactors[1].mempool.Lock() defer reactors[1].mempool.Unlock() - err := reactors[1].mempool.Update(1, []types.Tx{}, make([]*abci.ResponseDeliverTx, 0), nil, nil) + err := reactors[1].mempool.Update(newTestBlock(1, []types.Tx{}), + make([]*abci.ResponseDeliverTx, 0), nil, nil) assert.NoError(t, err) }() diff --git a/privval/file_test.go b/privval/file_test.go index 1acdb6438..29d6fb880 100644 --- a/privval/file_test.go +++ b/privval/file_test.go @@ -132,11 +132,11 @@ func TestUnmarshalValidatorKey(t *testing.T) { serialized := fmt.Sprintf(`{ "address": "%s", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "%s" }, "priv_key": { - "type": "tendermint/PrivKeyEd25519", + "type": "ostracon/PrivKeyEd25519", "value": "%s" } }`, addr, pubB64, privB64) diff --git a/proto/ostracon/abci/types.proto b/proto/ostracon/abci/types.proto index 467499ac5..05927fe72 100644 --- a/proto/ostracon/abci/types.proto +++ b/proto/ostracon/abci/types.proto @@ -36,6 +36,8 @@ message Request { RequestOfferSnapshot offer_snapshot = 13; RequestLoadSnapshotChunk load_snapshot_chunk = 14; RequestApplySnapshotChunk apply_snapshot_chunk = 15; + RequestBeginRecheckTx begin_recheck_tx = 100; // 16~99 are reserved for merging original tendermint + RequestEndRecheckTx end_recheck_tx = 101; } } @@ -125,6 +127,14 @@ message RequestApplySnapshotChunk { string sender = 3; } +message RequestBeginRecheckTx { + ostracon.types.Header header = 1 [(gogoproto.nullable) = false]; +} + +message RequestEndRecheckTx { + int64 height = 1; +} + //---------------------------------------- // Response types @@ -146,6 +156,8 @@ message Response { ResponseOfferSnapshot offer_snapshot = 14; ResponseLoadSnapshotChunk load_snapshot_chunk = 15; ResponseApplySnapshotChunk apply_snapshot_chunk = 16; + ResponseBeginRecheckTx begin_recheck_tx = 100; // 17~99 are reserved for merging original tendermint + ResponseEndRecheckTx end_recheck_tx = 101; } } @@ -276,6 +288,14 @@ message ResponseApplySnapshotChunk { } } +message ResponseBeginRecheckTx { + uint32 code = 1; +} + +message ResponseEndRecheckTx { + uint32 code = 1; +} + //---------------------------------------- // Misc. @@ -404,4 +424,6 @@ service ABCIApplication { rpc OfferSnapshot(RequestOfferSnapshot) returns (ResponseOfferSnapshot); rpc LoadSnapshotChunk(RequestLoadSnapshotChunk) returns (ResponseLoadSnapshotChunk); rpc ApplySnapshotChunk(RequestApplySnapshotChunk) returns (ResponseApplySnapshotChunk); + rpc BeginRecheckTx(RequestBeginRecheckTx) returns (ResponseBeginRecheckTx); + rpc EndRecheckTx(RequestEndRecheckTx) returns (ResponseEndRecheckTx); } diff --git a/proxy/app_conn.go b/proxy/app_conn.go index 931662433..e012acb36 100644 --- a/proxy/app_conn.go +++ b/proxy/app_conn.go @@ -5,7 +5,8 @@ import ( "github.com/line/ostracon/abci/types" ) -//go:generate mockery --case underscore --name AppConnConsensus|AppConnMempool|AppConnQuery|AppConnSnapshot +//nolint +//go:generate mockery --case underscore --name AppConnConsensus|AppConnMempool|AppConnQuery|AppConnSnapshot|ClientCreator //---------------------------------------------------------------------------------------- // Enforce which abci msgs can be sent on a connection at the type level @@ -27,7 +28,12 @@ type AppConnMempool interface { Error() error CheckTxAsync(types.RequestCheckTx) *abcicli.ReqRes + BeginRecheckTxAsync(types.RequestBeginRecheckTx) *abcicli.ReqRes + EndRecheckTxAsync(types.RequestEndRecheckTx) *abcicli.ReqRes + CheckTxSync(types.RequestCheckTx) (*types.ResponseCheckTx, error) + BeginRecheckTxSync(types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) + EndRecheckTxSync(types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) FlushAsync() *abcicli.ReqRes FlushSync() error @@ -126,10 +132,26 @@ func (app *appConnMempool) CheckTxAsync(req types.RequestCheckTx) *abcicli.ReqRe return app.appConn.CheckTxAsync(req) } +func (app *appConnMempool) BeginRecheckTxAsync(req types.RequestBeginRecheckTx) *abcicli.ReqRes { + return app.appConn.BeginRecheckTxAsync(req) +} + +func (app *appConnMempool) EndRecheckTxAsync(req types.RequestEndRecheckTx) *abcicli.ReqRes { + return app.appConn.EndRecheckTxAsync(req) +} + func (app *appConnMempool) CheckTxSync(req types.RequestCheckTx) (*types.ResponseCheckTx, error) { return app.appConn.CheckTxSync(req) } +func (app *appConnMempool) BeginRecheckTxSync(req types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { + return app.appConn.BeginRecheckTxSync(req) +} + +func (app *appConnMempool) EndRecheckTxSync(req types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { + return app.appConn.EndRecheckTxSync(req) +} + //------------------------------------------------ // Implements AppConnQuery (subset of abcicli.Client) diff --git a/proxy/mocks/app_conn_consensus.go b/proxy/mocks/app_conn_consensus.go index f635710bd..35b4677a7 100644 --- a/proxy/mocks/app_conn_consensus.go +++ b/proxy/mocks/app_conn_consensus.go @@ -1,10 +1,10 @@ -// Code generated by mockery v2.1.0. DO NOT EDIT. +// Code generated by mockery 2.7.4. DO NOT EDIT. package mocks import ( - mock "github.com/stretchr/testify/mock" abcicli "github.com/line/ostracon/abci/client" + mock "github.com/stretchr/testify/mock" types "github.com/line/ostracon/abci/types" ) diff --git a/proxy/mocks/app_conn_mempool.go b/proxy/mocks/app_conn_mempool.go index 567dd0854..f64942ccd 100644 --- a/proxy/mocks/app_conn_mempool.go +++ b/proxy/mocks/app_conn_mempool.go @@ -1,10 +1,10 @@ -// Code generated by mockery v2.1.0. DO NOT EDIT. +// Code generated by mockery 2.7.4. DO NOT EDIT. package mocks import ( - mock "github.com/stretchr/testify/mock" abcicli "github.com/line/ostracon/abci/client" + mock "github.com/stretchr/testify/mock" types "github.com/line/ostracon/abci/types" ) @@ -14,6 +14,45 @@ type AppConnMempool struct { mock.Mock } +// BeginRecheckTxAsync provides a mock function with given fields: _a0 +func (_m *AppConnMempool) BeginRecheckTxAsync(_a0 types.RequestBeginRecheckTx) *abcicli.ReqRes { + ret := _m.Called(_a0) + + var r0 *abcicli.ReqRes + if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) *abcicli.ReqRes); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*abcicli.ReqRes) + } + } + + return r0 +} + +// BeginRecheckTxSync provides a mock function with given fields: _a0 +func (_m *AppConnMempool) BeginRecheckTxSync(_a0 types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { + ret := _m.Called(_a0) + + var r0 *types.ResponseBeginRecheckTx + if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) *types.ResponseBeginRecheckTx); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*types.ResponseBeginRecheckTx) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(types.RequestBeginRecheckTx) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CheckTxAsync provides a mock function with given fields: _a0 func (_m *AppConnMempool) CheckTxAsync(_a0 types.RequestCheckTx) *abcicli.ReqRes { ret := _m.Called(_a0) @@ -53,6 +92,45 @@ func (_m *AppConnMempool) CheckTxSync(_a0 types.RequestCheckTx) (*types.Response return r0, r1 } +// EndRecheckTxAsync provides a mock function with given fields: _a0 +func (_m *AppConnMempool) EndRecheckTxAsync(_a0 types.RequestEndRecheckTx) *abcicli.ReqRes { + ret := _m.Called(_a0) + + var r0 *abcicli.ReqRes + if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) *abcicli.ReqRes); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*abcicli.ReqRes) + } + } + + return r0 +} + +// EndRecheckTxSync provides a mock function with given fields: _a0 +func (_m *AppConnMempool) EndRecheckTxSync(_a0 types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { + ret := _m.Called(_a0) + + var r0 *types.ResponseEndRecheckTx + if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) *types.ResponseEndRecheckTx); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*types.ResponseEndRecheckTx) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(types.RequestEndRecheckTx) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // Error provides a mock function with given fields: func (_m *AppConnMempool) Error() error { ret := _m.Called() diff --git a/proxy/mocks/app_conn_query.go b/proxy/mocks/app_conn_query.go index 3a4446b5c..eec6053ed 100644 --- a/proxy/mocks/app_conn_query.go +++ b/proxy/mocks/app_conn_query.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.1.0. DO NOT EDIT. +// Code generated by mockery 2.7.4. DO NOT EDIT. package mocks diff --git a/proxy/mocks/app_conn_snapshot.go b/proxy/mocks/app_conn_snapshot.go index 8811a29c2..0c37135a9 100644 --- a/proxy/mocks/app_conn_snapshot.go +++ b/proxy/mocks/app_conn_snapshot.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.1.0. DO NOT EDIT. +// Code generated by mockery 2.7.4. DO NOT EDIT. package mocks diff --git a/proxy/mocks/client_creator.go b/proxy/mocks/client_creator.go index 7c86a09c8..69f80af56 100644 --- a/proxy/mocks/client_creator.go +++ b/proxy/mocks/client_creator.go @@ -1,10 +1,10 @@ -// Code generated by mockery v1.1.1. DO NOT EDIT. +// Code generated by mockery 2.7.4. DO NOT EDIT. package mocks import ( - mock "github.com/stretchr/testify/mock" abcicli "github.com/line/ostracon/abci/client" + mock "github.com/stretchr/testify/mock" ) // ClientCreator is an autogenerated mock type for the ClientCreator type diff --git a/rpc/openapi/openapi.yaml b/rpc/openapi/openapi.yaml index 31cf047f6..3df5c5a65 100644 --- a/rpc/openapi/openapi.yaml +++ b/rpc/openapi/openapi.yaml @@ -1202,7 +1202,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "A6DoBUypNtUAyEHWtQ9bFjfNg8Bo9CrnkUGl6k6OHN4=" @@ -1646,7 +1646,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM=" @@ -1805,7 +1805,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "cOQZvh/h9ZioSeUMZB/1Vy1Xo5x2sjrVjlE/qHnYifM=" @@ -2702,7 +2702,7 @@ components: properties: type: type: string - example: "tendermint/PubKeyEd25519" + example: "ostracon/PubKeyEd25519" value: type: string example: "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM=" diff --git a/state/execution.go b/state/execution.go index fe03c891c..5d7b68744 100644 --- a/state/execution.go +++ b/state/execution.go @@ -258,8 +258,7 @@ func (blockExec *BlockExecutor) Commit( // Update mempool. updateMempoolStartTime := time.Now().UnixNano() err = blockExec.mempool.Update( - block.Height, - block.Txs, + block, deliverTxResponses, TxPreCheck(state), TxPostCheck(state), @@ -383,7 +382,7 @@ func getBeginBlockValidatorInfo(block *types.Block, store Store, for i, val := range lastValSet.Validators { commitSig := block.LastCommit.Signatures[i] voteInfos[i] = abci.VoteInfo{ - Validator: types.TM2PB.Validator(val), + Validator: types.OST2PB.Validator(val), SignedLastBlock: !commitSig.Absent(), } } diff --git a/state/execution_test.go b/state/execution_test.go index 6a148ea30..832c4e0ac 100644 --- a/state/execution_test.go +++ b/state/execution_test.go @@ -181,14 +181,14 @@ func TestBeginBlockByzantineValidators(t *testing.T) { Type: abci.EvidenceType_DUPLICATE_VOTE, Height: 3, Time: defaultEvidenceTime, - Validator: types.TM2PB.Validator(state.Validators.Validators[0]), + Validator: types.OST2PB.Validator(state.Validators.Validators[0]), TotalVotingPower: 10, }, { Type: abci.EvidenceType_LIGHT_CLIENT_ATTACK, Height: 8, Time: defaultEvidenceTime, - Validator: types.TM2PB.Validator(state.Validators.Validators[0]), + Validator: types.OST2PB.Validator(state.Validators.Validators[0]), TotalVotingPower: 12, }, } diff --git a/state/helpers_test.go b/state/helpers_test.go index de0673b48..e4dc554ec 100644 --- a/state/helpers_test.go +++ b/state/helpers_test.go @@ -166,8 +166,8 @@ func makeHeaderPartsResponsesValPubKeyChange( if !bytes.Equal(pubkey.Bytes(), val.PubKey.Bytes()) { abciResponses.EndBlock = &abci.ResponseEndBlock{ ValidatorUpdates: []abci.ValidatorUpdate{ - types.TM2PB.NewValidatorUpdate(val.PubKey, 0), - types.TM2PB.NewValidatorUpdate(pubkey, 10), + types.OST2PB.NewValidatorUpdate(val.PubKey, 0), + types.OST2PB.NewValidatorUpdate(pubkey, 10), }, } } @@ -191,7 +191,7 @@ func makeHeaderPartsResponsesValPowerChange( if val.VotingPower != power { abciResponses.EndBlock = &abci.ResponseEndBlock{ ValidatorUpdates: []abci.ValidatorUpdate{ - types.TM2PB.NewValidatorUpdate(val.PubKey, power), + types.OST2PB.NewValidatorUpdate(val.PubKey, power), }, } } @@ -207,7 +207,7 @@ func makeHeaderPartsResponsesParams( block := makeBlock(state, state.LastBlockHeight+1) abciResponses := &tmstate.ABCIResponses{ BeginBlock: &abci.ResponseBeginBlock{}, - EndBlock: &abci.ResponseEndBlock{ConsensusParamUpdates: types.TM2PB.ConsensusParams(¶ms)}, + EndBlock: &abci.ResponseEndBlock{ConsensusParamUpdates: types.OST2PB.ConsensusParams(¶ms)}, } return block.Header, types.BlockID{Hash: block.Hash(), PartSetHeader: types.PartSetHeader{}}, abciResponses } diff --git a/state/state_test.go b/state/state_test.go index 6c42996c3..bcdb54f2e 100644 --- a/state/state_test.go +++ b/state/state_test.go @@ -111,7 +111,7 @@ func TestABCIResponsesSaveLoad1(t *testing.T) { abciResponses.DeliverTxs[0] = &abci.ResponseDeliverTx{Data: []byte("foo"), Events: nil} abciResponses.DeliverTxs[1] = &abci.ResponseDeliverTx{Data: []byte("bar"), Log: "ok", Events: nil} abciResponses.EndBlock = &abci.ResponseEndBlock{ValidatorUpdates: []abci.ValidatorUpdate{ - types.TM2PB.NewValidatorUpdate(ed25519.GenPrivKey().PubKey(), 10), + types.OST2PB.NewValidatorUpdate(ed25519.GenPrivKey().PubKey(), 10), }} err := stateStore.SaveABCIResponses(block.Height, abciResponses) diff --git a/test/maverick/consensus/replay.go b/test/maverick/consensus/replay.go index decac3712..2b857627a 100644 --- a/test/maverick/consensus/replay.go +++ b/test/maverick/consensus/replay.go @@ -307,8 +307,8 @@ func (h *Handshaker) ReplayBlocks( validators[i] = types.NewValidator(val.PubKey, val.Power) } validatorSet := types.NewValidatorSet(validators) - nextVals := types.TM2PB.ValidatorUpdates(validatorSet) - csParams := types.TM2PB.ConsensusParams(h.genDoc.ConsensusParams) + nextVals := types.OST2PB.ValidatorUpdates(validatorSet) + csParams := types.OST2PB.ConsensusParams(h.genDoc.ConsensusParams) req := abci.RequestInitChain{ Time: h.genDoc.GenesisTime, ChainId: h.genDoc.ChainID, diff --git a/test/maverick/consensus/replay_stubs.go b/test/maverick/consensus/replay_stubs.go index 39c84b578..5c94c9fce 100644 --- a/test/maverick/consensus/replay_stubs.go +++ b/test/maverick/consensus/replay_stubs.go @@ -24,8 +24,7 @@ func (emptyMempool) CheckTx(_ types.Tx, _ func(*abci.Response), _ mempl.TxInfo) func (emptyMempool) ReapMaxBytesMaxGas(_, _ int64) types.Txs { return types.Txs{} } func (emptyMempool) ReapMaxTxs(n int) types.Txs { return types.Txs{} } func (emptyMempool) Update( - _ int64, - _ types.Txs, + _ *types.Block, _ []*abci.ResponseDeliverTx, _ mempl.PreCheckFunc, _ mempl.PostCheckFunc, diff --git a/tools/tm-signer-harness/internal/test_harness_test.go b/tools/tm-signer-harness/internal/test_harness_test.go index 05537e299..e037c61cc 100644 --- a/tools/tm-signer-harness/internal/test_harness_test.go +++ b/tools/tm-signer-harness/internal/test_harness_test.go @@ -21,11 +21,11 @@ const ( keyFileContents = `{ "address": "D08FCA3BA74CF17CBFC15E64F9505302BB0E2748", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "ZCsuTjaczEyon70nmKxwvwu+jqrbq5OH3yQjcK0SFxc=" }, "priv_key": { - "type": "tendermint/PrivKeyEd25519", + "type": "ostracon/PrivKeyEd25519", "value": "8O39AkQsoe1sBQwud/Kdul8lg8K9SFsql9aZvwXQSt1kKy5ONpzMTKifvSeYrHC/C76Oqturk4ffJCNwrRIXFw==" } }` @@ -60,7 +60,7 @@ const ( { "address": "D08FCA3BA74CF17CBFC15E64F9505302BB0E2748", "pub_key": { - "type": "tendermint/PubKeyEd25519", + "type": "ostracon/PubKeyEd25519", "value": "ZCsuTjaczEyon70nmKxwvwu+jqrbq5OH3yQjcK0SFxc=" }, "power": "10", diff --git a/types/evidence.go b/types/evidence.go index 418427dc4..e5e814f3d 100644 --- a/types/evidence.go +++ b/types/evidence.go @@ -205,7 +205,7 @@ func (l *LightClientAttackEvidence) ABCI() []abci.Evidence { for idx, val := range l.ByzantineValidators { abciEv[idx] = abci.Evidence{ Type: abci.EvidenceType_LIGHT_CLIENT_ATTACK, - Validator: TM2PB.Validator(val), + Validator: OST2PB.Validator(val), Height: l.Height(), Time: l.Timestamp, TotalVotingPower: l.TotalVotingPower, diff --git a/types/genesis_test.go b/types/genesis_test.go index 042784a9b..cfec05940 100644 --- a/types/genesis_test.go +++ b/types/genesis_test.go @@ -29,7 +29,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"validators":[` + `{"pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}` + `]}`, ), @@ -37,7 +37,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"chain_id": "Lorem ipsum dolor sit amet, consectetuer adipiscing", "validators": [` + `{"pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}` + `]}`, ), @@ -45,7 +45,7 @@ func TestGenesisBad(t *testing.T) { []byte( `{"chain_id":"mychain", "validators":[` + `{"address": "A", "pub_key":{` + - `"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + + `"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="` + `},"power":"10","name":""}` + `]}`, ), @@ -66,7 +66,7 @@ func TestGenesisGood(t *testing.T) { "initial_height": "1000", "consensus_params": null, "validators": [{ - "pub_key":{"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}, + "pub_key":{"type":"ostracon/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}, "power":"10", "name":"" }], diff --git a/types/protobuf.go b/types/protobuf.go index aee652f74..c158ce044 100644 --- a/types/protobuf.go +++ b/types/protobuf.go @@ -26,13 +26,13 @@ var ABCIPubKeyTypesToNames = map[string]string{ //------------------------------------------------------- -// TM2PB is used for converting Tendermint ABCI to protobuf ABCI. +// OST2PB is used for converting Ostracon ABCI to protobuf ABCI. // UNSTABLE -var TM2PB = tm2pb{} +var OST2PB = ost2pb{} -type tm2pb struct{} +type ost2pb struct{} -func (tm2pb) Header(header *Header) tmproto.Header { +func (ost2pb) Header(header *Header) tmproto.Header { return tmproto.Header{ Version: header.Version, ChainID: header.ChainID, @@ -55,21 +55,21 @@ func (tm2pb) Header(header *Header) tmproto.Header { } } -func (tm2pb) Validator(val *Validator) abci.Validator { +func (ost2pb) Validator(val *Validator) abci.Validator { return abci.Validator{ Address: val.PubKey.Address(), Power: val.VotingPower, } } -func (tm2pb) BlockID(blockID BlockID) tmproto.BlockID { +func (ost2pb) BlockID(blockID BlockID) tmproto.BlockID { return tmproto.BlockID{ Hash: blockID.Hash, - PartSetHeader: TM2PB.PartSetHeader(blockID.PartSetHeader), + PartSetHeader: OST2PB.PartSetHeader(blockID.PartSetHeader), } } -func (tm2pb) PartSetHeader(header PartSetHeader) tmproto.PartSetHeader { +func (ost2pb) PartSetHeader(header PartSetHeader) tmproto.PartSetHeader { return tmproto.PartSetHeader{ Total: header.Total, Hash: header.Hash, @@ -77,7 +77,7 @@ func (tm2pb) PartSetHeader(header PartSetHeader) tmproto.PartSetHeader { } // XXX: panics on unknown pubkey type -func (tm2pb) ValidatorUpdate(val *Validator) abci.ValidatorUpdate { +func (ost2pb) ValidatorUpdate(val *Validator) abci.ValidatorUpdate { pk, err := cryptoenc.PubKeyToProto(val.PubKey) if err != nil { panic(err) @@ -89,15 +89,15 @@ func (tm2pb) ValidatorUpdate(val *Validator) abci.ValidatorUpdate { } // XXX: panics on nil or unknown pubkey type -func (tm2pb) ValidatorUpdates(vals *ValidatorSet) []abci.ValidatorUpdate { +func (ost2pb) ValidatorUpdates(vals *ValidatorSet) []abci.ValidatorUpdate { validators := make([]abci.ValidatorUpdate, vals.Size()) for i, val := range vals.Validators { - validators[i] = TM2PB.ValidatorUpdate(val) + validators[i] = OST2PB.ValidatorUpdate(val) } return validators } -func (tm2pb) ConsensusParams(params *tmproto.ConsensusParams) *abci.ConsensusParams { +func (ost2pb) ConsensusParams(params *tmproto.ConsensusParams) *abci.ConsensusParams { return &abci.ConsensusParams{ Block: &abci.BlockParams{ MaxBytes: params.Block.MaxBytes, @@ -109,7 +109,7 @@ func (tm2pb) ConsensusParams(params *tmproto.ConsensusParams) *abci.ConsensusPar } // XXX: panics on nil or unknown pubkey type -func (tm2pb) NewValidatorUpdate(pubkey crypto.PubKey, power int64) abci.ValidatorUpdate { +func (ost2pb) NewValidatorUpdate(pubkey crypto.PubKey, power int64) abci.ValidatorUpdate { pubkeyABCI, err := cryptoenc.PubKeyToProto(pubkey) if err != nil { panic(err) diff --git a/types/protobuf_test.go b/types/protobuf_test.go index f3986af4c..3a38990bb 100644 --- a/types/protobuf_test.go +++ b/types/protobuf_test.go @@ -35,18 +35,18 @@ func TestABCIValidators(t *testing.T) { tmVal := NewValidator(pkEd, 10) - abciVal := TM2PB.ValidatorUpdate(tmVal) + abciVal := OST2PB.ValidatorUpdate(tmVal) tmVals, err := PB2TM.ValidatorUpdates([]abci.ValidatorUpdate{abciVal}) assert.Nil(t, err) assert.Equal(t, tmValExpected, tmVals[0]) - abciVals := TM2PB.ValidatorUpdates(NewValidatorSet(tmVals)) + abciVals := OST2PB.ValidatorUpdates(NewValidatorSet(tmVals)) assert.Equal(t, []abci.ValidatorUpdate{abciVal}, abciVals) // val with address tmVal.Address = pkEd.Address() - abciVal = TM2PB.ValidatorUpdate(tmVal) + abciVal = OST2PB.ValidatorUpdate(tmVal) tmVals, err = PB2TM.ValidatorUpdates([]abci.ValidatorUpdate{abciVal}) assert.Nil(t, err) assert.Equal(t, tmValExpected, tmVals[0]) @@ -54,7 +54,7 @@ func TestABCIValidators(t *testing.T) { func TestABCIConsensusParams(t *testing.T) { cp := DefaultConsensusParams() - abciCP := TM2PB.ConsensusParams(cp) + abciCP := OST2PB.ConsensusParams(cp) cp2 := UpdateConsensusParams(*cp, abciCP) assert.Equal(t, *cp, cp2) @@ -72,17 +72,17 @@ func (pubKeyEddie) Type() string { return "pubKey func TestABCIValidatorFromPubKeyAndPower(t *testing.T) { pubkey := ed25519.GenPrivKey().PubKey() - abciVal := TM2PB.NewValidatorUpdate(pubkey, 10) + abciVal := OST2PB.NewValidatorUpdate(pubkey, 10) assert.Equal(t, int64(10), abciVal.Power) - assert.Panics(t, func() { TM2PB.NewValidatorUpdate(nil, 10) }) - assert.Panics(t, func() { TM2PB.NewValidatorUpdate(pubKeyEddie{}, 10) }) + assert.Panics(t, func() { OST2PB.NewValidatorUpdate(nil, 10) }) + assert.Panics(t, func() { OST2PB.NewValidatorUpdate(pubKeyEddie{}, 10) }) } func TestABCIValidatorWithoutPubKey(t *testing.T) { pkEd := ed25519.GenPrivKey().PubKey() - abciVal := TM2PB.Validator(NewValidator(pkEd, 10)) + abciVal := OST2PB.Validator(NewValidator(pkEd, 10)) // pubkey must be nil tmValExpected := abci.Validator{