mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-09 05:20:10 +00:00
s/GetHash/Commit/g
This commit is contained in:
@@ -54,7 +54,7 @@ func (app *CounterApplication) CheckTx(tx []byte) (code types.CodeType, result [
|
||||
return types.CodeType_OK, nil, ""
|
||||
}
|
||||
|
||||
func (app *CounterApplication) GetHash() (hash []byte, log string) {
|
||||
func (app *CounterApplication) Commit() (hash []byte, log string) {
|
||||
app.hashCount += 1
|
||||
|
||||
if app.txCount == 0 {
|
||||
|
||||
@@ -42,7 +42,7 @@ func (app *DummyApplication) CheckTx(tx []byte) (code types.CodeType, result []b
|
||||
return types.CodeType_OK, nil, ""
|
||||
}
|
||||
|
||||
func (app *DummyApplication) GetHash() (hash []byte, log string) {
|
||||
func (app *DummyApplication) Commit() (hash []byte, log string) {
|
||||
hash = app.state.Hash()
|
||||
return hash, ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user