Gustav Simonsson
147a699c65
Add missing err checks on From() (skip RPC for now)
10 years ago
Gustav Simonsson
32276e8b01
Update StateTests and nil create return on failed code deposit
10 years ago
obscuren
6184781b49
Improved transaction pool
...
The transaction pool will now some easily be able to pre determine the
validity of a transaction by checking the following:
* Account existst
* gas limit higher than the instrinsic gas
* enough funds to pay upfront costs
* nonce check
10 years ago
obscuren
1889727144
Moved logging to logger.Core
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
ff9d66e096
Cleaned up changes
10 years ago
obscuren
23bccbbc58
Modified according to poc 9 changes
...
* Refund of value
10 years ago
obscuren
576df064e5
Updated for PV59
...
* Value XFER are refunded back to the sender if the execution fails
10 years ago
obscuren
0330077d76
moved state and vm to core
10 years ago
obscuren
0a1eeca41e
conversions. -compilable-
10 years ago
obscuren
0fa7859b94
Fixed VM & Tests w/ conversion
10 years ago
Felix Lange
17c5ba2b6b
core: actually convert transaction pool
10 years ago
Felix Lange
27f7aa0163
core: adapt Message for new Transaction.From signature
10 years ago
obscuren
515d9432fc
converted vm
10 years ago
obscuren
94505146a2
updated vm env
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
obscuren
03403399fc
Return proper error
10 years ago
obscuren
310ca62285
Removed some of that gas pre pay magic
10 years ago
obscuren
c01d4c2f4c
Lowered default gas price and increased default gas limit
10 years ago
obscuren
477815c044
Improved error reporting and removed commented code
10 years ago
Felix Lange
2ee88a220a
core: remove Hash method from Message interface
...
This will simplify the next commmit. Hash was only used for logging.
10 years ago
obscuren
88ff13c241
Spec changes.
...
* All errors during state transition result in an invalid tx
10 years ago
obscuren
c74c07eed1
Fixed error for invalid transaction
10 years ago
obscuren
fa831206c6
Updated gast costs
10 years ago
obscuren
b383ff0b96
New gas prices model
10 years ago
obscuren
3ab05ddd25
Bump
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
ea9a549bbd
Removed exported fields from state object and added proper set/getters
10 years ago
obscuren
fa4cbad315
Optimisations and fixed a couple of DDOS issues in the miner
10 years ago
obscuren
30fa30bd4a
Docs & old code removed
10 years ago
obscuren
8ccde784f9
Added (disabled) Jit validation
10 years ago
obscuren
82beaabf6a
Fixed consensus issue
10 years ago
obscuren
ca1b2a1a91
Changed prev_hash to block_hash, state transition now uses vm env
...
* PREVHASH => BLOCKHASH( N )
* State transition object uses VMEnv as it's query interface
* Updated vm.Enviroment has GetHash( n ) for BLOCKHASH instruction
* Added GetHash to xeth, core, utils & test environments
10 years ago
obscuren
4dc7ee9087
Closure => Context
10 years ago
obscuren
1508a23a6f
Minor updates on gas and removed/refactored old code.
10 years ago
obscuren
f5b8f3d41b
Removed OOG check. Revert should always happen.
10 years ago
obscuren
0e93b98533
Transaction was generating incorrect hash because of var changes
10 years ago
obscuren
3325683794
Fixed refund model
10 years ago
obscuren
198cc69357
Gas corrections and vm fixes
10 years ago
obscuren
5ad473d758
Moved methods to messages
10 years ago
obscuren
db494170dc
Created generic message (easy for testing)
10 years ago
obscuren
008e91db6a
null ptr fix
10 years ago
obscuren
f298ffdbb8
Renamed State => StateDB
10 years ago
obscuren
9008b155d3
Renamed `chain` => `core`
10 years ago
obscuren
99853ac3ce
Moved execution from vm to chain.
...
This moves call and create to the specified environments. Vms are no
longer re-used. Vm uses environment's Call(Code) and Create in order to
execute new contracts or transfer value between accounts.
State transition now uses the same mechanism described above.
10 years ago
obscuren
f778922086
Set proper message value
10 years ago
obscuren
61556ef01d
GasData changes & removed min gas price
10 years ago
obscuren
a1b6a9ac29
Begin of moving objects to types package
...
* Block(s)
* Transaction(s)
10 years ago