tmsp batch and some tests

This commit is contained in:
Ethan Buchman
2015-12-01 01:49:54 -05:00
parent 86c2484c29
commit 3e721456f5
4 changed files with 150 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ func (appC *CounterAppContext) AppendTx(tx []byte) ([]types.Event, types.RetCode
func (appC *CounterAppContext) GetHash() ([]byte, types.RetCode) {
hash := make([]byte, 32)
binary.PutVarint(hash, int64(appC.hashCount))
binary.PutVarint(hash, int64(appC.txCount))
appC.hashCount += 1
return hash, 0
}