Daniel Liu
8d93eb6e3d
fix(contracts): use pool nonce for imported block sign tx ( #2213 )
...
Use pool pending nonce when creating the imported-block sign transaction.
Previously the code used state nonce, which could lag behind pool nonce when a pending tx with the same sender already existed. In that case, adding the new sign tx could hit replacement checks and fail with 'replacement transaction underpriced'.
This change switches nonce selection to PoolNonce to avoid nonce reuse in the local pool and prevent repeated sign insertion failures after block import.
2026-03-19 14:26:58 +08:00
wit liu
55c2d47c45
all: use 0x-prefix string for type Address in error message ( #1835 )
2025-12-23 15:39:23 +05:30
Daniel Liu
eef5242fa3
all: pre-allocate memory for slices and maps, close XFN-148 ( #1714 )
2025-11-14 20:13:36 +05:30
Daniel Liu
c7fb2e875d
consensus, contracts: check input length of ExtractValidatorsFromBytes, close XFN-14 ( #1608 )
2025-10-08 13:16:01 +08:00
Daniel Liu
31f5c7da88
all: remove deprecated uses of math.rand #26710 ( #1549 )
2025-09-22 20:42:14 +08:00
JukLee0ira
d6b136ed7c
consensus, internal, contracts: remove extra hash and string conversions ( #830 )
...
* consensus, internal: remove extra hash conversions
* contracts: remove extra string conversions
2025-02-07 13:59:07 +08:00
Daniel Liu
b6f3007af1
core: move genesis alloc types to core/types ( #29003 )
2025-01-24 16:54:12 +08:00
Jianrong
0eb2504db3
Add 1 test for adaptor to switch from v1 to v2
2021-10-17 11:20:57 +11:00
Jianrong
fcbc5a28e1
refactor XDPoS to accommodate multiple consensus engine versions
2021-10-10 16:02:16 +11:00
olumuyiwadad
cf18ceba33
Merge branch 'forking-incident-fix' of https://github.com/hash-laboratories-au/XDPoSChain into hash-laboratories-au-forking-incident-fix
2021-09-23 17:01:19 +05:30
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
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
Jianrong
fa2b341c9a
resolving broken eth tests
2021-08-29 17:14:10 +10:00
Jianrong
0fdab2027c
add linting as the first CI task
2021-08-07 14:27:08 +10:00
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
AnilChinchawale
4624bbb988
updated utils.go
2018-11-24 16:23:43 +05:30
parmarrushabh
3fc36efeb3
Fixed golint.
2018-11-09 10:49:11 +05:30
parmarrushabh
1396b1a10f
Fixed unit test for new m2 block header.
2018-11-09 16:29:54 +05:30
parmarrushabh
944494f6e4
Revert Randomization implementation
2018-11-06 16:16:29 +05:30
MestryOmkar
7aa35671ad
Fixed randomize generator not using matrix mechanism.
2018-11-05 11:58:04 +05:30
MestryOmkar
20c5123739
Fixed unit test for block randomize.
2018-11-05 11:45:14 +05:30
AnilChinchawale
d81dc08a50
Get randomize m2 offer from validators in smart contract.
2018-11-05 11:12:22 +05:30
parmmarrushabh
9765dea721
add option genesis generator for POSV
2018-10-27 17:52:28 +05:30
MestryOmkar
e712c2a377
resolve file conflict
2018-10-26 17:02:28 +05:30
parmmarrushabh
dccf2ca3e9
Add signers and finality to block status rpc api.
2018-10-27 16:28:04 +05:30
parmmarrushabh
97e089b50c
Fixed random hash function for unit test.
2018-10-23 12:21:59 +05:30
parmmarrushabh
356a13e109
Fixed send tx sign using block hash instead of block number.
2018-10-23 11:50:56 +05:30
parmarrushabh
264a6dc9db
Fixed calculate reward for holders.
2018-10-20 16:20:30 +05:30
parmarrushabh
76153eea4a
Fixed bug calculate reward and add unit test for it.
2018-09-22 10:12:05 +05:30
parmarrushabh
530f8e3656
Add unit test for calculate reward for signers at reward checkpoint.
2018-09-18 10:01:00 +05:30
parmarrushabh
9b480b261d
Fixed add unit test tx sign for validators.
2018-09-09 18:01:19 +05:30
parmarrushabh
00df3d6cc3
Add unit test for send tx sign for block signer.
2018-09-06 17:42:02 +05:30