| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(cherry picked from commit 710435b51b97b4c688b70bda35ab9d1aa704a988)
|
|
|
|
|
|
|
| |
This change introduces a global, per-state cache that keeps account data
in the canon state. Thanks to @karalabe for lots of fixes.
(cherry picked from commit a59a93f476434f2805c8fd3e10bf1b2f579b078f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
transactions
Consensus rules dictate that objects can only be removed during the
finalisation of the transaction (i.e. after all calls have finished).
Thus calling a suicided contract twice from the same transaction:
A->B(S)->ret(A)->B(S) results in 2 suicides. Calling the suicided
object twice from two transactions: A->B(S), A->B, results in only one
suicide and a call to an empty object.
Our current debug tracing functionality replays all transaction that
were executed prior to the targetted transaction in order to provide
the user with an accurate trace.
As a side effect to calling StateDB.IntermediateRoot it also deletes any
suicides objects. Our tracing code never calls this function because it
isn't interested in the intermediate root. Becasue of this it caused a
bug in the tracing code where transactions that were send to priviously
deleted objects resulted in two suicides rather than one suicide and a
call to an empty object.
Fixes #2542
(cherry picked from commit bb3651abc865c6f6babec0d357afa85f5a539d83)
|
|
|
|
| |
(cherry picked from commit f86ea9aad5b14051d5d311591148387b2e6da725)
|
|
|
|
|
|
| |
not estimate and call
(cherry picked from commit 1580ec180414bce1e37acc614bc2445f778efb75)
|
|
|
|
|
|
|
| |
Sign transaction returned the unsigned transaction rather than the
signed one.
(cherry picked from commit 4b1a7d3868e796ee70f62985379e59f933a2aca0)
|
|
|
|
|
|
|
|
| |
(cherry picked from commit 64a6c2c1b6c81fddccc7d3d728b7a05c5814124b)
Conflicts:
cmd/geth/js.go
internal/web3ext/web3ext.go
|
|
|
|
| |
Fixes #2525
|
| |
|
|\
| |
| | |
eth: add personal_importRawKey
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
Context keys must have a unique type in order to prevent
any unintented clashes. The code used int(1) as key.
Fix it by implementing the pattern recommended by package context.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- Sign takes common.Address, not Account
- Import/Export methods work with encrypted JSON keys
|
| |
|
|
|
|
|
|
| |
- Manager.Accounts no longer returns an error.
- Manager methods take Account instead of common.Address.
- All uses of Account with unkeyed fields are converted.
|
|
|
|
|
|
|
|
| |
rpc: be less restrictive on the request id
rpc: improved documentation
console: upgrade web3.js to version 0.16.0
rpc: cache http connections
rpc: rename wsDomains parameter to wsOrigins
|
| |
|
|\
| |
| | |
eth: enforce signing hashes using eth_sign instead of arbitrary data
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Exposes some core methods to transition and compute new state
information and adds an additional return value to the transition db
method to fetch required gas for that particular message (excluding gas
refunds from any SSTORE[X] = 0 and SUICIDE.
Fixes #2395
|
|/
|
|
|
|
|
|
|
| |
Added chain configuration options and write out during genesis database
insertion. If no "config" was found, nothing is written to the database.
Configurations are written on a per genesis base. This means
that any chain (which is identified by it's genesis hash) can have their
own chain settings.
|
| |
|
| |
|
| |
|
|\
| |
| | |
core, core/vm, tests: changed the initialisation behaviour of the EVM
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Implemented the following block debugging RPC calls
* Block(RLP)
* BlockByFile(fileName)
* BlockByNumber(number)
* BlockByHash(hash)
|
| |
| |
| |
| |
| | |
The EVM is now initialised with an additional configured object that
allows you to turn on debugging options.
|
|/ |
|
| |
|
|\
| |
| | |
core: improved check for contract creation
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
When a block is queried for retrieval we should add a check whether the
block falls within the frontier rules. If we'd always use `From`
retrieving transaction might fail. This PR temporarily changes
everything to `FromFrontier` (safe!).
|
|/
|
|
|
|
|
|
| |
* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code
|
|\
| |
| | |
eth: Added GPO to suggest default gas prices
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR fixes a regression of the RPC where the default gas price that
was being used for transaction wasn't properly using the GPO. This PR
adds the GPO back to suggest gas prices rather than the hardcoded
default of 10000000000000.
Closes #2194
|
| | |
|
|/ |
|
|
|
|
| |
to tx pool
|
| |
|
| |
|
|\
| |
| | |
core/vm, rpc/api: added debug_replayTransaction RPC call
|
| |
| |
| |
| |
| |
| |
| |
| | |
integrated feedback
Integrated code review suggestions
Integrated last review comments
|
|/ |
|
| |
|
| |
|
| |
|
|
|