Commit graph

500 commits

Author SHA1 Message Date
Daniel Liu
c91a67c4c0
common: enable cancun after 1800 blocks in eip1559 (#942) 2025-04-16 17:07:41 +08:00
Daniel Liu
7aaf724f4f all: update parameters for rollback 2025-04-12 11:38:27 +08:00
Daniel Liu
a4c7d7f458 all: clean duplicate constants in package common 2025-04-07 16:43:01 +08:00
Daniel Liu
91cbe818ea common, params: define cancun block for testnet and print more chain config 2025-04-01 14:41:05 +08:00
Gerui Wang
84ae914350 feat: add TIPEpochHalving, better style 2025-03-25 22:16:35 +08:00
Daniel Liu
d6fd1e868e common, params: update parameters of devnet 2025-03-16 01:06:12 +08:00
JukLee0ira
9d3a8c20eb common: set cancun block to 0 for local net 2025-03-11 16:42:14 +08:00
wgr523
c36e4d54c0
Upgrade reward 2.0 (#865)
* refactor: reward hook gets prepared for upgrade

* feat: new reward hook, config change, unit tests

* add missing code

* feat: filter penalty in reward. add unit test

* update constant and config

---------

Co-authored-by: liam.lai <liam.lai@us>
2025-03-02 02:44:34 -08:00
Daniel Liu
588dcd35ce cmd, common, core, eth: optimize rollback by flag 2025-03-01 11:34:32 +08:00
Daniel Liu
a6571f4a53 common: clear ignoreSignerCheckBlockArray and blacklist for local net 2025-02-23 11:55:20 +08:00
Daniel Liu
01bd024bfb common: not copy constants.go for compatibility 2025-02-23 11:55:20 +08:00
Daniel Liu
1819d5b7b4 common: set eip1559Block to 0 for local net 2025-02-19 15:52:34 +08:00
Daniel Liu
30195e88ee core/vm: enable cancun instruction set 2025-02-19 14:20:45 +08:00
Daniel Liu
c67d13abee common: update eip1559 block number for testnet 2025-02-19 14:16:52 +08:00
Daniel Liu
2a2711ad64 cmd, common, eth: copy constants after get chain id 2025-02-18 15:16:55 +08:00
JukLee0ira
51dac59e92 common: change type of variables for constants 2025-02-17 11:38:16 +08:00
Daniel Liu
94002321d0 common: create directory constants for back compatibility 2025-02-17 09:13:40 +08:00
Daniel Liu
cfc8cca674 common: refactor constants 2025-02-17 09:13:40 +08:00
Wang Gerui
37b1929621 refactor: more logs on countdown 2025-02-15 17:44:39 +08:00
Daniel Liu
ec0e07b100 params: add Cancun blocks (#25305) 2025-02-05 18:01:29 +08:00
Daniel Liu
002fac8b14 all: remove the duplicate 'the' in annotations (#17509) 2025-01-24 16:18:28 +08:00
wgr523
537dc5e6fb
Exp timeout (#764)
* feat: write duration calculation in countdown as
interface. add more inputs as function argument

* feat: ExpTimeoutDuration

* fix: three dots usage

* feat: refine exp duration

* feat: add exp timeout config and use it in countdown

* feat: remove const countdown

* feat: remove use of interface in countdown, use error

* fix: countdown reset timer problem

* fix: add default ExpTimeoutConfig for config
2025-01-19 23:04:03 +08:00
wanwiset25
654be4d874 add cicd 2025-01-01 22:07:31 -05:00
wanwiset25
4859d5e7db new constants and genesis.json 2025-01-01 22:06:09 -05:00
wanwiset25
44ac46f676 add local xdpos function
add readme

changes to support xdpos2 protocol from block 0
2025-01-01 22:06:09 -05:00
Daniel Liu
6e33633d28 common: drop BigMin and BigMax, they pollute our dep graph (#30645) 2024-12-28 09:06:31 +08:00
Daniel Liu
156de2bf90 common/math: delete some further dead code (#30639) 2024-12-28 09:06:31 +08:00
Daniel Liu
6ec35b9644 all: get rid of custom MaxUint64 and MaxUint64 (#30636) 2024-12-28 09:06:31 +08:00
Halimao
dff8e50085 common: using ParseUint instead of ParseInt (#30020)
Since Decimal is defined as unsiged `uint64`, we should use `strconv.ParseUint` instead of `strconv.ParseInt` during unmarshalling.

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-12-28 09:06:31 +08:00
Dean Eigenmann
6fda80ade8 common/math: fix out of bounds access in json unmarshalling (#30014)
Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-12-28 09:06:31 +08:00
tianyeyouyou
b274a273b8 common/math: rename variable name int to n (#29890)
* chore: rename variable name `int` to `in`

* chore: rename variable name `int` to `n`
2024-12-28 09:06:31 +08:00
georgehao
62afcf6b85 common/prque: fix godoc comments (#29460)
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-12-28 09:06:31 +08:00
Daniel Liu
57eb92da1c common/prque: remove dependency on golang.org/exp (#29314) 2024-12-28 09:06:31 +08:00
Justin Dhillon
009542a92e accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
fixes some links in documentation
2024-12-28 09:06:31 +08:00
Aaron Chen
f2cd7c082b common/math: copy result in Exp (#29233)
common/math: does not change base parameter
2024-12-28 09:06:31 +08:00
Daniel Liu
ff13d16fe5 core/vm: make structlog/json-log stack hex again (#28628) 2024-12-28 09:06:31 +08:00
Daniel Liu
4cc2b2ea5f tests/fuzzers: move fuzzers into native packages (#28467) 2024-12-28 09:06:31 +08:00
Daniel Liu
441f8ed70c common: add variable MaxHash (#28306) 2024-12-28 09:06:31 +08:00
Felföldi Zsolt
f74cccd1cb beacon/types: add beacon chain data types (#27292)
* beacon/types: add beacon chain data types

* beacon/merkle: added comments

* go.mod: cleanups

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-12-28 09:06:31 +08:00
Daniel Liu
59b14ed2cb internal/ethapi: make NewAccount return EIP-55 format (#26973) 2024-12-28 09:06:31 +08:00
lightclient
12111d30ea common: delete MakeName (#27023)
common,p2p: remove unused function MakeName
2024-12-28 09:06:31 +08:00
Péter Szilágyi
b58802a402 common/math: allow HexOrDecimal to accept unquoted decimals too (#26758) 2024-12-28 09:06:31 +08:00
Péter Szilágyi
39e9d8f94d common/prque: generic priority queue (#26290) 2024-12-28 09:06:31 +08:00
Mark Tyneway
5059114992 common/types: add Address.Big (#26132)
Many of the other types have a function to convert the type to a big.Int,
but Address was missing this function.

It is useful to be able to turn an Address into a big.Int when doing
EVM-like computations natively in Go. Sometimes a Solidity address
type is casted to a uint256 and having a Big method on the Address
type makes this easy.
2024-12-28 09:06:31 +08:00
Henry
3eb2ec42b5 common/compiler: json unmarshalling error checks (#25449)
complier/solidity:add json.Unmarshal err check
2024-12-28 09:06:31 +08:00
Daniel Liu
32e033df3a common, p2p: use AbsTime.Add instead of conversion (#25417) 2024-12-28 09:06:31 +08:00
Daniel Liu
e3edcc8429 common/math: lint whitespace 2024-12-28 09:06:31 +08:00
Seungbae.yu
1bff428a39 common/prque: fix typo (#25206) 2024-12-28 09:06:30 +08:00
Seungbae.yu
a03e11186c common: increase StorageSize test coverage (#25188) 2024-12-28 09:06:30 +08:00
Marius van der Wijden
febb456ddd common: improve pretty duration regex (#25073) 2024-12-28 09:06:30 +08:00
Daniel Liu
ebc036682e common/compiler, cmd/abigen: remove solc/vyper compiler integration (#24936) 2024-12-28 09:06:30 +08:00
Daniel Liu
d6d6906881 internal: add db operations to api (#24739) 2024-12-28 09:06:30 +08:00
zhiqiangxu
69ea5327b8 common/compiler: add extra include paths to solidity compiler (#24541)
This PR adds a ExtraAllowedPath field to Solidity and exposes two APIs: CompileSource and CompileFiles, which were hidden inside CompileSolidityString and CompileSolidity before.
2024-12-28 09:06:30 +08:00
lmittmann
49dc5e85e1 common/hexutil: improve performance of EncodeBig (#23780)
- use Text instead of fmt.Sprintf
- reduced allocs from 6 to 2
- improved speed
2024-12-28 09:06:30 +08:00
Alexander Yastrebov
4db72a0548 common: fixes format verb (#23495) 2024-12-28 09:06:30 +08:00
Paul-Armand Verhaegen
fb17f56852 common: rename unused function with typo (#23025)
This function is not used in the code base, so probably safe to do rename, or remove in its entirety, but I'm assuming the logic from the original creator still applies so rename probably better.
2024-12-28 09:06:30 +08:00
Daniel Liu
e2eb22dcac common/prque: make Prque wrap-around priority handling optional (#22495) 2024-12-28 09:06:30 +08:00
Daniel Liu
e52587df53 common: do not pass current time as param in priority funcs (#22183) 2024-12-28 09:06:30 +08:00
Daniel Liu
6f19ace5e2 common/mclock: remove dependency on github.com/aristanetworks/goarista (#22211) 2024-12-28 09:06:30 +08:00
Péter Szilágyi
d852f8cf88 common/prque: pull in tests and benchmarks from upstream (#22157) 2024-12-28 09:06:30 +08:00
Marius van der Wijden
f01e639f6f common/compiler: fix parsing of solc output with solidity v.0.8.0 (#22092)
Solidity 0.8.0 changes the way that output is marshalled. This patch allows to parse both
the legacy format used previously and the new format.

See also https://docs.soliditylang.org/en/breaking/080-breaking-changes.html#interface-changes
2024-12-28 09:06:30 +08:00
Daniel Liu
c2db0e42d7 common: improve printing of Hash and Address (#21834) 2024-12-28 09:06:30 +08:00
Daniel Liu
dd318fc563 common/hexutil: remove redundant conversion (#21903) 2024-12-28 09:06:30 +08:00
Daniel Liu
28739d7863 common: remove usage of deprecated function (#21610) 2024-12-28 09:06:30 +08:00
Daniel Liu
cf0c5c8cd2 common/prque: refactor LazyQueue (#21236) 2024-12-28 09:06:30 +08:00
Felix Lange
d3a943d0b3 common/math: use math/bits intrinsics for Safe* (#21316)
This is a resubmit of ledgerwatch/turbo-geth#556. The performance
benefit of this change is negligible, but it does remove a TODO.
2024-12-28 09:06:30 +08:00
Daniel Liu
30f835c6a4 accounts/abi: common/math: moved U256Bytes (#21020) 2024-12-28 09:06:30 +08:00
Daniel Liu
f5e90eecff common: improve test (#20354) 2024-12-28 09:06:30 +08:00
Daniel Liu
56e242b06c core/state: optimize some internals during encoding (#20038) 2024-12-28 09:06:30 +08:00
Daniel Liu
7f63a690ee common: unify hex prefix check code (#19937) 2024-12-28 09:06:30 +08:00
shiqinfeng1
94b69fdf1e common/compiler: support relative import paths (#17374 #19967) 2024-12-28 09:06:30 +08:00
David Chase
5a8110b292 common/bitutil: use result of TestBytes to prevent dead code elimination (#19846)
Gollvm has very aggressive dead code elimination that completely
removes one of these two benchmarks.  To prevent this, use the
result of the benchmark (a boolean), and to be "fair", make the
transformation to both benchmarks.

To be reliably assured of not removing the code, "use" means
assigning to an exported global.  Non-exported globals and
//go:noinline functions are possibly subject to this optimization.
2024-12-28 09:06:30 +08:00
Daniel Liu
057a7dd780 cmd/abigen: refactor command line interface (#19797) 2024-12-28 09:06:30 +08:00
Daniel Liu
7455b91800 accounts/abi/bind: accept function ptr parameter (#19755) 2024-12-28 09:06:30 +08:00
Daniel Liu
a747a9861d common: improve functions of StorageSize (#19244) 2024-12-28 09:06:30 +08:00
Daniel Liu
66921899e9 cmd/abigen: support Vyper (#19120) 2024-12-28 09:06:30 +08:00
Daniel Liu
cd1ff5d322 common: remove function Big() for type Address (#19210) 2024-12-28 09:06:30 +08:00
Daniel Liu
f19422e1c7 cmd/utils: relinquish GC cache to read cache in archive mode (#18991) 2024-12-28 09:06:30 +08:00
Javier Sagredo
2772e096b4 common/compiler: fixed testSource (#18978) 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
92fc843683 crypto: switch over to upstream sha3 package (#18390) 2024-12-09 17:48:59 +08:00
benjamin202410
370c6b62e7
update devnet 1559 block number (#736)
* update devnet 1559 block number

* update devnet 1559 block number

---------

Co-authored-by: liam.lai <liam.lai@us>
2024-11-17 21:23:19 -08:00
Daniel Liu
41c4c9ba88 log: avoid stack lookups when not needed/used (#28069) 2024-11-15 10:02:42 +08:00
Daniel Liu
aedfea681b all: make logs a bit easier on the eye to digest (#22665) 2024-11-15 10:02:41 +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
56ed523fc0 common: set Eip1559Block to 23580000 for devnet 2024-11-01 11:36:53 +08:00
Daniel Liu
e18553b855 all: implement eip-1559 (#22837) 2024-11-01 11:36:52 +08:00
Daniel Liu
5b0b5b52c7 common: fix staticcheck warning S1001: replace loop with copy 2024-10-30 21:05:15 +08:00
Daniel Liu
a79411fa06 all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
Daniel Liu
4f9501f12c common, crypto: move fuzzers out of core (#22029) 2024-09-22 19:25:37 +08:00
Daniel Liu
96f5876896 common/bitutil: improve the fuzzers (#21829) 2024-09-22 19:25:37 +08:00
cui
96e2743508 common/lru: use clear builtin (#29399) 2024-08-26 11:17:23 +08:00
Daniel Liu
bc121d3634 lru: fix mismatched names in comments (#29348) 2024-08-26 11:17:23 +08:00
Liam
e46f41d081
Dev upgrade merge from master to fix rpc nodes (#615)
* merge from master

* merge from master
2024-08-21 00:17:39 -07:00
Liam
e3df8e55a6
remove legacy testnet validate masternode logic (#603)
* remove legacy testnet validate masternode logic

* remove legacy testnet validate masternode logic

* remove legacy testnet validate masternode logic
2024-08-12 00:13:36 -07:00
Guillaume Ballet
1ce065f192 common/fdlimit: fix linter warning (#25192) 2024-08-03 08:12:28 +08:00
Daniel Liu
514b4ce7c5 common/fdlimit: build on DragonflyBSD (#21241) 2024-08-03 08:12:28 +08:00
Daniel Liu
467126234f common/fdlimit: fix macos file descriptors for Go 1.12 (#19166) 2024-08-03 08:12:28 +08:00
Daniel Liu
c012af02d3 common/fdlimit: Fix compilation error in freebsd, Raise returns uint64 (#19141) 2024-08-03 08:12:28 +08:00
Daniel Liu
be2d40bcdd common/fdlimit: fix windows build (#19068) 2024-08-03 08:12:28 +08:00