Commit graph

12141 commits

Author SHA1 Message Date
Daniel Liu
e8a9807be6
Merge pull request #732 from gzliudan/gas-price
eth/gasprice: fix wrong gas price with empty blocks
2024-11-13 09:31:27 +08:00
Daniel Liu
59b06e4a03 eth/gasprice: reduce default gas price for empty block 2024-11-13 09:30:55 +08:00
Daniel Liu
de7203ac88 eth/gasprice: remove default from config (#30080) 2024-11-13 09:30:55 +08:00
Daniel Liu
d3eaeb9381 eth/gasprice: use slices package for sorting (#27490 #27909 #29314) 2024-11-13 09:30:55 +08:00
Daniel Liu
4dbed3582f eth/gasprice: simplify function getBlockValues 2024-11-13 09:30:55 +08:00
Daniel Liu
f9e431888e eth/gasprice: add generic LRU implementation (#26162) 2024-11-13 09:30:54 +08:00
Daniel Liu
179185438f eth/gasprice: sanitize max header and block history (#23886) 2024-11-13 09:30:54 +08:00
Daniel Liu
cb2d604786
Merge pull request #728 from gzliudan/fix-pend-tx
core/txpool: fix very high pending special transactions
2024-11-08 09:44:38 +08:00
Daniel Liu
c254b08443 core/txpool: fix very high pending special transactions 2024-11-07 17:47:59 +08:00
Daniel Liu
afc4fcf8f5
Merge pull request #727 from gzliudan/peers-50
cmd/utils, node: increase default maxpeers to 50
2024-11-05 10:18:20 +08:00
Daniel Liu
216ee418f1 cmd/utils, node: increase default maxpeers to 50 (#19497) 2024-11-04 16:13:02 +08:00
Daniel Liu
dd892c0b82
Merge pull request #726 from gzliudan/fix-sa1019-node
upgrade package node
2024-11-04 13:26:34 +08:00
Daniel Liu
cec7dcb02a node: report actual port used for http rpc (#20789) 2024-11-04 12:31:16 +08:00
Daniel Liu
ef8fa666d3 node: prefer nil slices over zero-length slices (#19083) 2024-11-04 12:31:16 +08:00
Daniel Liu
4cb240981e node: fix a deadlock (#17891) 2024-11-04 12:31:16 +08:00
Daniel Liu
97a5ff616b rpc: Make HTTP server timeout values configurable (#17240) 2024-11-04 12:31:15 +08:00
Daniel Liu
56bce3983d rpc: clean up IPC handler (#16524) 2024-11-04 12:31:15 +08:00
Daniel Liu
6b653a22ad node: fix staticcheck warning SA1019: NewHTTPServer and NewWSServer are deprecated (#16154) 2024-11-04 12:31:15 +08:00
Daniel Liu
e499b40dbc
Merge pull request #725 from gzliudan/rm-file
remove accidental file test.txt
2024-11-02 09:12:46 +08:00
Daniel Liu
25bde78887 remove accidental file test.txt 2024-11-01 15:45:40 +08:00
benjamin202410
338fb86bcd
downsize devnet rpc (#724)
Co-authored-by: Name <benjamin202410@gmail.com>
2024-10-31 22:43:07 -07:00
Daniel Liu
a3bd485bd6
Merge pull request #527 from gzliudan/eip1559
implement EIP-1559
2024-11-01 11:56:18 +08:00
Daniel Liu
56ed523fc0 common: set Eip1559Block to 23580000 for devnet 2024-11-01 11:36:53 +08:00
Daniel Liu
416e5ac00f eth/tracers,internal/ethapi: use correct baseFee when BlockOverrides is provided in call/traceCall (#29051) 2024-11-01 11:36:53 +08:00
Daniel Liu
bc14c672f2 internal/ethapi: support unlimited rpc gas cap in eth_createAccessList (#28846) 2024-11-01 11:36:53 +08:00
Felix Lange
6b8dd86b52 eth/gasprice: fix percentile validation in eth_feeHistory (#28954) 2024-11-01 11:36:53 +08:00
colin
bb55c1044b ethclient: apply accessList field in toCallArg (#28832)
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-11-01 11:36:53 +08:00
Daniel Liu
0237985f58 internal/ethapi: ethSendTransaction check baseFee (#27834) 2024-11-01 11:36:53 +08:00
Daniel Liu
4340e7b6f4 ethclient: fix forwarding 1559 gas fields (#28462) 2024-11-01 11:36:53 +08:00
Daniel Liu
f23e1a648c internal/ethapi: implement eth_getBlockReceipts (#27702) 2024-11-01 11:36:53 +08:00
Daniel Liu
da9d2e29f5 core/types: fix discrepancy in receipt.EffectiveGasPrice json encoding tags (#27114) 2024-11-01 11:36:53 +08:00
Daniel Liu
419f81f022 eth/gasprice: change feehistory input type from int to uint64 (#26922) 2024-11-01 11:36:53 +08:00
Daniel Liu
b8236888d4 internal/ethapi: avoid int overflow in GetTransactionReceipt (#26911) 2024-11-01 11:36:53 +08:00
Daniel Liu
a294c2080d all: fix null effectiveGasPrice 2024-11-01 11:36:53 +08:00
Daniel Liu
2a9d450101 core/types: add EffectiveGasPrice in Receipt (#26713) 2024-11-01 11:36:53 +08:00
Daniel Liu
9b20ac785e consensus/misc: move eip1559 into a package (#27828) 2024-11-01 11:36:53 +08:00
Daniel Liu
f64aea4ba0 core/vm: implement EIP-3860: Limit and meter initcode (#23847) 2024-11-01 11:36:53 +08:00
Péter Szilágyi
cda663db64 core/types: rename tx files to group them better together (#26044) 2024-11-01 11:36:53 +08:00
Daniel Liu
8b2e8d9b3a all: refactor txpool into it's own package in prep for 4844 (#26038) 2024-11-01 11:36:53 +08:00
Martin Holst Swende
05797846fc core: fix datarace in txpool, fixes #25870 and #25869 (#25872)
core: fix datarace in txpool pendingnoce, fixes #25870
2024-11-01 11:36:53 +08:00
Seungbae Yu
66763aa8ae core: don't cache zero nonce in txNoncer (#25603)
This changes the nonce cache used by TxPool to not store cached
nonces for non-existing accounts.
2024-11-01 11:36:53 +08:00
Seungbae Yu
a410f7b38e core: preallocate maps in TxPool helper methods (#25737) 2024-11-01 11:36:53 +08:00
ucwong
e4153f756d internal/ethapi: fix comment typo (#25548) 2024-11-01 11:36:53 +08:00
Daniel Liu
49b54aaede internal/ethapi: rework setDefaults for tx args so fee logic is separate (#25197) 2024-11-01 11:36:53 +08:00
Daniel Liu
c668279c48 internal/ethapi: don't estimate gas if no limit provided in eth_createAccessList (#25467) 2024-11-01 11:36:53 +08:00
Daniel Liu
754c6456af eth/gasprice/feehistory: support finalized block (#25442) 2024-11-01 11:36:53 +08:00
Daniel Liu
9535b3ade5 ethclient: add FeeHistory support (#25403) 2024-11-01 11:36:53 +08:00
Daniel Liu
fa83f32e5c internal/ethapi: error if tx args includes ChainId not match local (#25157) 2024-11-01 11:36:53 +08:00
aaronbuchwald
7237811928 core: fix typo in txpool (#25149)
Fix typo in txPool truncateQueue comment
2024-11-01 11:36:53 +08:00
Daniel Liu
77e2ad90cf internal/ethapi: add comment explaining return of nil instead of error (#25097) 2024-11-01 11:36:53 +08:00