qd-ethan
9940d93a43
Comment error ( #18303 )
6 years ago
Martin Holst Swende
83a9a73b89
cmd/geth, core, eth: implement Constantinople override flag ( #18273 )
...
* geth/core/eth: implement constantinople override flag
* les: implemnent constantinople override flag for les clients
* cmd/geth, eth, les: fix typo, move flag to experimentals
6 years ago
Martin Holst Swende
42a914a84f
cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local filesystem
6 years ago
Paweł Bylica
de39513ced
core, internal, eth, miner, les: Take VM config from BlockChain ( #17955 )
...
Until this commit, when sending an RPC request that called `NewEVM`, a blank `vm.Config`
would be taken so as to set some options, based on the default configuration. If some extra
configuration switches were passed to the blockchain, those would be ignored.
This PR adds a function to get the config from the blockchain, and this is what is now used
for RPC calls.
Some subsequent changes need to be made, see https://github.com/ethereum/go-ethereum/pull/17955#pullrequestreview-182237244
for the details of the discussion.
6 years ago
Martin Holst Swende
7c657fc789
tests, core: update tests and make STATICCALL cause touch-delete ( #18187 )
6 years ago
Franklin
3dba6a6d27
remove unrelated code
6 years ago
Martin Holst Swende
bfed28a421
core: more detailed metrics for block processing ( #18119 )
6 years ago
Jaynti Kanani
38592a13a3
fix mixHash/nonce for parity compatible network ( #18166 )
6 years ago
mr_franklin
2a113f6d72
core: return error if repair block failed ( #18126 )
...
* core: return error if repair block failed
* make error a bit shorter
6 years ago
Martin Holst Swende
e0d091e090
core: better printout of receipts in bad block reports ( #18156 )
...
* core/blockchain: better printout of receipts in bad block reports
* fix splleing
6 years ago
Péter Szilágyi
333b5fb123
core: polish side chain importer a bit
6 years ago
mr_franklin
3fd87f2193
core: fix comment typo ( #18144 )
6 years ago
Franklin
21dd59bd04
.
6 years ago
Martin Holst Swende
493903eede
core: better side-chain importing
6 years ago
Péter Szilágyi
accc0fab4f
core, eth/downloader: fix ancestor lookup for fast sync
6 years ago
Péter Szilágyi
434dd5bc00
cmd, core, eth, light, trie: add trie read caching layer
6 years ago
gary rong
1212c7b844
core: fix default trie cache limit ( #17860 )
6 years ago
Corey Lin
1ff152f3a4
rawdb: remove unused parameter for WritePreimages func ( #18059 )
...
* rawdb: remove unused parameter for WritePreimages func and modify a
spelling mistake
* rawdb: update the doc for function WritePreimages
6 years ago
Felix Lange
870efeef01
core/state: remove lock ( #18065 )
...
The lock in StateDB is useless. It's only held in Copy, but Copy is safe
for concurrent use because all it does is read.
6 years ago
Corey Lin
a5dc087845
core/vm, eth/tracers: use pointer receiver for GetRefund ( #18018 )
6 years ago
Felix Lange
0bcff8f525
eth/downloader: speed up tests by generating chain only once ( #17916 )
...
* core: speed up GenerateChain
Use a mock implementation of ChainReader instead of creating
and destroying a BlockChain object for each generated block.
* eth/downloader: speed up tests by generating chain only once
This change reworks the downloader tests so they share a common test
blockchain instead of generating a chain in every test. The tests are
roughly twice as fast now.
6 years ago
Martin Holst Swende
eea3ae42a3
core, eth/downloader: fix validation flaw, fix downloader printout flaw ( #17974 )
6 years ago
Martin Holst Swende
1b6fd032e3
core/vm: check empty in extcodehash
6 years ago
Felix Lange
7f22b59f87
core/state: simplify proof methods ( #17965 )
...
This fixes the import cycle build error in core/vm tests.
There is no need to refer to core/vm for a type definition.
6 years ago
Martin Holst Swende
4c0883e20d
core/vm: adds refund as part of the json standard trace ( #17910 )
...
This adds the global accumulated refund counter to the standard
json output as a numeric json value. Previously this was not very
interesting since it was not used much, but with the new sstore
gas changes the value is a lot more interesting from a consensus
investigation perspective.
6 years ago
Wuxiang
d98c45f70f
core: fix a typo ( #17941 )
6 years ago
Simon Jentzsch
97fb08342d
EIP-1186 eth_getProof ( #17737 )
...
* first impl of eth_getProof
* fixed docu
* added comments and refactored based on comments from holiman
* created structs
* handle errors correctly
* change Value to *hexutil.Big in order to have the same output as parity
* use ProofList as return type
6 years ago
Smilenator
2868acd80b
core/types: fix comment for func SignatureValues ( #17921 )
6 years ago
Martin Holst Swende
a352de6a08
core/vm: add shortcuts for trivial exp cases ( #16851 )
6 years ago
Guillaume Ballet
97b2806686
core/asm: Use hexadecimal addresses in assembly dumps ( #17870 )
6 years ago
Wenbiao Zheng
31c4e3a118
core/types: Log.Index is the index in block, not receipt ( #17866 )
6 years ago
Péter Szilágyi
1d3d4a4d57
core/vm: reuse Keccak-256 hashes across opcode executions ( #17863 )
6 years ago
Martin Holst Swende
58e868b759
core/vm : fix failing testcase ( #17852 )
...
* core/vm : fix failing testcase
* core/vm: fix nitpick
6 years ago
Martin Holst Swende
092df3ab59
core/vm: SHA3 word cost for CREATE2 ( #17812 )
...
* core/vm: create2 address generation tests
* core/vm: per byte cost of CREATE2
* core/vm: fix linter issue in test
6 years ago
Martin Holst Swende
89a32451ae
core/vm: faster create/create2 ( #17806 )
...
* core/vm/runtim: benchmark create/create2
* core/vm: do less hashing in CREATE2
* core/vm: avoid storing jumpdest analysis for initcode
* core/vm: avoid unneccesary lookups, remove unused fields
* core/vm: go formatting tests
* core/vm: save jumpdest analysis locally
* core/vm: use common.Hash instead of nil, fix review comments
* core/vm: removed type destinations
* core/vm: correct check for empty hash
* eth: more elegant api_tracer
* core/vm: address review concerns
6 years ago
Felföldi Zsolt
9d06b2c5f3
core: use ChainHeadEvent subscription in the chain indexer ( #17826 )
6 years ago
Péter Szilágyi
14bef9a2db
core: fix unnecessary ancestor lookup after a fast sync ( #17825 )
6 years ago
Ryan Schneider
b69942befe
core, internal/ethapi: add and use LRU cache for receipts ( #17610 )
6 years ago
reinerRubin
86ec213076
core/types: make tx signature values optional in JSON ( #17742 )
6 years ago
thumb8432
ffca6dfe01
core/types: fix typos ( #17762 )
6 years ago
Liang ZOU
6663e5da10
all: fix various comment typos ( #17748 )
6 years ago
Wuxiang
81080bf8cb
core: fix a typo ( #17733 )
6 years ago
gary rong
ba0a8b7887
core, eth: fix dependency cycle ( #17720 )
6 years ago
gary rong
d6254f827b
all: protect self-mined block during reorg ( #17656 )
6 years ago
Péter Szilágyi
0f2ba07c41
common, core, light: add block age into info logs
6 years ago
Guillaume Ballet
da29332c5f
core/vm: add switches to select evm+ewasm interpreters ( #17687 )
...
Interpreter initialization is left to the PRs implementing them.
Options for external interpreters are passed after a colon in the
`--vm.ewasm` and `--vm.evm` switches.
6 years ago
Péter Szilágyi
faa69bea1c
core, eth: fix goimports for Go 1.11
6 years ago
Péter Szilágyi
5d921fa3a0
core, params: polish net gas metering PR a bit
6 years ago
Martin Holst Swende
caa2c23a38
core,state: finish implementing Eip 1283
6 years ago
Martin Holst Swende
58374e28d9
core, state: initial implementation of Eip-1283
6 years ago