Daniel Liu
0f737b4725
core: replace suicide with selfdestruct to improve code consistency ( #27716 )
2025-01-24 16:54:12 +08:00
Daniel Liu
5b48621c36
accouts, core: fix some comments ( #21617 )
2025-01-24 16:18:30 +08:00
Daniel Liu
56e242b06c
core/state: optimize some internals during encoding ( #20038 )
2024-12-28 09:06:30 +08:00
Daniel Liu
89c51c5e69
common: improve documentation comments ( #16701 )
2024-12-28 09:06:30 +08:00
Daniel Liu
82ff8c19a0
all: remove uses of untyped golang-lru
2024-12-21 14:39:26 +08:00
Daniel Liu
2220156b9a
cmd, core, metrics: always report expensive metrics ( #29191 )
...
* cmd, core, metrics: always report expensive metrics
* core, metrics: report block processing metrics as resetting timer
* metrics: update reporter tests
2024-12-13 14:00:13 +08:00
Daniel Liu
db9487f1e8
core: split out detailed trie access metrics from insertion time ( #19316 )
2024-12-13 14:00:11 +08:00
Daniel Liu
0d0ea46bfa
core: implement EIP-3651, warm coinbase ( #25819 )
2024-12-09 17:44:30 +08:00
Daniel Liu
ed242b4763
all: implement EIP-1153 transient storage ( #26003 )
2024-11-15 19:39:18 +08:00
Daniel Liu
d1dc9e383c
core/statedb: always clear out access list when setting a new one ( #24515 )
2024-11-01 11:36:53 +08:00
Daniel Liu
fbecb8c5a5
all: fix staticcheck warning ST1006: don't use generic name self
...
The name of a method’s receiver should be a reflection of its identity;
often a one or two letter abbreviation of its type suffices (such as
“c” or “cl” for “Client”). Don’t use generic names such as “me”, “this”
or “self”, identifiers typical of object-oriented languages that place
more emphasis on methods as opposed to functions. The name need not be
as descriptive as that of a method argument, as its role is obvious and
serves no documentary purpose. It can be very short as it will appear
on almost every line of every method of the type; familiarity admits
brevity. Be consistent, too: if you call the receiver “c” in one method,
don’t call it “cl” in another.
2024-10-25 21:30:54 +08:00
Daniel Liu
464a89074b
all: use unified emptyRootHash and emptyCodeHash ( #26718 )
2024-10-21 17:55:16 +08:00
Daniel Liu
8c077345d0
all: removed blockhash from statedb ( #23126 )
2024-10-18 09:24:52 +08:00
Daniel Liu
c47819c7d6
core, cmd: add generic LRU implementation ( #26162 )
2024-08-26 11:17:23 +08:00
JukLee0ira
0aab4ced98
common: add binary variables for system contract
2024-06-06 19:33:59 +08:00
Daniel Liu
01e1728a94
all: add support for EIP-2718, EIP-2930 transactions ( #21502 )
2024-05-14 23:15:35 +08:00
Daniel Liu
6338a4195b
core: kill off managed state, use own tiny noncer for txpool ( #19810 )
2024-05-10 19:48:10 +08:00
Wang Gerui
4178a97560
feat: extend eth_call api with state override;
...
extend statedb and state_object with necessary code
2024-04-30 15:57:42 +08:00
Daniel Liu
8568af05cc
all: implement EIP-2929 (gas cost increases for state access opcodes) ( #21509 )
2024-04-22 21:14:54 +08:00
Daniel Liu
50847c9724
types, core, miner: add block location fields to receipt
2024-04-12 13:36:55 +08:00
Wanwiset Peerapatanapokin
06b280aa0d
add log deepcopy to ensure complete replica of state ( #449 )
...
implement "deep copy" as go-ethereum
2024-03-26 13:40:07 +04:00
Wanwiset Peerapatanapokin
8edb76f08d
Revert "core/state: abort commit if errors have occurred ( #484 )" ( #489 )
...
This reverts commit 0114ecabd0 .
2024-03-13 11:54:09 +04:00
Wanwiset Peerapatanapokin
0114ecabd0
core/state: abort commit if errors have occurred ( #484 )
2024-03-11 13:19:24 +04:00
Daniel Liu
ece58f00b5
ethapi: add method eth_getAccountInfo
2024-03-06 14:11:15 +08:00
Daniel Liu
bbe08ac6e6
core/state: add function GetStorageRoot
2024-03-06 14:10:08 +08:00
Daniel Liu
7a55b9f788
core/state: remove unused methods ReturnGas ( #23092 )
2024-03-01 14:13:23 +08:00
Daniel Liu
e2359d9b8c
filter zero address in function GetCandidates
2023-10-24 12:15:24 +08:00
olumuyiwadad
cca2a7d213
missing ValidatorMapping added.
2021-11-08 14:54:41 +05:30
Gerui Wang
a1e6ae4152
make statedb_utils.go (XDCValidator reader) correct, add statedb utils test
2021-11-03 21:05:25 +08:00
olumuyiwadad
22b1e3a2b5
Update trc21_reader.go
2021-09-21 18:13:01 +05:30
olumuyiwadad
b5abbfed79
new EVM Upgrade
...
- Solidity Upgraded up to v0.8.0
- Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
AnilChinchawale
bf626ddc95
Core Updated
2019-03-16 16:00:19 +05:30
AnilChinchawale
26cafb46ea
Updated changes in genesis
2019-01-19 04:40:21 +05:30
parmarrushabh
7833a10c16
remove run evm with signing tracsaction
2018-12-28 12:33:35 +05:30
Shuai Qi
fe26b2f366
core/state: rename 'new' variable ( #18301 )
2018-12-14 14:55:03 +01:00
Péter Szilágyi
434dd5bc00
cmd, core, eth, light, trie: add trie read caching layer
2018-11-15 12:22:13 +02:00
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.
2018-11-08 21:37:19 +01:00
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.
2018-10-23 21:51:41 +02:00
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
2018-10-18 21:41:22 +02:00
Péter Szilágyi
5d921fa3a0
core, params: polish net gas metering PR a bit
2018-09-18 16:29:51 +03:00
Martin Holst Swende
caa2c23a38
core,state: finish implementing Eip 1283
2018-09-18 13:08:32 +03:00
Martin Holst Swende
58374e28d9
core, state: initial implementation of Eip-1283
2018-09-18 13:08:28 +03:00
gary rong
c3f7e3be3b
core/statedb: deep copy logs ( #17489 )
2018-08-23 15:59:58 +03:00
Péter Szilágyi
d926bf2c7e
trie: cache collapsed tries node, not rlp blobs ( #16876 )
...
The current trie memory database/cache that we do pruning on stores
trie nodes as binary rlp encoded blobs, and also stores the node
relationships/references for GC purposes. However, most of the trie
nodes (everything apart from a value node) is in essence just a
collection of references.
This PR switches out the RLP encoded trie blobs with the
collapsed-but-not-serialized trie nodes. This permits most of the
references to be recovered from within the node data structure,
avoiding the need to track them a second time (expensive memory wise).
2018-06-21 11:28:05 +02:00
hadv
e3a993d774
core: fix typo in comment code
2018-06-05 09:56:45 +07:00
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.
2018-05-29 17:48:43 +02:00
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.
2018-05-29 12:42:21 +02:00