draft of consensus+state code, compiles.

This commit is contained in:
Jae Kwon
2014-09-04 03:32:38 -07:00
parent e53b148acf
commit f030c69495
13 changed files with 222 additions and 217 deletions

View File

@ -33,13 +33,6 @@ func randTime() time.Time {
return time.Unix(int64(randUInt64()), 0)
}
func randAccount() Account {
return Account{
Id: randUInt64(),
PubKey: randBytes(32),
}
}
func randBytes(n int) []byte {
bs := make([]byte, n)
for i := 0; i < n; i++ {