Daniel Liu
8938e27932
all: move err to the last position of return values ( #1581 )
2025-10-08 12:29:38 +08:00
wit liu
d20f91057a
all: fix whitespace ( #1572 )
2025-09-24 07:58:40 +08:00
Wanwiset Peerapatanapokin
53e5601825
Merge pull request #1493 from XinFinOrg/fix-rewardhash
...
fix: XDPoS_v2 save reward file during Seal for block miner for v2 engine
2025-09-23 12:49:12 +04:00
wanwiset25
1935cb7f25
add more details in logging
2025-09-23 11:55:17 +04:00
wit liu
07399bc552
all: fix misspell ( #1523 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 20:11:19 +08:00
wit liu
7d5a03a46e
all: fix unnecessary conversion ( #1527 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:45:42 +08:00
wit liu
d9ae317a38
all: format golang files ( #1548 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:41:54 +08:00
wit liu
1a2c8ee180
all: fix govet ( #1517 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 18:55:13 +08:00
Wanwiset Peerapatanapokin
fd22d58cc1
Merge pull request #1257 from XinFinOrg/improve-consensus-logs
...
Improve consensus logs
2025-09-20 19:03:34 +04:00
wanwiset25
b4f79c0b14
improve logs
2025-09-20 18:12:11 +04:00
wgr523
5a6d25ec08
engine_v2: fix negative underflow in getBlockInfoByEpochNum ( #1481 )
2025-09-17 22:52:28 +08:00
wgr523
b8e5baa978
all: fix minted token recorded value is zero ( #1480 )
2025-09-17 22:50:52 +08:00
wit liu
99e2885b03
all: fix misspell ( #1510 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-17 08:27:52 +08:00
wanwiset25
8ba050e99a
PR fixes
2025-09-16 17:03:58 +04:00
wanwiset25
5f9c4b3a25
engine_v2: save reward file during Seal for block miner
2025-09-14 14:50:47 +04:00
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
ad9003c41e
eth/tracers: live chain tracing with hooks #29189 ( #1352 )
...
Here we add a Go API for running tracing plugins within the main block import process.
As an advanced user of geth, you can now create a Go file in eth/tracers/live/, and within
that file register your custom tracer implementation. Then recompile geth and select your tracer
on the command line. Hooks defined in the tracer will run whenever a block is processed.
The hook system is defined in package core/tracing. It uses a struct with callbacks, instead of
requiring an interface, for several reasons:
- We plan to keep this API stable long-term. The core/tracing hook API does not depend on
on deep geth internals.
- There are a lot of hooks, and tracers will only need some of them. Using a struct allows you
to implement only the hooks you want to actually use.
All existing tracers in eth/tracers/native have been rewritten to use the new hook system.
This change breaks compatibility with the vm.EVMLogger interface that we used to have.
If you are a user of vm.EVMLogger, please migrate to core/tracing, and sorry for breaking
your stuff. But we just couldn't have both the old and new tracing APIs coexist in the EVM.
---------
Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
Co-authored-by: Matthieu Vachon <matthieu.o.vachon@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
2025-09-09 17:30:56 +08:00
Daniel Liu
6f36533962
all: remove ethash pow 27178 ( #1378 )
2025-08-26 11:54:01 +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
bc7e213b96
fix syncinfo skip condition ( #1285 )
...
* fix syncinfo skip condition
* fix condition
* fix condition
---------
Co-authored-by: liam.lai <liam.lai@us>
2025-08-04 02:51:05 -07: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
Daniel Liu
85f08c7732
eth: skip VerifyHeader in traceBlock to fix #1185 ( #1265 )
2025-07-26 18:18:50 +08:00
Daniel Liu
23a83dce3e
consensus, eth/tracers: remove redundant import names #21903 ( #1248 )
2025-07-26 17:47:14 +08:00
wanwiset25
d34aa35ecc
fix test
2025-07-16 00:28:11 +07:00
wanwiset25
11ae49b35d
make XDPoS_getBlockInfoByEpochNum work with v1 epoch number
2025-07-15 02:30:23 +07:00
Daniel Liu
c46302cf65
all: fix invalid signer list on checkpoint block for trace api #1185 ( #1186 )
2025-07-12 06:56:30 +08:00
Daniel Liu
801e92b56d
XDCx, consensus: fix some typos ( #1173 )
2025-07-02 14:12:11 +08:00
JukLee0ira
c0315121b4
all: replace fmt.Errorf() with errors.New() if no param required #29126 ( #1175 )
2025-07-01 17:46:50 +08: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
Wanwiset Peerapatanapokin
4142debefc
Merge pull request #1104 from XinFinOrg/fix-getrewardbyaccount-edgecase
...
fix: getrewardbyaccount api edge case
2025-06-17 11:29:08 +04:00
Wanwiset Peerapatanapokin
aa84249c0d
simplify code
2025-06-16 13:53:34 +04: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
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
Wanwiset Peerapatanapokin
a9199d4140
Merge pull request #944 from nghiangovan/dev-upgrade
...
add-epoch-number-for-XDPoS_getMasternodesByNumber
2025-05-07 15:28:59 +04:00
wanwiset25
576bdfff79
change method and handle case with no reward
2025-05-05 18:09:29 +04:00
Daniel Liu
94b3ca1eeb
all: remove version field #25096 ( #970 )
2025-04-24 18:55:15 +08:00
Daniel Liu
4fb622bfd0
all: remove public field from rpc.API #25059 ( #969 )
2025-04-24 18:53:59 +08: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
wgr523
6a38aa00aa
Reward float upgrade ( #940 )
...
* feat: use float type reward
* feat: add test of float reward
2025-04-16 02:03:41 -07: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
5b8c267122
trie: use trie.NewStackTrie instead of new(trie.Trie) ( #22246 )
2025-04-07 16:44:32 +08: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