Liam Lai
d28c7f659d
rebase from dev-upgrade
2024-06-19 16:05:08 +08:00
JukLee0ira
2d89951e5b
all: use errrors.New instead of empty fmt.Errorf
2024-06-14 19:19:21 +08:00
JukLee0ira
0aab4ced98
common: add binary variables for system contract
2024-06-06 19:33:59 +08:00
Daniel Liu
01e1728a94
all: add support for EIP-2718, EIP-2930 transactions ( #21502 )
2024-05-14 23:15:35 +08:00
Liam Lai
1ce186d6c6
remove swarm as unused like eth
2024-05-13 21:34:40 +08:00
Daniel Liu
6338a4195b
core: kill off managed state, use own tiny noncer for txpool ( #19810 )
2024-05-10 19:48:10 +08:00
Wanwiset Peerapatanapokin
aaa246f60e
PDF-01 ( #397 )
...
* replace deprecated ioutil lib calls
* fix for FileInfo type required
* fix for ioutil.Discard
* fix .Discard
* fix for go-bindata generated files
2024-01-19 15:05:03 +04:00
Daniel Liu
7adb98fbe8
update gas fee
2023-10-16 11:24:47 +08:00
Liam
e55fca6703
log improvement and some refactor ( #110 )
2022-07-10 01:11:28 +02:00
wgr523
89acbdd742
XIN-121 Reward hook ( #57 )
...
* v2 Hook Reward, need test
* test reward
* fix RewardHook due to modifying params config directly (#56 )
* more test
* finish test
Co-authored-by: Jerome <wjrjerome@gmail.com>
2022-02-19 15:31:19 +11:00
Jerome
f8d3f9f8c6
Xin 113 is epoch switch ( #37 )
...
* add isEpochSwitch function and refactor utils
* fix broken first v2 epoch switch block
* use adaptor epoch switch function to determine v1 v2 epoch swtich block
* add test for the GetMasternodesByNumber and GetCurrentEpochSwitchBlock function
* add v2 test for isAuthroisedAddress
* Use GetCurrentEpochSwitchBlock in findNearestSignedBlock api
2022-01-14 21:38:38 +11:00
wgr523
5c326961ce
isEpochSwitch, getMasternodes ( #35 )
...
* isEpochSwitch, getMasternodes
* recursive getEpochSwitchInfo, getMasternodes
* more log, make getEpochSwitchInfo clearer
2022-01-08 00:17:21 +08:00
olumuyiwadad
ff56f5e50f
update Voter Delay Withdraw.
2021-11-08 14:58:04 +05:30
olumuyiwadad
1bfafade74
Revert XDCValidator.
2021-11-08 14:57:10 +05:30
Gerui Wang
a1e6ae4152
make statedb_utils.go (XDCValidator reader) correct, add statedb utils test
2021-11-03 21:05:25 +08:00
Jianrong
0eb2504db3
Add 1 test for adaptor to switch from v1 to v2
2021-10-17 11:20:57 +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
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
a41658640f
hotfix etherbase/coinbase
...
Send tx sign for block number to smart contract blockSigner.
2021-09-17 18:18:55 +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
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
diglspacedavid
474cc37036
upgrade codebase with ethereum:v1.8.13
2020-11-23 13:40:30 +05:30
Sinh Vu
10af44cb93
revert validator.go
2019-07-23 18:10:27 +07:00
Sinh Vu
3180921a7f
upgrade increase masternodes
2019-07-23 17:25:55 +07:00
ronakgothi
d49db00216
Updated Candidate Delay Withdraw to 30 days
2019-05-27 11:20:58 +05:30
parmarrushabh
637cf2c0f7
created bew checklist
2019-04-29 12:52:04 +05:30
AnilChinchawale
7f856ffe67
KYC Layer added.
2019-03-22 16:58:59 +05:30
ronakgothi
2663e6041f
Params changed | changed voterWithdrawDelay
2019-03-18 18:35:27 +05:30
ronakgothi
a8bd11f9d3
Params changed | changed candidateWithdrawDelay
2019-03-18 18:33:57 +05:30
ronakgothi
6770ce135e
Params changed | changed maxBlockProducer
2019-03-18 18:29:08 +05:30
ronakgothi
35dca4a7ca
Params changed | increased voterCap
2019-03-18 18:27:57 +05:30
ronakgothi
117f02b3b6
Params changed | increased validatorCap
2019-03-18 18:26:45 +05:30
AnilChinchawale
a638d2adc0
Minor error fixed.
2019-03-16 16:02:10 +05:30
AnilChinchawale
d8a786fc7a
fixed utils contract
2019-03-06 15:53:30 +05:30
parmarrushabh
c6886f92f2
removed kyc smart contract for stable version
2019-03-05 15:44:26 +05:30
parmarrushabh
0b6a7ed1ad
updated smartcontract issue
2019-02-24 17:50:28 +05:30
Kiel barry
fd34bf594c
contracts/*: golint updates for this or self warning
...
(cherry picked from commit 53b823afc8 )
2019-02-19 13:18:02 +01:00
parmarrushabh
147e1f0baf
create new func penalties for hard fork
2019-02-19 17:25:31 +05:30
AnilChinchawale
26affd91ab
Go Binding added in MultiSigWallet
2019-01-17 04:40:25 +05:30
AnilChinchawale
ed2f00b61c
Changes added in Smart-Contract
2019-01-16 04:37:33 +05:30
AnilChinchawale
5a667983c3
Updated SafeMath & blockSigner, Test added for Validator
2019-01-15 08:37:24 +05:30
AnilChinchawale
c68a50489f
Updated validatorReader
2019-01-15 08:34:49 +05:30
AnilChinchawale
e62fd0abe4
Fixed and updated blocksignerReader
2019-01-12 08:34:50 +05:30
AnilChinchawale
f9a893dd18
RandomizeReader updated
2019-01-10 08:34:04 +05:30
AnilChinchawale
4a6e8c7f5d
Won't grasp txs at checkpoint
2018-12-07 10:42:40 +05:30
parmarrushabh
f2e08263ce
use correct state when changing balances
2018-12-04 09:55:18 +05:30
AnilChinchawale
1ff0fd2cff
refactor cache BlockSigners
2018-12-02 14:52:54 +05:30
parmarrushabh
4a12d746ff
tmp fix ethash unittests
2018-12-04 14:25:55 +05:30
AnilChinchawale
87896dcdf9
remove debug info
2018-12-04 12:27:26 +05:30
parmarrushabh
bd2419e7a3
fix GetVoterCap
2018-12-02 12:10:18 +05:30
AnilChinchawale
b10d8170c7
add GetVoterCap func
2018-12-02 11:30:04 +05:30
AnilChinchawale
8a456132e5
modify logic to adapt new readers
2018-12-02 11:26:18 +05:30
AnilChinchawale
4b1f635636
add randomize(smc) reader
2018-12-02 11:16:17 +05:30
parmarrushabh
271cab95a4
update blocksigner(smc) reader
2018-12-02 11:10:48 +05:30
parmarrushabh
3cf363ea27
add validator(smc) reader
2018-12-02 10:51:11 +05:30
MestryOmkar
fedd6fbc3a
add smc ultilities
2018-11-27 10:44:01 +05:30
parmarrushabh
aac29ab1be
add BlockSigners reader
2018-11-27 10:36:44 +05:30
parmarrushabh
b2007b7ed0
updated validator_test.go
2018-11-27 10:24:47 +05:30
AnilChinchawale
4624bbb988
updated utils.go
2018-11-24 16:23:43 +05:30
parmarrushabh
8d7572ef1c
hot fix
2018-11-22 15:49:29 +05:30
AnilChinchawale
ba8e4f46bf
crit when get voters, voter capacity
2018-11-22 12:33:27 +05:30
MestryOmkar
4ab49f2752
goroutine get signers
2018-11-19 12:20:40 +05:30
AnilChinchawale
e8336d2770
evm mem db
2018-11-19 12:11:07 +05:30
parmarrushabh
51c88fe8ce
create new api get reward
2018-11-19 11:21:42 +05:30
Rahulraj04
6c67be797b
update logging
2018-11-17 16:37:14 +05:30
AnilChinchawale
f2332e0d11
update smart contract after audit, change to solc 0.4.21
2018-11-14 10:14:49 +05:30
parmarrushabh
ae06c120a7
Fixed reward only for masternodes in block checkpoint.
2018-11-14 17:08:41 +05:30
AnilChinchawale
4211d56ad0
Fixed reward inflation and add unit test.
2018-11-12 12:03:22 +05:30
parmarrushabh
7d162336fa
Add MultisigWallet to puppeth for build new genesis.
2018-11-12 11:37:26 +05:30
MestryOmkar
575e63b894
reduce gas limit for Tx randomize
2018-11-09 11:05:14 +05:30
parmarrushabh
3fc36efeb3
Fixed golint.
2018-11-09 10:49:11 +05:30
MestryOmkar
0064693228
fix error duplicate nonce when fetcher insert multi blocks
2018-11-09 18:15:13 +05:30
parmarrushabh
1396b1a10f
Fixed unit test for new m2 block header.
2018-11-09 16:29:54 +05:30
AnilChinchwale
3f1aadb861
fixed double validater
2018-11-09 15:43:29 +05:30
MestryOmkar
7892d7c162
Fixed unit test for new randomize smc.
2018-11-07 11:49:10 +05:30
AnilChinchwale
b53a7a111a
add validation to randomize smc
2018-11-07 11:42:03 +05:30
AnilChinchawale
823cd1e6ef
trim m2 set to fit m1 set
2018-11-06 18:16:36 +05:30
MestryOmkar
b955291388
init double validation layer
2018-11-06 18:00:21 +05:30
MestryOmkar
fa02ac70cb
Fixed duplicate nonce value for randomize and sign txs
2018-11-06 17:35:20 +05:30
AnilChinchawale
deb79f4a23
push Randomization implementation
2018-11-06 17:27:13 +05:30
parmarrushabh
944494f6e4
Revert Randomization implementation
2018-11-06 16:16:29 +05:30
AnilChinchawale
1e01e469f1
Fixed epoc number to 900 for randomize.
2018-11-05 12:02:38 +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
MestryOmkar
7c48f8ec6d
fix bug delay withdraw for voter
2018-11-02 11:30:29 +05:30
parmarrushabh
6d0d7c9313
updated minvotercap
2018-10-30 18:24:18 +05:30
MestryOmkar
f570befa8e
add min for voter
2018-10-30 18:21:25 +05:30
MestryOmkar
253cce2378
fix genesis bugs
2018-10-30 18:09:26 +05:30
AnilChinchwale
90fc55cb91
updated genesis
2018-10-29 17:51:29 +05:30
parmarrushabh
4dfbf08a6f
prepare testnet genesis
2018-10-29 14:53:44 +05:30
MestryOmkar
10e040ffd2
Fixed move foundation wallet address to genesis config.
2018-10-29 14:45:35 +05:30
parmarrushabh
ce89b6b92d
making XDPoS as a separate package
2018-10-28 11:58:50 +05:30