-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tendermint: Update to master #6471
Changes from all commits
8d258c2
ac995e3
80ec7b3
1398a99
df5ec42
38a0d01
012b486
332aa29
c6116b6
581dbf4
7026c42
a540a84
735a2e3
c0869ca
c6be83b
7ccba89
b20f010
13f02f3
910255f
4a19534
f7a79e3
4e1c82e
5f85168
72029d9
dfee53a
b7b7ed4
fb48b41
dbe492c
043fd1c
2ae8e58
ca2290d
98e09f6
e268f3d
0853145
f0cb879
087d836
4029572
ec1ead2
09a8bbb
b26eef6
f86ae3e
14c08ce
11049c7
bbbef3d
c5bc810
1a8ca72
9da421e
d166479
1c36d51
0b887d0
7ebc066
b4ab5ec
6f46118
101133d
436a728
ff815fa
fb5c2ac
80505e0
96a317c
13af89c
ace32bd
01fd97f
ecf36ed
d72ad43
cae7fc9
ca011ee
a780ed0
df13158
bf0ead2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ import ( | |
"syscall" | ||
"time" | ||
|
||
"github.com/gogo/protobuf/proto" | ||
abci "github.com/tendermint/tendermint/abci/types" | ||
tmproto "github.com/tendermint/tendermint/proto/tendermint/types" | ||
|
||
"github.com/cosmos/cosmos-sdk/codec" | ||
"github.com/cosmos/cosmos-sdk/telemetry" | ||
|
@@ -19,7 +21,7 @@ import ( | |
// InitChain implements the ABCI interface. It runs the initialization logic | ||
// directly on the CommitMultiStore. | ||
func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitChain) { | ||
initHeader := abci.Header{ChainID: req.ChainId, Time: req.Time} | ||
initHeader := tmproto.Header{ChainID: req.ChainId, Time: req.Time} | ||
|
||
// initialize the deliver state and check state with a correct header | ||
app.setDeliverState(initHeader) | ||
|
@@ -56,7 +58,7 @@ func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitC | |
sort.Sort(abci.ValidatorUpdates(res.Validators)) | ||
|
||
for i, val := range res.Validators { | ||
if !val.Equal(req.Validators[i]) { | ||
if !proto.Equal(&val, &req.Validators[i]) { | ||
panic(fmt.Errorf("genesisValidators[%d] != req.Validators[%d] ", i, i)) | ||
} | ||
} | ||
|
@@ -552,3 +554,19 @@ func splitPath(requestPath string) (path []string) { | |
|
||
return path | ||
} | ||
|
||
func (app *BaseApp) ListSnapshots(abci.RequestListSnapshots) abci.ResponseListSnapshots { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we plan on supporting state sync for stargate? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, there is a separate PR that integrates it but it's blocked on this PR. anyways these are added as no-ops for now |
||
return abci.ResponseListSnapshots{} | ||
} | ||
|
||
func (app *BaseApp) OfferSnapshot(abci.RequestOfferSnapshot) abci.ResponseOfferSnapshot { | ||
return abci.ResponseOfferSnapshot{} | ||
} | ||
|
||
func (app *BaseApp) LoadSnapshotChunk(abci.RequestLoadSnapshotChunk) abci.ResponseLoadSnapshotChunk { | ||
return abci.ResponseLoadSnapshotChunk{} | ||
} | ||
|
||
func (app *BaseApp) ApplySnapshotChunk(abci.RequestApplySnapshotChunk) abci.ResponseApplySnapshotChunk { | ||
return abci.ResponseApplySnapshotChunk{} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be removed? I imagine IAVL bugs will now be reported to cosmos and not tendermint