aboutsummaryrefslogtreecommitdiffstats
path: root/les
Commit message (Collapse)AuthorAgeFilesLines
* eth, les, swarm: fix go vet issues sufraced by log15Péter Szilágyi2017-02-231-1/+1
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-238-124/+121
|
* params: core, core/vm, miner: 64bit gas instructionsJeffrey Wilcke2017-02-142-5/+7
| | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"Jeffrey Wilcke2017-02-132-7/+5
| | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757.
* params: core, core/vm, miner: 64bit gas instructions (#3514)Jeffrey Wilcke2017-02-022-5/+7
| | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* les, cmd/util: disable topic discovery with --nodiscoverZsolt Felfoldi2017-01-271-3/+9
|
* les: remove delayed les server startingZsolt Felfoldi2017-01-261-27/+3
|
* les: add unknown peers to server pool instead of rejecting themZsolt Felfoldi2017-01-262-38/+45
|
* Merge pull request #3579 from bas-vk/natspecPéter Szilágyi2017-01-171-2/+0
|\ | | | | cmd,eth,les,internal: remove natspec support
| * cmd,eth,les,internal: remove natspec supportBas van Kervel2017-01-171-2/+0
| |
* | cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-171-1/+2
|/
* les: fixed transaction sending deadlock (#3568)Felföldi Zsolt2017-01-161-1/+0
|
* Merge pull request #3535 from fjl/all-ineffassignPéter Szilágyi2017-01-101-2/+1
|\ | | | | all: fix ineffectual assignments
| * all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-091-2/+1
| | | | | | | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* | Merge pull request #3519 from zsfelfoldi/light-topic5Péter Szilágyi2017-01-0910-121/+271
|\ \ | |/ |/| les: fixed selectPeer deadlock, improved request distribution
| * les: fixed selectPeer deadlock, improved request distributionZsolt Felfoldi2017-01-0610-121/+271
| | | | | | | | les/flowcontrol: using proper types for relative and absolute times
* | all: fix spelling errorsPéter Szilágyi2017-01-071-1/+1
| |
* | all: gofmt -w -sFelix Lange2017-01-068-21/+21
| |
* | Merge pull request #3516 from fjl/types-drop-sign-ecdsaPéter Szilágyi2017-01-061-7/+7
|\ \ | | | | | | core/types: remove redundant SignECDSA wrappers, rename to SignTx
| * | core/types: remove redundant SignECDSA wrappers, rename to SignTxFelix Lange2017-01-051-7/+7
| |/
* / core/vm: move Log to core/typesFelix Lange2017-01-061-1/+1
|/ | | | | | | | This significantly reduces the dependency closure of ethclient, which no longer depends on core/vm as of this change. All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too, the constructor simply returned a literal.
* core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-052-4/+4
| | | | | | | | | | | | | | | The run loop, which previously contained custom opcode executes have been removed and has been simplified to a few checks. Each operation consists of 4 elements: execution function, gas cost function, stack validation function and memory size function. The execution function implements the operation's runtime behaviour, the gas cost function implements the operation gas costs function and greatly depends on the memory and stack, the stack validation function validates the stack and makes sure that enough items can be popped off and pushed on and the memory size function calculates the memory required for the operation and returns it. This commit also allows the EVM to go unmetered. This is helpful for offline operations such as contract calls.
* cmd/utils, eth, les: bubble --fakepow flag into eth/les tooPéter Szilágyi2017-01-041-4/+2
|
* rpc: remove HexNumber, replace all uses with hexutil typesFelix Lange2016-12-201-2/+3
| | | | | This change couldn't be automated because HexNumber was used for numbers of all sizes.
* Merge pull request #3413 from zsfelfoldi/light-topic4Felix Lange2016-12-1313-472/+1778
|\ | | | | les, p2p/discv5: implement server pool, improve peer selection, light fetcher and topic searching
| * les, light: add block availability check for ODR requestsZsolt Felfoldi2016-12-105-6/+59
| |
| * eth, les: defer starting LES service until ETH initial sync is finishedZsolt Felfoldi2016-12-102-3/+29
| |
| * les: using random request IDsZsolt Felfoldi2016-12-103-11/+10
| |
| * les: improved header fetcher and server statisticsZsolt Felfoldi2016-12-109-481/+801
| |
| * les: fixed light fetcher request ID matchingZsolt Felfoldi2016-12-082-5/+11
| |
| * les: implement light server poolZsolt Felfoldi2016-12-085-45/+947
| |
* | core: bugfix state change race condition in txpool (#3412)bas-vk2016-12-112-3/+7
|/ | | | | | | | The transaction pool keeps track of the current nonce in its local pendingState. When a new block comes in the pendingState is reset. During the reset it fetches multiple times the current state through the use of the currentState callback. When a second block comes in during the reset its possible that the state changes during the reset. If that block holds transactions that are currently in the pool the local pendingState that is used to determine nonces can get out of sync.
* core, core/vm: implemented a generic environment (#3348)Jeffrey Wilcke2016-12-062-6/+17
| | | | | | | | 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.
* cmd, ethstats, les, mobile, params: native netstats (#3336)Péter Szilágyi2016-11-251-0/+1
|
* common/httpclient, les: removed httpclientJeffrey Wilcke2016-11-251-3/+0
|
* les: fixed loggingJeffrey Wilcke2016-11-161-1/+1
|
* core/types: turn off nonce checking for Call messagesZsolt Felfoldi2016-11-141-2/+2
|
* p2p/discv5: fixed bootnode connect issuesZsolt Felfoldi2016-11-141-2/+3
|
* les/flowcontrol: fixed locking schemeZsolt Felfoldi2016-11-141-4/+7
|
* Merge pull request #3179 from obscuren/eip-158Felix Lange2016-11-145-80/+41
|\ | | | | EIP158 & 160 Hardfork
| * core/types, params: EIP#155Jeffrey Wilcke2016-11-133-62/+24
| |
| * core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-135-18/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | les: cleaned up logging (#3256)Jeffrey Wilcke2016-11-132-24/+29
|/
* les: add missing nil check and handle quit in findServersZsolt Felfoldi2016-11-111-2/+5
|
* les: print 'experimental feature' warning on startupFelix Lange2016-11-091-0/+3
|
* all: update license informationFelix Lange2016-11-0919-22/+89
|
* core/types: remove header accessorsFelix Lange2016-11-094-7/+7
| | | | | | These accessors were introduced by light client changes, but the only method that is actually used is GetNumberU64. This commit replaces all uses of .GetNumberU64 with .Number.Uint64.
* p2p/discv5: added new topic discovery packageZsolt Felfoldi2016-11-094-5/+53
|
* les: light client protocol and APIZsolt Felfoldi2016-11-0919-0/+5087