server: allow multiple connections

This commit is contained in:
Ethan Buchman
2015-11-29 03:44:08 -05:00
parent c21c2ed69b
commit fe782cb8ac
2 changed files with 13 additions and 5 deletions

View File

@ -2,7 +2,6 @@ package example
import (
"encoding/binary"
"fmt"
. "github.com/tendermint/go-common"
"github.com/tendermint/tmsp/types"
@ -40,7 +39,6 @@ func (dapp *CounterApplication) AppendTx(tx []byte) ([]types.Event, types.RetCod
}
func (dapp *CounterApplication) GetHash() ([]byte, types.RetCode) {
fmt.Println("getting hash!")
hash := make([]byte, 32)
binary.PutVarint(hash, int64(dapp.hashCount))
dapp.hashCount += 1