aboutsummaryrefslogtreecommitdiffstats
path: root/les
Commit message (Collapse)AuthorAgeFilesLines
* 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