Commit graph

47 commits

Author SHA1 Message Date
liam.lai
99bbb60b9b feat(consensus): add RPC endpoint to query signing tx count by epoch 2026-03-23 01:19:13 -07:00
wit liu
2855f1b48c
core, consensus: use slice.Clip capacity to Simplify code (#1892) 2026-01-05 12:16:20 +05:30
Daniel Liu
94d0fceffe
all: use FinalizedBlockNumber instead of CommittedBlockNumber (#1847) 2025-12-11 16:19:51 +05:30
wit liu
d6309612fc
all: fix unnecessary whitespace (#1800) 2025-12-08 15:07:11 +05:30
Daniel Liu
af7e479ce9
consensus/XDPoS: use slices package for sorting (#1710) 2025-12-04 08:02:58 +05:30
Daniel Liu
f24e68b015
consensus/XDPoS, eth: fix potential rpc.BlockNumber overflow, close XFN-69 (#1735) 2025-11-15 16:44:08 +05:30
Daniel Liu
9d85990309
all: fix missing nil check, close XFN-114 (#1695) 2025-11-01 23:21:44 +05:30
wit765
12eab8e785
all: rename ChainId to ChainID #16853 (#1456)
Co-authored-by: wit <wit765765346@gmail>
2025-09-09 22:54:34 +08:00
Daniel Liu
9c6816eab6
core/vm: make time field use uint64 #26474 (#1319) 2025-08-20 15:22:06 +08:00
Daniel Liu
34020969ff
all: simplify timestamps to uint64 #19372 (#1318) 2025-08-08 10:33:37 +08:00
benjamin202410
db9c3de1dc
add syncinfo pool (#1236)
* add syncinfo message into pool for process later

* add missing file back

---------

Co-authored-by: liam.lai <liam.lai@us>
2025-07-28 01:43:41 -07:00
wanwiset25
11ae49b35d make XDPoS_getBlockInfoByEpochNum work with v1 epoch number 2025-07-15 02:30:23 +07:00
Wanwiset Peerapatanapokin
aa84249c0d
simplify code 2025-06-16 13:53:34 +04:00
wanwiset25
796ee818e3 add condition to fix endIndex out of bounds 2025-06-11 18:37:02 +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
wanwiset25
576bdfff79 change method and handle case with no reward 2025-05-05 18:09:29 +04:00
wanwiset25
8ca51b6ee4 - compare both hash and block num from reward filename to blockchain state
- complete error handling
2025-04-24 13:42:35 +04:00
wanwiset25
4fc208b527 rename variables and optimize code 2025-04-24 13:42:35 +04:00
wanwiset25
65e3a5534a change approach to epochnumber search
add total rewards in response
2025-04-24 13:42:35 +04:00
wanwiset25
52f03dd9dc add new api XDPoS_getRewardByAccount 2025-04-24 13:42:35 +04:00
Anonymous
47c0382e2d add-epoch-number-for-XDPoS_getMasternodesByNumber 2025-04-15 22:21:07 +07:00
Wanwiset Peerapatanapokin
9a00e475b4
Merge pull request #930 from XinFinOrg/add-api-limit
consensus/XDPoS: add limit to high resource demand api
2025-04-08 15:31:50 +04:00
Daniel Liu
a4c7d7f458 all: clean duplicate constants in package common 2025-04-07 16:43:01 +08:00
wanwiset25
f3a2577a76 simplify code 2025-04-04 09:56:41 +04:00
wanwiset25
229caf0125 add limit to high resource demand api 2025-03-31 06:00:27 +04:00
JukLee0ira
51dac59e92 common: change type of variables for constants 2025-02-17 11:38:16 +08:00
benjamin202410
118ccd08d5
cherry pick epoch api from dev-upgrade (#699)
* cherry-pick-epoch-api
2024-10-29 01:36:22 -07:00
benjamin202410
042c02ba8c
add last block number for epoch api (#681)
Co-authored-by: Liam Lai <liam@home>
2024-10-20 23:43:23 -07:00
Liam Lai
22fc7d0710 fix conflict 2024-10-16 22:42:53 -07:00
Liam Lai
b43bb5ed1f api epoch 2024-10-15 19:20:13 -07:00
wgr523
3593abe815
feat: GetEpochNumbersBetween API (#606)
* feat: GetEpochNumbersBetween API

* style: refine GetEpochNumbersBetween API
2024-09-02 00:11:12 -07:00
JukLee0ira
0aab4ced98 common: add binary variables for system contract 2024-06-06 19:33:59 +08:00
Jianrong
8e1f71e86e Fix the typo missied to missed 2023-12-28 23:03:53 +11:00
Jianrong
6740545358 change the API to be block num based 2023-12-28 15:13:05 +11:00
Jianrong
e28b550a24 Add a new API to help debug when there are missed rounds 2023-12-28 15:13:05 +11:00
Banana-J
e30d909643
Add config into network information API (#381) 2023-12-19 19:02:32 +11:00
Wanwiset Peerapatanapokin
a959bea092 add standbynodes in GetMasternodesByNumber similar way to subnet 2023-07-21 10:07:05 +04:00
Banana-J
2c1aba814e
add timestamp in v2 block response (#290) 2023-07-15 11:33:36 +10:00
Liam
96f28b8bc6
enhance api for subnet project (#289) 2023-07-14 20:04:01 +10:00
Liam
153f8d296d
Fix API penalty bug and add more info in api (#262)
* fix api bug

* remove cmd
2023-05-16 21:23:02 +10:00
Liam
7b657f0c4e
API: getMasternode and getPoolStatus (#258)
* API: getMasternode and getPoolStatus

* fix test
2023-05-01 23:01:39 +10:00
Liam
9552500335
xdpos API getV2Block (#227) 2023-03-05 02:17:46 +08:00
Jerome
4eea723717
Add API to get latest committed blockInfo, also send it via 'block' message type to stats server (#113) 2022-07-16 16:14:36 +10:00
Jianrong
fcbc5a28e1 refactor XDPoS to accommodate multiple consensus engine versions 2021-10-10 16:02:16 +11:00
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
Jianrong
0fdab2027c add linting as the first CI task 2021-08-07 14:27:08 +10:00
parmarrushabh
ce89b6b92d making XDPoS as a separate package 2018-10-28 11:58:50 +05:30