Upped version number

This commit is contained in:
obscuren
2014-04-27 16:50:44 +02:00
parent 05d2d8f27d
commit 16e52327a4
9 changed files with 129 additions and 12 deletions

View File

@ -50,3 +50,11 @@ func BigCopy(src *big.Int) (ret *big.Int) {
return
}
func BigMax(x, y *big.Int) *big.Int {
if x.Cmp(y) <= 0 {
return x
}
return y
}

View File

@ -38,5 +38,12 @@ var (
Big1 = big.NewInt(1)
Big2 = big.NewInt(1)
Big0 = big.NewInt(0)
Big32 = big.NewInt(32)
Big256 = big.NewInt(0xff)
)
func CreateAddress(b []byte, nonce *big.Int) []byte {
addrBytes := append(b, nonce.Bytes()...)
return Sha3Bin(addrBytes)[12:]
}

View File

@ -48,7 +48,7 @@ func ReadConfig(base string) *config {
}
}
Config = &config{ExecPath: path, Debug: true, Ver: "0.3.1"}
Config = &config{ExecPath: path, Debug: true, Ver: "0.5"}
Config.Log = NewLogger(LogFile|LogStd, LogLevelDebug)
Config.SetClientString("/Ethereum(G)")
}