Péter Szilágyi
5258785c81
cmd, core, eth/tracers: support fancier js tracing ( #15516 )
...
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
7 years ago
Paweł Bylica
fb5f25eeee
core/vm: Remove snapshot param from Interpreter.Run()
7 years ago
Felix Lange
be12392fba
core/vm: track 63/64 call gas off stack ( #15563 )
...
* core/vm: track 63/64 call gas off stack
Gas calculations in gasCall* relayed the available gas for calls by
replacing it on the stack. This lead to inconsistent traces, which we
papered over by copying the pre-execution stack in trace mode.
This change relays available gas using a temporary variable, off the
stack, and allows removing the weird copy.
* core/vm: remove stackCopy
* core/vm: pop call gas into pool
* core/vm: to -> addr
7 years ago
Péter Szilágyi
b0190189a3
core/vm, internal/ethapi: tracer no full storage, nicer json output ( #15499 )
...
* core/vm, internal/ethapi: tracer no full storage, nicer json output
* core/vm, internal/ethapi: omit disabled trace fields
7 years ago
Jay Guo
924098c6e5
core/vm: fix typos in jump_table.go
7 years ago
Martin Holst Swende
96ddf27a48
core/vm: copyright header on test-file
7 years ago
ferhat elmas
86f6568f66
build: enable unconvert linter ( #15456 )
...
* build: enable unconvert linter
- fixes #15453
- update code base for failing cases
* cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
7 years ago
Péter Szilágyi
a91e682234
core/vm: check opcode stack before readonly enforcement
7 years ago
cdetrio
673007d7ae
core/vm: standard vm traces ( #15035 )
7 years ago
Martin Holst Swende
9be07de539
params: Updated finalized gascosts for ECMUL/MODEXP ( #15135 )
...
* params: Updated finalized gascosts for ECMUL/MODEXP
* core,tests: Updates pending new tests
* tests: Updated with new tests
* core: revert state transition bugfix
* tests: Add expected failures due to #15119
7 years ago
Péter Szilágyi
5bbd7fb390
consensus, core, params: rebrand Metro to Byzantium
7 years ago
Felix Lange
42a5b54bf5
core/vm: improve bitvec comments
7 years ago
Martin Holst Swende
d6681ed360
core/vm: Rename + updated doc on jumpdest analysis
7 years ago
Martin Holst Swende
e7408b5552
core/vm: Make MaxCodesize non-retroactive ( #15072 )
...
* core/vm: Make max_codesize only applicable post Spurious Dragon/158/155/161/170
* tests: Remove expected failure
7 years ago
Martin Holst Swende
23b51a68cb
core/vm: avoid state lookup during gas calc for call ( #15061 )
7 years ago
Martin Holst Swende
07635e43e2
core/vm: renamed struct member + go fmt
7 years ago
Martin Holst Swende
64a3a3d23c
core/vm: Fix testcase input for ecmul
7 years ago
Martin Holst Swende
bc2a5578c0
core/vm: more benchmarks
7 years ago
Péter Szilágyi
08f27428b4
core, tests: implement Metropolis EIP 684
7 years ago
Péter Szilágyi
b872961ec8
consensus, core, tests: implement Metropolis EIP 649
7 years ago
Felix Lange
54b1de67e2
core/vm: make jumpdest code nicer
7 years ago
Martin Holst Swende
286ec5df40
cmd/evm, core/vm, internal/ethapi: Show error when exiting ( #14985 )
...
* cmd/evm, core/vm, internal/ethapi: Add 'err' to tracer interface CaptureEnd
* cmd/evm: fix nullpointer when there is no error
7 years ago
rjl493456442
28aea46ac0
core: implement Metropolis EIP 658, receipt status byte
7 years ago
Ti Zhou
2fd5ba6bd4
core/vm: fix typo in method documentation ( #15019 )
...
Signed-off-by: Ti Zhou <tizhou1986@gmail.com>
7 years ago
Péter Szilágyi
f9fb70d2ee
core/vm: rework reversion to work on a higher level
7 years ago
Péter Szilágyi
1335a6cc8c
core/vm, crypto/bn256: fix bn256 use and pairing corner case
7 years ago
Jeffrey Wilcke
b70a73cd3e
core/vm: implement REVERT metropolis opcode
7 years ago
Péter Szilágyi
4e0fea4d30
core/vm: polish RETURNDATA, add missing returns to CALL*
7 years ago
Jeffrey Wilcke
9bd6068fef
core/vm: implement RETURNDATA metropolis opcodes
7 years ago
Péter Szilágyi
3df7142b3e
core/vm: minor polishes, fix STATICCALL for precompiles
...
* Fix STATICCALL so it is able to call precompiles too
* Fix write detection to use the correct value argument of CALL
* Fix write protection to ignore the value in CALLCODE
7 years ago
Jeffrey Wilcke
3d123bcde6
core/vm: implement metropolis static call opcode
7 years ago
Péter Szilágyi
f8d8b56b28
core/vm: optimize copy-less data retrievals
7 years ago
Martin Holst Swende
d8aaa3a215
core/vm: benchmarking of metro precompiles
7 years ago
Péter Szilágyi
6131dd55c5
core/vm: polish precompile contract code, add tests and benches
...
* Update modexp gas calculation to new version
* Fix modexp modulo 0 special case to return zero
7 years ago
Martin Holst Swende
967e097faa
core/vm: Address review concerns
7 years ago
Jeffrey Wilcke
7bbdf3e268
core: add Metropolis pre-compiles (EIP 197, 198 and 213)
7 years ago
Joel Burget
833eeb9f23
core/vm/runtime: remove unused state parameter to NewEnv ( #14953 )
...
* core: Remove unused `state` parameter to `NewEnv`.
`cfg.State` is used instead.
* core/vm/runtime: remove unused import
7 years ago
evgk
0cc9b8791e
core/vm: fix typo in comment ( #14894 )
7 years ago
cdetrio
ffebf00114
core/vm/runtime: fix evm command to use --gasprice flag value
7 years ago
Felix Lange
3e0dbe0eaa
core/vm: remove logging and add section labels to struct logs ( #14782 )
7 years ago
Martin Holst Swende
6dc32e897a
core/vm: add benchmarks for some ops and precompiles ( #14641 )
7 years ago
Martin Holst Swende
e4301564c2
core/vm : fix testcase for gas calculation
7 years ago
Martin Holst Swende
bae7565231
core/vm: fix overflow in gas calculation formula
7 years ago
Felix Lange
9e5f03b6c4
core/state: access trie through Database interface, track errors ( #14589 )
...
With this commit, core/state's access to the underlying key/value database is
mediated through an interface. Database errors are tracked in StateDB and
returned by CommitTo or the new Error method.
Motivation for this change: We can remove the light client's duplicated copy of
core/state. The light client now supports node iteration, so tracing and storage
enumeration can work with the light client (not implemented in this commit).
7 years ago
Martin Holst Swende
9a44e1035e
cmd/evm, core/vm: add --nomemory, --nostack to evm ( #14617 )
8 years ago
Martin Holst Swende
ac9865791a
core/vm, common/math: Add doc about Byte, fix format
8 years ago
Martin Holst Swende
80f7c6c299
cmd/evm: add --prestate, --sender, --json flags for fuzzing ( #14476 )
8 years ago
Martin Holst Swende
1496b3aff6
common/math, core/vm: Un-expose bigEndianByteAt, use correct terms for endianness
8 years ago
Martin Holst Swende
f4b5f67ee0
core/vm: improved jumpdest analysis
8 years ago
Martin Holst Swende
3285a0fda3
core/vm, common/math: Add fast getByte for bigints, improve opByte
8 years ago