Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | all: unify big.Int zero checks, use common/math in more places (#3716) | Felix Lange | 2017-02-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/math: optimize PaddedBigBytes, use it more name old time/op new time/op delta PaddedBigBytes-8 71.1ns ± 5% 46.1ns ± 1% -35.15% (p=0.000 n=20+19) name old alloc/op new alloc/op delta PaddedBigBytes-8 48.0B ± 0% 32.0B ± 0% -33.33% (p=0.000 n=20+20) * all: unify big.Int zero checks Various checks were in use. This commit replaces them all with Int.Sign, which is cheaper and less code. eg templates: func before(x *big.Int) bool { return x.BitLen() == 0 } func after(x *big.Int) bool { return x.Sign() == 0 } func before(x *big.Int) bool { return x.BitLen() > 0 } func after(x *big.Int) bool { return x.Sign() != 0 } func before(x *big.Int) int { return x.Cmp(common.Big0) } func after(x *big.Int) int { return x.Sign() } * common/math, crypto/secp256k1: make ReadBits public in package math | ||||
* | all: blidly swap out glog to our log15, logs need rework | Péter Szilágyi | 2017-02-23 | 1 | -11/+10 |
| | |||||
* | logger: remove Core verbosity level (#3659) | Felix Lange | 2017-02-15 | 1 | -3/+3 |
| | |||||
* | core, core/vm: implemented a generic environment (#3348) | Jeffrey Wilcke | 2016-12-06 | 1 | -1/+1 |
| | | | | | | | | Environment is now a struct (not an interface). This reduces a lot of tech-debt throughout the codebase where a virtual machine environment had to be implemented in order to test or run it. The new environment is suitable to be used en the json tests, core consensus and light client. | ||||
* | light: implemented VMState.Empty() (#3357) | Felföldi Zsolt | 2016-11-28 | 1 | -2/+7 |
| | |||||
* | light: light chain, VM env and tx pool | Zsolt Felfoldi | 2016-11-09 | 1 | -11/+31 |
| | |||||
* | light: fix memory expansion bug (same as fix for core/state) | Gustav Simonsson | 2016-09-20 | 1 | -1/+1 |
| | |||||
* | core/state, light: remove unused StateObject.initCode | Gustav Simonsson | 2016-09-19 | 1 | -3/+0 |
| | |||||
* | all: update license information | Felix Lange | 2016-04-15 | 1 | -1/+1 |
| | |||||
* | all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() | Ricardo Catalinas Jiménez | 2016-02-22 | 1 | -2/+2 |
| | | | | As we aren't really using the standarized SHA-3 | ||||
* | rpc: migrated the RPC insterface to a new reflection based RPC layer | Bas van Kervel | 2016-01-26 | 1 | -1/+1 |
| | |||||
* | light: implemented odr-capable trie and state structures | zsfelfoldi | 2015-12-17 | 1 | -0/+267 |