Abel Nieto
be22ee8dda
core/vm: fix typo in instructions.go ( #16788 )
7 years ago
gary rong
fbf57d53e2
core/types: convert status type from uint to uint64 ( #16784 )
7 years ago
hadv
f2fdb75dd9
core, consensus: fix some typos in comment code and output log
7 years ago
Péter Szilágyi
49719e21bc
core, eth: minor txpool event cleanups
7 years ago
rjl493456442
a2e43d28d0
all: collate new transaction events together
7 years ago
gary rong
7beccb29be
all: get rid of error when creating memory database ( #16716 )
...
* all: get rid of error when create mdb
* core: clean up variables definition
* all: inline mdb definition
7 years ago
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
7 years ago
kiel barry
a7720b5926
core: golint updates for this or self warning ( #16633 )
7 years ago
Crispin Flowerday
0afd767537
core: ensure local transactions aren't discarded as underpriced
...
This fixes an issue where local transactions are discarded as
underpriced when the pool and queue are full.
7 years ago
Péter Szilágyi
7a7428a027
core, eth: fix tracer dirty finalization
7 years ago
Felix Lange
b724d1aada
core/state: cache missing storage entries ( #16584 )
7 years ago
kimmylin
86be91b3e2
core/types: avoid duplicating transactions on changing signer ( #16435 )
7 years ago
Wuxiang
8f8774cf6d
all: fix various typos ( #16533 )
...
* fix typo
* fix typo
* fix typo
7 years ago
dm4
c514fbccc0
core/asm: accept uppercase instructions ( #16531 )
7 years ago
dm4
49e38c970e
core/asm: remove unused condition ( #16487 )
7 years ago
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
7 years ago
Péter Szilágyi
db48d312e4
core: txpool stable underprice drop order, perf fixes
7 years ago
Martin Holst Swende
7205366c9f
core/state: fix ripemd-cornercase in Copy
7 years ago
Martin Holst Swende
0c7b99b8cc
core/state: fix bug in copy of copy State
7 years ago
Felix Lange
3caf16b15f
core: remove stray account creations in state transition ( #16470 )
...
The 'from' and 'to' methods on StateTransitions are reader methods and
shouldn't have inadvertent side effects on state.
It is safe to remove the check in 'from' because account existence is
implicitly checked by the nonce and balance checks. If the account has
non-zero balance or nonce, it must exist. Even if the sender account has
nonce zero at the start of the state transition or no balance, the nonce
is incremented before execution and the account will be created at that
time.
It is safe to remove the check in 'to' because the EVM creates the
account if necessary.
Fixes #15119
7 years ago
Felix Lange
c7ab3e5544
common: delete StringToAddress, StringToHash ( #16436 )
...
* common: delete StringToAddress, StringToHash
These functions are confusing because they don't parse hex, but use the
bytes of the string. This change removes them, replacing all uses of
StringToAddress(s) by BytesToAddress([]byte(s)).
* eth/filters: remove incorrect use of common.BytesToAddress
7 years ago
Martin Holst Swende
8c31d2897b
core: add blockchain benchmarks
7 years ago
Martin Holst Swende
14c9215dd3
state: handle nil in journal dirties
7 years ago
dm4
3ebcf92b42
cmd/evm: print vm output when debug flag is on ( #16326 )
7 years ago
Steven Roose
ec8ee611ca
core/types: remove String methods from struct types ( #16205 )
...
Most of these methods did not contain all the relevant information
inside the object and were not using a similar formatting type.
Moreover, the existence of a suboptimal String method breaks usage
with more advanced data dumping tools like go-spew.
7 years ago
Jia Chenhui
5909482fb5
core/state: avoid redundant addition to code size cache ( #16427 )
7 years ago
Péter Szilágyi
d985b9052a
core/state: avoid linear overhead on journal dirty listing
7 years ago
Martin Holst Swende
958ed4f3d9
core/state: rework dirty handling to avoid quadratic overhead
7 years ago
Jia Chenhui
1a8894b3d5
core/state: uniform parameter style ( #16398 )
...
- Uniform code style.
7 years ago
hydai
6134990709
core/vm: Fixed typos in core/vm/interpreter.go
7 years ago
hydai
c3dc814fea
core/vm: Fixed typo in core/vm/evm.go
7 years ago
Jia Chenhui
e506d384e9
core/state: fix typo ( #16370 )
7 years ago
hydai
7c131f4d6d
core/asm: fixed typo (posititon -> position) ( #16366 )
7 years ago
hydai
84c5db5409
core/vm: remove JIT VM codes ( #16362 )
7 years ago
Péter Szilágyi
1fae50a199
core: minor evm polishes and optimizations
7 years ago
hydai
a063876749
core/asm: fixed typo (labal -> label) ( #16313 )
7 years ago
Martin Holst Swende
4871e25f5f
core/vm: optimize eq, slt, sgt and iszero + tests ( #16047 )
...
* vm: optimize eq, slt, sgt and iszero + tests
* core/vm: fix error in slt/sgt, found by vmtests. Added testcase
* core/vm: make slt/sgt cleaner
7 years ago
Kyuntae Ethan Kim
63687f04e4
core: check transaction/receipt count match when reconstructing blocks ( #16272 )
7 years ago
Péter Szilágyi
2b5d1a4a4c
core: update txpool tests for the removal fix
7 years ago
cui
f8601430fd
core: should enqueue the invalids tx anyway
...
even the pending is empty we shoud enqueue the invalid txs
7 years ago
Péter Szilágyi
bd6879ac51
core/vm, crypto/bn256: switch over to cloudflare library ( #16203 )
...
* core/vm, crypto/bn256: switch over to cloudflare library
* crypto/bn256: unmarshal constraint + start pure go impl
* crypto/bn256: combo cloudflare and google lib
* travis: drop 386 test job
7 years ago
Péter Szilágyi
b7e57ca1d0
cmd/evm, core/vm, internal/ethapi: don't disable call gas metering
7 years ago
Péter Szilágyi
ca64a122d3
eth/downloader: save and load trie sync progress ( #16224 )
7 years ago
Mark Rushakoff
98ec5e5011
core/asm: rename isAlphaNumeric to isLetter ( #16212 )
...
The function would return false for numbers, so isLetter is a more
accurate description of the behavior.
7 years ago
Martin Holst Swende
f83237573f
core: make current*Block atomic, and accessor functions mutex-free ( #16171 )
...
* core: make current*Block atomic, and accessor functions mutex-free
* core: fix review concerns
* core: fix error in atomic assignment
* core/light: implement atomic getter/setter for headerchain
7 years ago
Péter Szilágyi
89f914c030
core: flush out trie cache more meaningfully on stop ( #16143 )
...
* core: flush out trie cache more meaningfully on stop
* core: upgrade legacy tests to chain maker
7 years ago
Martin Holst Swende
44d40ffce1
core, vm, common: define constantinople fork + shift ( #16045 )
...
* core, vm, common: define constantinople fork, start implementation of shift instructions
* vm: more testcases
* vm: add tests for intpool erroneous intpool handling
* core, vm, common: fix constantinople review concerns
* vm: add string<->op definitions for new opcodes
7 years ago
Anton Evangelatov
ae9f97221a
metrics: pull library and introduce ResettingTimer and InfluxDB reporter ( #15910 )
...
* go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter.
* vendor: change nonsense/go-metrics to ethersphere/go-metrics
* go-metrics: add tests. move ResettingTimer logic from reporter to type.
* all, metrics: pull in metrics package in go-ethereum
* metrics/test: make sure metrics are enabled for tests
* metrics: apply gosimple rules
* metrics/exp, internal/debug: init expvar endpoint when starting pprof server
* internal/debug: tiny comment formatting fix
7 years ago
Péter Szilágyi
0b3e23f636
core: yeah, funny file, drop it
7 years ago
ferhat elmas
dc7ca52b3b
core: handle ignored error ( #16065 )
...
- according to implementation of `IntrinsicGas`
we can continue execution since problem will be detected
later. However, early return is future-proof for changes.
7 years ago