Jeffrey Wilcke
f0cbebb19f
core: added basic chain configuration
...
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.
9 years ago
Jeffrey Wilcke
916fe11241
eth: enforce signing hashes using eth_sign instead of arbitrary data
9 years ago
Péter Szilágyi
4326061e35
eth: fix accidental nil panic on nil errors
9 years ago
Péter Szilágyi
6c670eff01
eth: manually convert errors to strings on the trace API (json cannot)
9 years ago
Péter Szilágyi
72826bb5ad
accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABI
9 years ago
Jeffrey Wilcke
0cfa21fc7f
core, eth, cmd: temporary work around for enabling the jit
...
This commit serves as a temporary workaround for enabling the jit until
the block customisation PR is merged in.
9 years ago
Jeffrey Wilcke
5f92606be2
eth/api: added root to the receipts
9 years ago
Jeffrey Wilcke
3601320ccd
eth, rpc: implemented block debugging rpc calls
...
Implemented the following block debugging RPC calls
* Block(RLP)
* BlockByFile(fileName)
* BlockByNumber(number)
* BlockByHash(hash)
9 years ago
Jeffrey Wilcke
14013372ae
core: Added EVM configuration options
...
The EVM is now initialised with an additional configured object that
allows you to turn on debugging options.
9 years ago
Péter Szilágyi
0228fb57cd
eth, miner: fetch pending block/state in on go (data race)
9 years ago
Leif Jurvetson
434e4b31d8
core, eth: replace reorganiz with reorganis
9 years ago
Leif Jurvetson
bbbe2360d0
eth: various typos
9 years ago
Péter Szilágyi
e3f2b541f2
eth/downloader: fix a throughput estimation data race
9 years ago
Péter Szilágyi
e90958cd29
cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
9 years ago
Péter Szilágyi
ae4982a365
eth: forward empty body responses to the downlaoder
9 years ago
Péter Szilágyi
64ee5763ee
eth/downloader: fix premature exit before notifying all part fetchers
9 years ago
Felix Lange
26e72b2ccd
eth/downloader: fix header download limiting
...
Fixes #2201
9 years ago
Péter Szilágyi
0a5ee08e2b
Godeps, eth, tests: update ethash, used shared for testing
9 years ago
Péter Szilágyi
93c0012000
eth/downloader: bump the download queue size to prevent starvation
9 years ago
Ricardo Catalinas Jiménez
436fc8d76a
all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()
...
As we aren't really using the standarized SHA-3
9 years ago
Jeffrey Wilcke
c616391df2
eth: fixed homestead tx check
...
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!).
9 years ago
Péter Szilágyi
216729009b
eth/downloader: fix partial rollback and ancestor lookup
9 years ago
Gustav Simonsson
371871d685
parmas, crypto, core, core/vm: homestead consensus protocol changes
...
* 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
9 years ago
Bas van Kervel
0ff2adb21b
core: improved check for contract creation
9 years ago
Jeffrey Wilcke
987c1a595a
eth/filters: ✨ pending logs ✨
...
Pending logs are now filterable through the Go API. Filter API changed
such that each filter type has it's own bucket and adding filter
explicitly requires you specify the bucket to put it in.
9 years ago
Jeffrey Wilcke
725f2a4cf7
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
9 years ago
Péter Szilágyi
59cd60b266
eth, eth/downloader, jsre: surface state sync progress through the API
9 years ago
Péter Szilágyi
dda5af0e6c
eth, miner: move the public miner api into eth to access etherbase
9 years ago
Péter Szilágyi
f1ec226d80
eth/downloader: raise pending state limit that prevented concurrency
9 years ago
Bas van Kervel
5fb68f4b39
eth: sendTransaction would not report the error when tx could not be added to tx pool
9 years ago
Jeffrey Wilcke
68dda34905
eth/filters: added notifications for out of bound log events
...
Out of Bound log events are events that were removed due to a fork. When
logs are received the filtering mechanism should check for the `removed`
field on the json structure.
9 years ago
Péter Szilágyi
6b939fbeaa
rpc: add jsonrpc version to module request, use json types
9 years ago
Péter Szilágyi
5da7ec7c18
cmd, eth, rpc: fix some RPC issues with pending blocks
9 years ago
Peter Pratscher
15780ead07
core/vm, rpc/api: renamed to debug.replayTransaction, migrated to new RPC, integrated feedback
...
Integrated code review suggestions
Integrated last review comments
9 years ago
Péter Szilágyi
d3642b0715
core, eth, rpc/api: rpc method to inspect the txpool queue
9 years ago
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
9 years ago
Bas van Kervel
6e7620afe0
eth: changed NodeInfo Genesis and Head types
9 years ago
Péter Szilágyi
9e011ff1cd
core, eth/downloader: ensure state presence in ancestor lookup
9 years ago
Péter Szilágyi
1f39746886
eth/downloader: throttling tests are time-sensitive, don't run parallel
9 years ago
Felix Lange
e6fb69296e
common: remove old RLP implementation, Value and ExtPackage
...
In order to make this happen, kill all remaining trivial uses of
common/{rlp,value}.go. The non-trivial ones have been updated earlier.
9 years ago
Felix Lange
9be5d5cd90
eth/downloader: fix negative balance issue in tests
...
The test chain generated by makeChainFork included invalid uncle
headers, crashing the generator during the state commit.
The headers were invalid because they used the iteration counter as the
block number, even though makeChainFork uses a block with number > 0 as
the parent. Fix this by introducing BlockGen.Number, which allows
accessing the actual number of the block being generated.
9 years ago
Péter Szilágyi
e51eeb8104
eth: fix #2076 , where end of hash query was interpreted number query
9 years ago
zsfelfoldi
975c591261
core: tx pool skip price validation for "owned" transactions
9 years ago
Péter Szilágyi
d8370a4e15
core, eth, node, rpc: port the admin and debug API
9 years ago
Bas van Kervel
eae81465c1
rpc: new RPC implementation with pub/sub support
9 years ago
Bas van Kervel
61ca14bc44
eth: use global event mux instead
9 years ago
Péter Szilágyi
3e1000fda3
cmd, eth, node, rpc, xeth: use single-instance services
9 years ago
Péter Szilágyi
1e806c4c77
cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks
9 years ago
Péter Szilágyi
b6f5523bdc
eth/downloader: fetch data proportionally to peer capacity
9 years ago
Péter Szilágyi
e86e0ecdc8
core, eth, miner, xeth: clean up tx/receipt db accessors
9 years ago