aboutsummaryrefslogtreecommitdiffstats
path: root/les/odr_test.go
Commit message (Collapse)AuthorAgeFilesLines
* les: fixed selectPeer deadlock, improved request distributionZsolt Felfoldi2017-01-061-4/+5
| | | | les/flowcontrol: using proper types for relative and absolute times
* core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-051-2/+2
| | | | | | | | | | | | | | | 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.
* les: improved header fetcher and server statisticsZsolt Felfoldi2016-12-101-3/+5
|
* core, core/vm: implemented a generic environment (#3348)Jeffrey Wilcke2016-12-061-3/+12
| | | | | | | | 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.
* core/types: turn off nonce checking for Call messagesZsolt Felfoldi2016-11-141-2/+2
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-131-54/+5
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-7/+9
| | | | | | | | | | | | | | | 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>
* all: update license informationFelix Lange2016-11-091-0/+16
|
* core/types: remove header accessorsFelix Lange2016-11-091-1/+1
| | | | | | 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.
* les: light client protocol and APIZsolt Felfoldi2016-11-091-0/+222