Jianrong
bcb1fea280
add countdown timer
2021-12-30 11:00:20 +11:00
Jianrong
8891cd167b
typo fix on the consensus v2 function placeholders
2021-12-30 11:00:20 +11:00
Jianrong
1da080a371
add v2 engine functions placeholder
2021-12-30 11:00:20 +11:00
wgr523
4453a1e257
New struct in consensus/XDPoS/utils/types.go, util functions, and test. ( #14 )
...
* define vote, timeout, sync info, qc, tc, extra fields in types.go, add test in types_test.go
* add json tag in types.go, refine encoder decoder of extra fields
* refactor types.go utils.go
* re-write types, comments
* add Hash SigHash for types, and tests
* define Round type
* remove unnecessary logs
2021-12-30 11:00:20 +11:00
Liam Lai
5061dd9841
add few comments in code
2021-12-21 08:47:23 +03:00
Gerui Wang
db58081b8d
refine race condition solution
2021-12-21 10:19:17 +08:00
Jianrong
d901d1df6e
race condition caused by old eth bug where read before write. We fixing it by passing down header in the snapshot to avoid touching ETH code. This is just a precaution to avoid undiscovered bugs in XDC as a result of fundmental ETH implementation change
2021-12-21 10:32:55 +11:00
olumuyiwadad
afe58d79fc
fix api trace block & Change option pending block.
2021-11-11 18:49:57 +05:30
olumuyiwadad
420a589599
ignoreSignerBlockList added.
2021-11-11 18:48:50 +05:30
Jianrong
ce4e16c7c3
replace c to x in XDPos pakage
2021-10-17 11:37:55 +11:00
Jianrong
e5a9a5ddbc
replace consensus int config with string const
2021-10-17 11:31:49 +11:00
Jianrong
0eb2504db3
Add 1 test for adaptor to switch from v1 to v2
2021-10-17 11:20:57 +11:00
Jianrong
c8ee8e1936
add a simple test to verify DB is the same across different engine versions
2021-10-16 13:22:48 +11:00
Jianrong
ce106abffe
fix tests related to consensus
2021-10-10 22:05:32 +11:00
Jianrong
e34311ff45
Remove unused consensus v1 methods
2021-10-10 16:04:34 +11:00
Jianrong
48be4e4ca7
Move consensus hooks to its own package
2021-10-10 16:04:32 +11:00
Jianrong
0aec2a1e9e
Seperate hooks from XDPoS adaptor
2021-10-10 16:02:19 +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
92ffe69ab4
Work around for the issue "return wrong list signers from snapshot"
...
Update signers in snapshot
Ignore signerCheck at checkpoint block 27307800
due to wrong snapshot at gap 27307799
2021-09-17 18:45:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
Jianrong
9efb89dffb
fix simulator functions to choose between XDC faker and eth faker
2021-08-30 14:56:14 +10:00
Jianrong
fa2b341c9a
resolving broken eth tests
2021-08-29 17:14:10 +10:00
Jianrong
7b7e34ae00
Fix XDC forking incident with tests
2021-08-29 14:20:01 +10:00
Jianrong
4d88ba22e5
rebase from dev-upgrade
2021-08-07 14:29:18 +10:00
Jianrong
0fdab2027c
add linting as the first CI task
2021-08-07 14:27:08 +10:00
AnilChinchawale
916b16de71
fix masternode stop block production.
2021-01-18 10:57:22 +05:30
AnilChinchawale
a8fc240b29
remove logs & add list of authorized signers
2020-12-30 18:00:37 +05:30
dev-vadim
dbe8c9d984
upgrade XDC.Network with v1.8.27.
2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
parmarrushabh
3e5f4d54a8
Hot_Fix Bad block Error
2019-04-25 12:11:30 +05:30
Martin Holst Swende
af401d03a3
all: simplify timestamps to uint64 ( #19372 )
...
* all: simplify timestamps to uint64
* tests: update definitions
* clef, faucet, mobile: leftover uint64 fixups
* ethash: fix tests
* graphql: update schema for timestamp
* ethash: remove unused variable
2019-04-08 12:00:42 +03:00
parmarrushabh
3456368fdc
XDPoS unit test fixed
2019-03-27 17:18:37 +05:30
parmarrushabh
a6238b785d
test output corrected
2019-03-26 14:50:50 +05:30
AnilChinchawale
8000ce3c93
move m2 for unit test
2019-03-26 14:46:39 +05:30
parmarrushabh
2d046cc16a
tip block randomize
2019-03-26 14:28:13 +05:30
parmarrushabh
36d9bea7e9
created unit test for XDPoS
2019-03-25 14:20:56 +05:30
AnilChinchawale
4679c9fc74
updated xdpos.go
2019-03-25 14:15:09 +05:30
parmarrushabh
4af57cc070
case m2 down affect to m1.
2019-03-25 12:19:25 +05:30
parmarrushabh
a47c0b94e7
allow signing with m1 = m2
2019-03-25 11:38:52 +05:30
AnilChinchawale
8e89efe6a9
File Updated | XDPoS Consensus updated
2019-03-14 15:59:10 +05:30
parmarrushabh
147e1f0baf
create new func penalties for hard fork
2019-02-19 17:25:31 +05:30
AnilChinchawale
b15708af5b
Changes added console.
2019-01-09 08:33:22 +05:30
AnilChinchawale
bc15c48163
Fixed issue in clique | File updated
2019-01-07 08:32:55 +05:30
AnilChinchawale
cd9734b34a
Fixed issue XDPoS | File updated
2019-01-07 08:32:29 +05:30
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package
2019-01-04 09:26:07 +02:00
parmarrushabh
4a12d746ff
tmp fix ethash unittests
2018-12-04 14:25:55 +05:30
parmarrushabh
2b7010d51f
add state variable to verifyHeader(), verifyHeaders() in the consensus
2018-12-02 12:21:48 +05:30
parmarrushabh
9f36d37558
Parallel process block from fetcher
2018-11-17 12:02:43 +05:30