Zsolt Felfoldi
6ff2c02991
core/bloombits: AddBloom index parameter and fixes variable names
7 years ago
Péter Szilágyi
f585f9eee8
core, eth: clean up bloom filtering, add some tests
7 years ago
Zsolt Felfoldi
4ea4d2dc34
core, eth: add bloombit indexer, filter based on it
7 years ago
Péter Szilágyi
cc313e78b7
core: use blocks and avoid deep reorgs in txpool
7 years ago
Péter Szilágyi
da7d57e07c
core: make txpool operate on immutable state
7 years ago
Martin Holst Swende
e7408b5552
core/vm: Make MaxCodesize non-retroactive ( #15072 )
...
* core/vm: Make max_codesize only applicable post Spurious Dragon/158/155/161/170
* tests: Remove expected failure
7 years ago
Martin Holst Swende
1901521ed0
core: Fix flaw where underpriced locals were removed ( #15081 )
...
* core: Fix flaw where underpriced locals were removed
* core: minor code cleanups for tx pool tests
7 years ago
Martin Holst Swende
23b51a68cb
core/vm: avoid state lookup during gas calc for call ( #15061 )
7 years ago
Martin Holst Swende
07635e43e2
core/vm: renamed struct member + go fmt
7 years ago
Martin Holst Swende
64a3a3d23c
core/vm: Fix testcase input for ecmul
7 years ago
Martin Holst Swende
bc2a5578c0
core/vm: more benchmarks
7 years ago
Péter Szilágyi
08f27428b4
core, tests: implement Metropolis EIP 684
7 years ago
Felix Lange
ad16aeb0a2
core/types: encode receipt status in PostState field
...
This fixes a regression where the new Failed field in ReceiptForStorage
rejected previously stored receipts. Fix it by removing the new field
and store status in the PostState field. This also removes massive RLP
hackery around the status field.
7 years ago
Péter Szilágyi
b872961ec8
consensus, core, tests: implement Metropolis EIP 649
7 years ago
Felix Lange
54b1de67e2
core/vm: make jumpdest code nicer
7 years ago
nkbai
68955ed2eb
core/types: fix create indicator in Transaction.String ( #15025 )
7 years ago
Péter Szilágyi
ff9a868232
core/state: revert metro suicide map addition ( #15024 )
7 years ago
Martin Holst Swende
286ec5df40
cmd/evm, core/vm, internal/ethapi: Show error when exiting ( #14985 )
...
* cmd/evm, core/vm, internal/ethapi: Add 'err' to tracer interface CaptureEnd
* cmd/evm: fix nullpointer when there is no error
7 years ago
Péter Szilágyi
4ee92f2d19
core/types: reject Metro receipts with > 0x01 status bytes
7 years ago
rjl493456442
28aea46ac0
core: implement Metropolis EIP 658, receipt status byte
7 years ago
Ti Zhou
2fd5ba6bd4
core/vm: fix typo in method documentation ( #15019 )
...
Signed-off-by: Ti Zhou <tizhou1986@gmail.com>
7 years ago
Miya Chen
bf1e263128
core, light: send chain events using event.Feed ( #14865 )
7 years ago
Péter Szilágyi
f9fb70d2ee
core/vm: rework reversion to work on a higher level
7 years ago
Péter Szilágyi
1335a6cc8c
core/vm, crypto/bn256: fix bn256 use and pairing corner case
7 years ago
Jeffrey Wilcke
b70a73cd3e
core/vm: implement REVERT metropolis opcode
7 years ago
Péter Szilágyi
4e0fea4d30
core/vm: polish RETURNDATA, add missing returns to CALL*
7 years ago
Jeffrey Wilcke
9bd6068fef
core/vm: implement RETURNDATA metropolis opcodes
7 years ago
Péter Szilágyi
3df7142b3e
core/vm: minor polishes, fix STATICCALL for precompiles
...
* Fix STATICCALL so it is able to call precompiles too
* Fix write detection to use the correct value argument of CALL
* Fix write protection to ignore the value in CALLCODE
7 years ago
Jeffrey Wilcke
3d123bcde6
core/vm: implement metropolis static call opcode
7 years ago
Péter Szilágyi
f8d8b56b28
core/vm: optimize copy-less data retrievals
7 years ago
Martin Holst Swende
d8aaa3a215
core/vm: benchmarking of metro precompiles
7 years ago
Péter Szilágyi
6131dd55c5
core/vm: polish precompile contract code, add tests and benches
...
* Update modexp gas calculation to new version
* Fix modexp modulo 0 special case to return zero
7 years ago
Martin Holst Swende
967e097faa
core/vm: Address review concerns
7 years ago
Jeffrey Wilcke
7bbdf3e268
core: add Metropolis pre-compiles (EIP 197, 198 and 213)
7 years ago
Joel Burget
833eeb9f23
core/vm/runtime: remove unused state parameter to NewEnv ( #14953 )
...
* core: Remove unused `state` parameter to `NewEnv`.
`cfg.State` is used instead.
* core/vm/runtime: remove unused import
7 years ago
Péter Szilágyi
1c45f2f42e
core: fix txpool journal and test races
7 years ago
Péter Szilágyi
8edaaa227d
core: polish chain indexer a bit
7 years ago
Zsolt Felfoldi
bd74882d83
core: implement ChainIndexer
7 years ago
Péter Szilágyi
2b50367fe9
core: fix blockchain goroutine leaks in tests
7 years ago
Péter Szilágyi
5b742fb82b
core: bump timeout test to avoid flakyness on overloaded ci
7 years ago
evgk
0cc9b8791e
core/vm: fix typo in comment ( #14894 )
7 years ago
njupt-moon
53f3460ab5
core/asm: fix hex number lexing ( #14861 )
7 years ago
Mark
4f9789b28d
core: avoid write existing block again ( #14849 )
7 years ago
Péter Szilágyi
3d32690b54
cmd, core, eth: journal local transactions to disk ( #14784 )
...
* core: reduce txpool event loop goroutines and sync structs
* cmd, core, eth: journal local transactions to disk
* core: journal replacement pending transactions too
* core: separate transaction journal from pool
7 years ago
cdetrio
ffebf00114
core/vm/runtime: fix evm command to use --gasprice flag value
7 years ago
Felix Lange
3e0dbe0eaa
core/vm: remove logging and add section labels to struct logs ( #14782 )
7 years ago
Péter Szilágyi
a56f3dc0d9
core, ethclient: implement Metropolis EIP 98 ( #14750 )
...
Implements ethereum/EIPs#98
7 years ago
Martin Holst Swende
47359301a2
core: blocknumber in genesis as hex ( #14812 )
7 years ago
Péter Szilágyi
0ff35e170d
core: remove redundant storage of transactions and receipts ( #14801 )
...
* core: remove redundant storage of transactions and receipts
* core, eth, internal: new transaction schema usage polishes
* eth: implement upgrade mechanism for db deduplication
* core, eth: drop old sequential key db upgrader
* eth: close last iterator on successful db upgrage
* core: prefix the lookup entries to make their purpose clearer
7 years ago
Felix Lange
225de7ca0a
tests: update tests and implement general state tests ( #14734 )
...
Tests are now included as a submodule. This should make updating easier
and removes ~60MB of JSON data from the working copy.
State tests are replaced by General State Tests, which run the same test
with multiple fork configurations.
With the new test runner, consensus tests are run as subtests by walking
json files. Many hex issues have been fixed upstream since the last
update and most custom parsing code is replaced by existing JSON hex
types. Tests can now be marked as 'expected failures', ensuring that
fixes for those tests will trigger an update to test configuration. The
new test runner also supports parallel execution and the -short flag.
7 years ago