s/GetHash/Commit/g

This commit is contained in:
Jae Kwon
2016-02-14 13:11:06 -08:00
parent 851b961daf
commit 88fcacac7a
9 changed files with 48 additions and 48 deletions

View File

@@ -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 {

View File

@@ -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, ""
}