Commit graph

11762 commits

Author SHA1 Message Date
JukLee0ira
2d89951e5b all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
Daniel Liu
b718f3593c
Merge pull request #553 from JukLee0ira/noString
performance: remove extra conversions and optimize functions
2024-06-11 21:10:05 +08:00
wanwiset25
1b9cb08a0f testnet: adjust enode_id for old bootnodes and add new bootnodes to list 2024-06-11 16:35:55 +04:00
Liam
9eef800b55
Merge pull request #554 from XinFinOrg/remove-admin-for-rpc-and-running-node 2024-06-07 14:21:39 +08:00
Liam Lai
3521fe11aa remove admin for rpc and running node 2024-06-06 20:44:22 +08:00
JukLee0ira
15bbb5d3d5 XDCx,core,XDCxlending,miner: reduce duplicate calls 2024-06-06 19:33:59 +08:00
JukLee0ira
9ffacc595d core: simplify code expression 2024-06-06 19:33:59 +08:00
JukLee0ira
8d1aa25de5 tradingstate,lendingstate: using string variable in log 2024-06-06 19:33:59 +08:00
JukLee0ira
0aab4ced98 common: add binary variables for system contract 2024-06-06 19:33:59 +08:00
JukLee0ira
21c62f9ef0 XDCx,XDCxlending,consensus,core: not compare adresss by String 2024-06-06 19:33:39 +08:00
Daniel Liu
025213fb1e
Merge pull request #551 from JukLee0ira/nil
remove redundant error check in function getValidators
2024-05-31 17:13:32 +08:00
Wanwiset Peerapatanapokin
abb1941acf
increase mainnet rpc volume (#552) 2024-05-30 15:14:10 +04:00
JukLee0ira
08432b8a0f hook: remove redundant error check in function getValidators 2024-05-29 15:11:01 +08:00
Liam
487593bfe6
Merge pull request #549 from XinFinOrg/rebase-master
Rebase master into dev-upgrade
2024-05-24 14:26:55 +08:00
Liam Lai
df78305d5b bump to version 2.3.0-beta1 2024-05-24 14:12:09 +08:00
Liam Lai
20e46d9b23 resolve conflict 2024-05-24 14:03:33 +08:00
wgr523
65d7e6a060
Merge pull request #548 from XinFinOrg/trie-proof
GetTransactionAndReceiptProof API
2024-05-22 15:17:35 +08:00
Daniel Liu
3929f4f6dc
Merge pull request #540 from JukLee0ira/dev-upgrade-juk
Add method: eth_getBlockReceipts
2024-05-22 11:00:01 +08:00
Gerui Wang
2d70c0c3a1 GetTransactionAndReceiptProof API
web3ext.go
2024-05-21 23:06:25 +08:00
JukLee0ira
c928c79d95 ethapi: implement eth_getBlockReceipts (#27702) 2024-05-21 18:03:15 +08:00
wgr523
d6a5095fa1
Merge pull request #545 from XinFinOrg/traceCall2
TraceCall API
2024-05-20 20:59:59 +08:00
Daniel Liu
09eb6124b2
Merge pull request #542 from gzliudan/rlp
upgarde package rlp to 2024-05-15
2024-05-20 12:38:35 +08:00
Wang Gerui
b2605e6ab0 add traceCall in web3ext.go 2024-05-18 21:33:15 +08:00
Gary
0245344338 add TraceCall, backend.StateAtBlock(), RPCGasCap
update gen_config.go by tool `gencodec`
2024-05-17 21:34:34 +08:00
Daniel Liu
f6bddb669f rlp: upgarde package rlp to 2024-05-15 2024-05-17 10:10:15 +08:00
Wanwiset Peerapatanapokin
4c58061d15
release version (#544) 2024-05-16 18:08:27 +04:00
Wanwiset Peerapatanapokin
9c03d01614
change threshold to match current conf (#543) 2024-05-16 12:19:36 +04:00
Daniel Liu
3a28063a77
Merge pull request #526 from gzliudan/eip-2718-and-2930
Implement EIP-2718 and EIP-2930 for EIP-1559
2024-05-16 06:21:50 +08:00
Daniel Liu
fd8811cc9e core, backends: rename callmsg to callMsg 2024-05-14 23:27:23 +08:00
Daniel Liu
e82bef5b87 core/types: remove duplication in eip2930 signer (#27860) 2024-05-14 23:27:23 +08:00
Daniel Liu
7a95b4f907 core, eth, internal/ethapi: create access list RPC API (#22550) 2024-05-14 23:27:23 +08:00
Daniel Liu
5cb014b60f core, eth/tracer: initialize tracer statedb in CaptureStart (#22333) 2024-05-14 23:27:23 +08:00
Derek Chiang
5edfd8f9eb core: fix method comment for txpool.requestReset (#22543) 2024-05-14 23:27:23 +08:00
Daniel Liu
349dc1bacd core/types: improve comments in new EIP-2718 code (#22402) 2024-05-14 23:15:35 +08:00
Daniel Liu
b8974be16e eth/state, les/state, et/tracers: properly init statedb accesslist (#22480) 2024-05-14 23:15:35 +08:00
Daniel Liu
0ccf119cd7 core/types: reduce allocations in GasPriceCmp (#22456) 2024-05-14 23:15:35 +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
8973e73ba9
Merge pull request #533 from gzliudan/tx-pool
upgrade tx pool
2024-05-14 23:14:35 +08:00
Liam
320e9779f6
mainnet enable evm 0.8.23 hardfork blocks target date 19 June (#535)
* mainnet enable evm 0.8.23 hardfork blocks

* mainnet enable evm 0.8.23 hardfork blocks target date 14 July
2024-05-14 20:22:46 +08:00
Marius van der Wijden
76b29b2f25 core: reset txpool state on sethead (#22247)
fixes an issue where local transactions that were included in the chain before a SetHead were rejected if resubmitted, since the txpool had not reset the state to the current (older) state.
2024-05-14 11:44:26 +08:00
gary rong
289304f876 core/txpool: remove "local" notion from the txpool price heap (#21478)
* core: separate the local notion from the pricedHeap

* core: add benchmarks

* core: improve tests

* core: address comments

* core: degrade the panic to error message

* core: fix typo

* core: address comments

* core: address comment

* core: use PEAK instead of POP

* core: address comments
2024-05-14 11:08:53 +08:00
Martin Holst Swende
a6d591b01b core: fix txpool off-by-one error (#21683) 2024-05-14 10:09:43 +08:00
Marius van der Wijden
6935687790 core: more detailed metering for reorgs (#21420) 2024-05-13 22:07:04 +08:00
Hao Duan
28baf9f1fd core: avoid modification of accountSet cache in tx_pool (#21159)
* core: avoid modification of accountSet cache in tx_pool

when runReorg, we may copy the dirtyAccounts' accountSet cache to promoteAddrs
in which accounts will be promoted, however, if we have reset request at the
same time, we may reuse promoteAddrs and modify the cache content which is
against the original intention of accountSet cache. So, we need to make a new
slice here to avoid modify accountSet cache.

* core: fix flatten condition + comment

Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-13 22:07:04 +08:00
Daniel Liu
b9f373fb57 core: fix queued transaction eviction #21300 2024-05-13 22:07:04 +08:00
Martin Holst Swende
ff246355a2 core: transaction pool optimizations (#21328)
* core: added local tx pool test case

* core, crypto: various allocation savings regarding tx handling

* core/txlist, txpool: save a reheap operation, avoid some bigint allocs

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2024-05-13 22:07:03 +08:00
Daniel Liu
48f9bbed50 core: types: less allocations when hashing and tx handling (#21265) 2024-05-13 22:07:03 +08:00
Hao Duan
1776bf1313 core: filter out txs with invalid signatures as soon as possible (#21170)
Once we detect an invalid transaction during recovering signatures, we should
directly exclude this transaction to avoid validating the signatures hereafter.

This should optimize the validations times of transactions with invalid signatures
to only one time.
2024-05-13 22:07:03 +08:00
chenglin
cf41742040 core: collect NewTxsEvent items without holding reorg lock (#21145) 2024-05-13 22:07:03 +08:00
Daniel Liu
624371433e core: fix typos in comments (#21118) 2024-05-13 22:07:03 +08:00