obscuren
38c61f6f25
core, core/vm: added structure logging
...
This also reduces the time required spend in the VM
10 years ago
obscuren
ff5b3ef087
core/vm: added structured logging
10 years ago
obscuren
468501cb86
core/vm: changed program counter to uint64
10 years ago
Felix Lange
48fb0c3213
core/vm: check for 'no code' before doing any work
10 years ago
Felix Lange
ea2718c946
core/vm: improve JUMPDEST analysis
...
* JUMPDEST analysis is faster because less type conversions are performed.
* The map of JUMPDEST locations is now created lazily at the first JUMP.
* The result of the analysis is kept around for recursive invocations
through CALL/CALLCODE.
Fixes #1147
10 years ago
obscuren
b419e2631a
core/vm: Cleanups & SUB output fix. Closes #1096
10 years ago
obscuren
f5af1fdca8
core/vm: RETURN op code returns pointer to memory rather than copy
10 years ago
obscuren
1c872ddf4b
Changed how logs are being recorded
...
Logs are now recorded per transactions instead of tossing them out after
each transaction. This should also fix an issue with
`eth_getFilterLogs` (#629 ) Also now implemented are the `transactionHash,
blockHash, transactionIndex, logIndex` on logs. Closes #654 .
10 years ago
obscuren
a0e44e3281
basic glog
10 years ago
Gustav Simonsson
c26c8d3a44
Read most protocol params from common/params.json
...
* Add params package with exported variables generated from
github.com/ethereum/common/blob/master/params.json
* Use params package variables in applicable places
* Add check for minimum gas limit in validation of block's gas limit
* Remove common/params.json from go-ethereum to avoid
outdated version of it
10 years ago
obscuren
0a554a1f27
Blocktest fixed, Execution fixed
...
* Added new CreateAccount method which properly overwrites previous
accounts (excluding balance)
* Fixed block tests (100% success)
10 years ago
obscuren
368ebe63a9
Cleanup VM.
...
* CALLDATA use getData
* removed old context get range value
* removed casting big => int for some cases
* pc now big int #457
10 years ago
obscuren
3b7e4173ce
Cleanup VM
10 years ago
obscuren
3ea8c7301e
PUSH gas fix
10 years ago
obscuren
8a22cd5e6c
Removed defer/panic. #503
10 years ago
obscuren
ff9d66e096
Cleaned up changes
10 years ago
obscuren
ebf4408d73
Decrement depth
10 years ago
obscuren
0330077d76
moved state and vm to core
10 years ago
obscuren
df5901fdc5
Removed more casts
10 years ago
obscuren
a756dbeb7b
Removed uint casts
10 years ago
obscuren
cf45b939a0
fixed tests
10 years ago
obscuren
d7ab716eea
Fixed mkdnode & added some tests
10 years ago
obscuren
0fa7859b94
Fixed VM & Tests w/ conversion
10 years ago
obscuren
515d9432fc
converted vm
10 years ago
obscuren
843db4978e
updated blockpool
10 years ago
obscuren
4e181c5764
Moved gas
10 years ago
obscuren
91b0b14845
converted vm
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
obscuren
f76cc6699e
Changed context and ADDMOD, MULMOD
...
* Cleaned up VM execution. VM run now takes a context
* ADDMOD/MULMOD - removed incorrect cast
10 years ago
obscuren
80592f244d
more obvious failure for ethtest
10 years ago
obscuren
310ca62285
Removed some of that gas pre pay magic
10 years ago
obscuren
347cb272be
fixed ethtest
10 years ago
obscuren
83cc08f670
Changed to big.Int.Not
10 years ago
obscuren
08b1154033
Changed logging to use internal logger
10 years ago
obscuren
9007f2bbdc
reworked stack
10 years ago
obscuren
19efebe91e
Updated tests and fixed suicide
10 years ago
obscuren
ed84b58af5
Debug option for VM & command line flag
10 years ago
Felix Lange
bdba044a80
ethutil: remove Config variable
...
Various functions throughout the codebase used it to grab settings. This
has to stop because I want to use them without reading the config file.
These functions can now be used without reading the config first:
* ethdb.NewLDBDatabase
* ethrepl.NewJSRepl
* vm.New
10 years ago
obscuren
88ff13c241
Spec changes.
...
* All errors during state transition result in an invalid tx
10 years ago
obscuren
fa831206c6
Updated gast costs
10 years ago
obscuren
ba0a758d8c
Quad mem & log changes
10 years ago
obscuren
fa910966ed
Redone rlp
10 years ago
obscuren
c1ef19bef9
quad mem
10 years ago
obscuren
200f66537c
updated tests
10 years ago
obscuren
b383ff0b96
New gas prices model
10 years ago
obscuren
7adf065b10
Simple effective VM optimisation
...
Added a debug flag to the VM which determines if VM output is shown
regardless of the log level set.
10 years ago
obscuren
e235b57234
Fixed consensus issue for refunding
...
* Refund should _always_ go to the origin
10 years ago
obscuren
37e6870f64
wip
10 years ago
obscuren
bba85a2074
Added Number to logs
10 years ago
Gustav Simonsson
fd3793b8cf
Correct stack size validation for MUL, CALLDATACOPY, EXTCODESIZE, BLOCKHASH
10 years ago