Commit graph

10181 commits

Author SHA1 Message Date
Guillaume Ballet
ec0d4d73cc core/vm: two sigs were wrong 2018-12-11 16:30:22 +01:00
Guillaume Ballet
634755bf63 core/vm: fix build 2018-11-29 13:52:13 +01:00
Guillaume Ballet
90f926cfce core/vm: fix post init metering 2018-11-24 22:56:08 +01:00
Guillaume Ballet
ac0f688edd core vm: Revert calls when balance > 128bits 2018-11-24 15:35:19 +01:00
Guillaume Ballet
ccec71b3ff core/vm: cleanup 2018-11-24 00:04:09 +01:00
Guillaume Ballet
ac29f81f80 core/vm: Fix all fixable tests
Non-passing tests still need to be discussed in
https://github.com/ewasm/hera/issues/457 and
https://github.com/ewasm/hera/issues/456
2018-11-22 19:01:55 +01:00
Guillaume Ballet
43b668a471 core/vm: activate EWASM on the testnet 2018-10-24 15:54:05 +02:00
Guillaume Ballet
972931c10b core/vm: fix metering
Node is now able to synchronize with the
testnet when passing geth the option:
`--vm.ewasm="metering:true"`.
2018-10-21 18:54:52 +02:00
Guillaume Ballet
8fb0c4b53d cmd/ewasm: Tweak the way wasm files are executed
This can now be used to test code metering
by running the sentinel contract
2018-10-21 15:44:32 +02:00
Guillaume Ballet
b2482f5a4a core/vm: fix metering contract support
Still some issues for when the creation tx fails
2018-10-20 17:35:06 +02:00
Guillaume Ballet
a59a081e4c core/vm: caught an issue in type declaration 2018-10-11 13:33:16 +02:00
Guillaume Ballet
0f775eaf2d core/vm: unvendor wagon 2018-10-11 13:09:03 +02:00
Guillaume Ballet
c4b48d1196 core/vm: fix some issues with metering 2018-10-09 11:05:18 +02:00
Guillaume Ballet
be16aabe6f core/vm: meter contracts
This is achieved by passing `--vm.ewasm="metering:true"` to geth
2018-10-08 14:04:23 +02:00
Guillaume Ballet
78d789cd28 core/vm: fix merge issue 2018-10-05 15:15:41 +02:00
Guillaume Ballet
d870b94e47 core/vm: Re-style eWASM into ewasm as per review request 2018-10-05 15:15:41 +02:00
Guillaume Ballet
0a7495c1c8 core/vm: Reintroduce some changes that got lost in the merge 2018-10-05 15:15:41 +02:00
Guillaume Ballet
ae38665a35 core/vm: Remove EnableWagon after merge
Wagon should be enabled by default when having EWASMBlock set to 0.
2018-10-05 15:15:41 +02:00
Guillaume Ballet
8054399e1b core/vm: fix some tests 2018-10-05 15:15:41 +02:00
Guillaume Ballet
ea221535f5 core/vm: fix linter issue 2018-10-05 15:15:41 +02:00
Guillaume Ballet
d812571beb cmd/ewasm: fix ci builds 2018-10-05 15:15:41 +02:00
Guillaume Ballet
9927596822 core/vm: Add wagon/wasm as an interpreter
* Implement the ewasm module and the EEI.
 * Add an ewasm standalone binary to test standalone files
 * use reflection to declare EEI module exports
 * check the module name when importing EEI functions
 * make eeiFuncs a function to avoid an init loop issue in call
 * Add a reference to the ewasm tests
 * wagon implementation of the Interpreter interface
 * update to wagon's PR #59 and uses the Process structure
 * Adapt to endianness change
 * All tests but 1 passing
 * CanRun only checks for the header
 * Add a "debug" module to support "printHex" in contracts

Notes:
  * There are very little checks, e.g. of
     the call depths and so on.
2018-10-05 15:15:41 +02:00
Péter Szilágyi
5d3b7bb023
Merge pull request #17839 from karalabe/downloader-invalid-hash-chain-fix
eth/downloader: fix invalid hash chain error due to head mini reorg
2018-10-05 11:03:38 +03:00
Péter Szilágyi
6ee3b26f44
eth/downloader: fix invalid hash chain error due to head mini reorg 2018-10-05 10:45:02 +03:00
Martin Holst Swende
092df3ab59 core/vm: SHA3 word cost for CREATE2 (#17812)
* core/vm: create2 address generation tests

* core/vm: per byte cost of CREATE2

* core/vm: fix linter issue in test
2018-10-05 10:32:35 +03:00
Martin Holst Swende
81375a3801
tests: do not exit early on log hash mismatch (#17844) 2018-10-05 08:35:31 +02:00
Péter Szilágyi
d79602d2d4
Merge pull request #17843 from karalabe/ropsten-block-and-chts
params: add ropsten fork delay, update les checkpoints
2018-10-04 22:10:53 +03:00
Péter Szilágyi
ff7fad18fb
params: add ropsten fork delay, update les checkpoints 2018-10-04 19:14:53 +03:00
Martin Holst Swende
89a32451ae core/vm: faster create/create2 (#17806)
* core/vm/runtim: benchmark create/create2

* core/vm: do less hashing in CREATE2

* core/vm: avoid storing jumpdest analysis for initcode

* core/vm: avoid unneccesary lookups, remove unused fields

* core/vm: go formatting tests

* core/vm: save jumpdest analysis locally

* core/vm: use common.Hash instead of nil, fix review comments

* core/vm: removed type destinations

* core/vm: correct check for empty hash

* eth: more elegant api_tracer

* core/vm: address review concerns
2018-10-04 18:15:37 +03:00
Anton Evangelatov
8c63d0d2e4 swarm/storage: extract isValid. correctly remove invalid chunks from store on migration (#17835) 2018-10-04 18:13:48 +03:00
Felix Lange
1895059119 p2p: add enode URL to PeerInfo (#17838) 2018-10-04 18:13:21 +03:00
Péter Szilágyi
127553253e
Merge pull request #17801 from eosclassicteam/patch-1
Enable constantinople on Ropsten testnet
2018-10-04 12:36:15 +03:00
Liang Ma
ff6e0351ab eth: fixed the minor typo inside the comments (#17830) 2018-10-04 12:35:24 +03:00
Felix Lange
b8a0daf0cc cmd/puppeth: fix node URL in health check (#17802)
* cmd/puppeth: fix node URL in health check

* cmd/puppeth: set external IP for geth

* cmd/puppeth: fix enode cast issue
2018-10-04 12:34:49 +03:00
cdetrio
bfa0f96822 cmd/evm: fix state dump (#17832) 2018-10-04 10:22:41 +02:00
Anton Evangelatov
82a1c771ef cmd/swarm: disable tests under Windows until they are fixed (#17827) 2018-10-04 09:18:03 +02:00
Felföldi Zsolt
9d06b2c5f3 core: use ChainHeadEvent subscription in the chain indexer (#17826) 2018-10-03 17:25:25 +03:00
Viktor Trón
e5677114dc
Merge pull request #17796 from epiclabs-io/mru-feeds
swarm/storage/feeds: Renamed MRU to Swarm Feeds
2018-10-03 14:59:41 +02:00
Anton Evangelatov
303b99663e
swarm: schemas and migrations (#17813) 2018-10-03 14:31:59 +02:00
Péter Szilágyi
14bef9a2db
core: fix unnecessary ancestor lookup after a fast sync (#17825) 2018-10-03 13:42:19 +03:00
Samuel Marks
d3a773c284 travis, appveyor: bump to Go 1.11.1 (#17820) 2018-10-03 13:41:24 +03:00
Javier Peletier
de01178c18 swarm/storage/feed: Renamed package 2018-10-03 09:15:28 +02:00
Javier Peletier
696bc9b01c swarm/storage/feeds: renamed vars that can conflict with package name 2018-10-03 09:12:06 +02:00
Javier Peletier
58c0879c2f swarm/storage/feeds: removed capital Feed throughout 2018-10-03 09:12:06 +02:00
Javier Peletier
68b8088cb9 swarm: Changed owners. 2018-10-03 09:12:06 +02:00
Javier Peletier
b6ccc06cda swarm/storage/feeds: Final package rename and moved files 2018-10-03 09:12:06 +02:00
Javier Peletier
83705ef6aa swarm/storage/mru: Renamed rest of MRU references 2018-10-03 09:12:06 +02:00
Javier Peletier
b35622cf3c swarm/storage/mru: Renamed all comments to Feeds 2018-10-03 09:12:06 +02:00
Javier Peletier
f1e86ad9cf swarm/storage/mru: Renamed all identifiers to Feeds 2018-10-03 09:12:06 +02:00
Elad
bd1f7ebda2 cmd/swarm: fix appveyor build (#17808) 2018-10-02 14:59:58 +02:00