aboutsummaryrefslogtreecommitdiffstats
path: root/core/headerchain.go
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3723 from karalabe/logger-updates-2Péter Szilágyi2017-02-281-22/+15
|\ | | | | Logger updates
| * core, log: track field length and pad to alignPéter Szilágyi2017-02-281-2/+2
| |
| * all: next batch of log polishes to contextual versionsPéter Szilágyi2017-02-281-22/+15
| |
* | all: unify big.Int zero checks, use common/math in more places (#3716)Felix Lange2017-02-281-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 reworkPéter Szilágyi2017-02-231-12/+11
|
* core: improve import log alignmentFelix Lange2017-01-111-1/+1
|
* core: import future blocks one-by-one, enfore chain ancestryPéter Szilágyi2016-12-131-0/+11
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-4/+5
| | | | | | | | | | | | | | | This commit implements EIP158 part 1, 2, 3 & 4 1. If an account is empty it's no longer written to the trie. An empty account is defined as (balance=0, nonce=0, storage=0, code=0). 2. Delete an empty account if it's touched 3. An empty account is redefined as either non-existent or empty. 4. Zero value calls and zero value suicides no longer consume the 25k reation costs. params: moved core/config to params Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org>
* common, core, eth/downloader: adjust import log formattingPéter Szilágyi2016-10-181-2/+7
|
* core: ensure the canonical block is written before the canonical hash is setBas van Kervel2016-08-161-7/+11
|
* core: improved chainDb using sequential keyszsfelfoldi2016-06-071-28/+69
|
* all: update license informationFelix Lange2016-04-151-0/+1
|
* core: added basic chain configurationJeffrey Wilcke2016-04-011-7/+12
| | | | | | | | | Added chain configuration options and write out during genesis database insertion. If no "config" was found, nothing is written to the database. Configurations are written on a per genesis base. This means that any chain (which is identified by it's genesis hash) can have their own chain settings.
* core: cache fresh headers and tds to avoid db trashingPéter Szilágyi2016-03-111-18/+50
|
* core: create a header chain structure shared by core.BlockChain and ↵zsfelfoldi2016-03-101-0/+432
light.LightChain