Commit graph

474 commits

Author SHA1 Message Date
Daniel Liu
782a7ff5cb
all: fix typos, close XFN-23 (#1725) 2025-11-14 20:02:34 +05:30
Daniel Liu
c3c3d03551
common: fix gas fee mismatch before TIPTRC21Fee, close XFN-51 (#1636) 2025-11-03 16:24:14 +05:30
Daniel Liu
4aafff2826
common: improve function ExtractAddressFromBytes, close XFN-15 (#1658) 2025-11-03 12:56:14 +05:30
wit liu
9b0a653698
common: use tagged switch on chainID in func CopyConstants (#1579) 2025-10-08 12:28:17 +08:00
Daniel Liu
52614a59c3
common/math: fix typo in TestMustParseUint64Panic error message #32648 (#1555)
Fix typo in test error message where "MustParseBig" was incorrectly
used instead of "MustParseUint64" in the TestMustParseUint64Panic
function.

The test still functions correctly, but now the error message
accurately reflects the function being tested.

Co-authored-by: Gengar <creeptogengar@gmail.com>
2025-09-24 07:49:30 +08:00
Daniel Liu
6e5f466df9
common: remove duplicate test cases #32624 (#1556) 2025-09-22 20:43:50 +08:00
wanwiset25
ae696dc547 func CopyConstants choose local chain if unknown chainID 2025-09-14 15:21:26 +04:00
wanwiset25
a1e5a98377 update validator initial configs 2025-09-14 15:19:19 +04:00
wanwiset25
4df9699821 genesis wizard accept file input 2025-09-14 15:19:19 +04:00
Daniel Liu
31dcbc7645
eth/tracers: use slices package for sorting #27490 (#1337) 2025-09-09 15:12:22 +08:00
Daniel Liu
d2859ecb9c
common, common/hexutil: use reflect.TypeFor #32321 (#1434)
Co-authored-by: cui <cuiweixie@gmail.com>
2025-09-06 17:13:56 +08:00
Daniel Liu
1b09e585ab
common/hexutil: replace customized bit sizer with bit.Uintsize #32304 (#1433) 2025-09-06 17:13:17 +08:00
Daniel Liu
06b2524fb2
all: use fmt.Appendf instead of fmt.Sprintf where possible #31301 (#1432) 2025-09-06 17:12:19 +08:00
benjamin202410
d7412ea981
revert reward v2 block number for testing backward compatitble (#1361)
Co-authored-by: liam.lai <liam.lai@us>
2025-08-20 01:25:37 -07:00
wgr523
4ec4a5390f
Consecutive penalty upgrade (#1053)
* feat: penalty upgrade, consecutive epochs penalty
can be unpenalized

* feat: use binary search inside penalty hook

* style: modification on style

* feat: in penaltyHook change startRange

* fix: add lastPenalty condition in HookPenalty V2
2025-06-25 01:12:56 -07:00
wgr523
e13265a7d7
record total minted into smart contract (#1026)
* feat: record total minted into smart contract

* feat: GetCurrentTotalMinted API
2025-06-16 02:31:33 -07:00
Tarun Sharma
c14f2e17aa test: Updated test cases to include MaxInt64, MinInt64 and MaxUint64, also rename testcase to TestHas0xPrefix to cover Has0xPrefix public method in hexutil package 2025-05-16 12:55:45 +04:00
Tarun Sharma
631be3cc04 refactor: Removed IsValidHexString and make has0xPrefix as public as per review comment 2025-05-16 12:33:25 +04:00
Tarun Sharma
78e82ac8a9 test: updated test cases to cover hex and number support for XDPoS_getV2BlockByNumber 2025-05-09 14:32:01 +04:00
Tarun Sharma
47d4bf4bf6 common: add public method to check for valid hex string 2025-05-08 17:56:48 +04:00
Wanwiset Peerapatanapokin
d21406c43e
Merge pull request #917 from XinFinOrg/update-reward-api
add new api XDPoS_getRewardByAccount
2025-05-07 15:29:32 +04:00
benjamin202410
9656e2d1c4
update devnet reward parameter (#980)
Co-authored-by: liam.lai <liam.lai@us>
2025-04-24 03:03:32 -07:00
Daniel Liu
733a1be4dc
common, core: add block age into info logs #17718 (#947) 2025-04-24 17:56:54 +08:00
wanwiset25
52f03dd9dc add new api XDPoS_getRewardByAccount 2025-04-24 13:42:35 +04:00
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