ledgerwatch
feb6620c34
core: relax type requirement for bc in ApplyTransaction ( #16901 )
7 years ago
kiel barry
cbfb40b0aa
params: fix golint warnings ( #16853 )
...
params: fix golint warnings
7 years ago
Péter Szilágyi
2ab24a2a8f
core: concurrent background transaction sender ecrecover
7 years ago
hadv
e3a993d774
core: fix typo in comment code
7 years ago
Péter Szilágyi
143c4341d8
core, eth, trie: streaming GC for the trie cache ( #16810 )
...
* core, eth, trie: streaming GC for the trie cache
* trie: track memcache statistics
7 years ago
Péter Szilágyi
342ec83d67
core: fix transaction event asynchronicity
7 years ago
Wenbiao Zheng
38c7eb0f26
trie: rename TrieSync to Sync and improve hexToKeybytes ( #16804 )
...
This removes a golint warning: type name will be used as trie.TrieSync by
other packages, and that stutters; consider calling this Sync.
In hexToKeybytes len(hex) is even and (even+1)/2 == even/2, remove the +1.
7 years ago
kimmylin
426f62f1a8
core: improve test for TransactionPriceNonceSort ( #16413 )
7 years ago
Abel Nieto
d258eee211
core/vm: fix typo in comment
7 years ago
kiel barry
84f8c0cc1f
common: improve documentation comments ( #16701 )
...
This commit adds many comments and removes unused code.
It also removes the EmptyHash function, which had some uses
but was silly.
7 years ago
Ryan Schneider
55b579e02c
core: use a wrapped map to remove contention in `TxPool.Get`. ( #16670 )
...
* core: use a wrapped `map` and `sync.RWMutex` for `TxPool.all` to remove contention in `TxPool.Get`.
* core: Remove redundant `txLookup.Find` and improve comments on txLookup methods.
7 years ago
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