wgr523
d578e092cd
stop reorg at committed blocks ( #276 )
...
This PR makes committed blocks non-reorg-able inside `Blockchain` struct. This ensures V2 consensus safety property in the aspect of blockchain head: committed blocks' state will not be reorg and users will always see committed blocks (or their child blocks) as current head of the blockchain.
* stop reorg at committed blocks
* fix tests
* fix tests
2023-06-08 01:16:13 +08:00
Liam
2df16bbd37
merge waitPeriod into minePeriod ( #274 )
...
* merge waitperiod into mindePeriod
* merge waitperiod into mindePeriod
2023-05-31 23:40:50 +10:00
Liam
767dfde1da
add v2 config into genesis wizard ( #273 )
2023-05-31 16:03:31 +10:00
wgr523
3e0505a0c7
cherry-pick from d8ada03eac ( #255 )
2023-05-25 14:23:27 +10:00
wgr523
2f10aac60f
eth: ensure from<to when tracing chain (credits Chen Nan via bugbounty) ( #251 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-05-25 14:22:23 +10:00
wgr523
62de42db68
les: add Skip overflow check to GetBlockHeadersMsg handler ( #16891 ) ( #250 )
...
Co-authored-by: Felföldi Zsolt <zsfelfoldi@gmail.com>
2023-05-25 14:22:01 +10:00
Liam
706292e1a1
Add debug msg and reset devnet config ( #270 )
...
* add debug msg
* remove all devnet config since we need to reset devnet
2023-05-24 14:52:58 +10:00
Liam
3b835d1354
update travis script for multi region deployment ( #269 )
2023-05-24 12:26:34 +10:00
wgr523
a67b347ba8
fix comment of todo ( #267 )
2023-05-20 17:46:06 +08:00
wgr523
cd74061ac2
Extend masternode candidate ( #261 )
...
* V2 truncate MaxMasternodes from candidates after penalty,
V1 same as before
TestUpdateMultipleMasterNodes: test V2, in snapshot we have all candidates, but at epoch switch, we pick MaxMasternodes
* code looks better
2023-05-16 21:43:56 +08:00
Liam
9191730c63
change variable new without dash ( #265 )
2023-05-16 22:46:32 +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
5b75d3a904
enhance 3 regions deployment ( #259 )
...
* enhance 3 regions deployment
* remove other regions config
* remove other unused code
2023-05-14 22:13:37 +10:00
Liam
7b657f0c4e
API: getMasternode and getPoolStatus ( #258 )
...
* API: getMasternode and getPoolStatus
* fix test
2023-05-01 23:01:39 +10:00
Liam
7894cbe205
fix config for round ( #249 )
2023-04-17 12:13:32 +10:00
Liam
2135e2b0a1
update config for fix ( #248 )
2023-04-16 01:48:54 +10:00
Liam
95d12211fe
reduce to 0 single region ( #247 )
2023-04-06 00:29:03 +10:00
Liam
02feb8b1b5
reduce to 25 single region ( #246 )
2023-04-04 22:29:26 +10:00
Liam
dc824cc8c3
reduce single region to 75 ( #245 )
2023-04-03 16:09:50 +10:00
Liam
578665af86
reduce single region to 100 ( #244 )
2023-04-02 22:06:35 +10:00
Liam
556f98a51b
attack recover ( #243 )
2023-04-01 04:32:28 +11:00
wgr523
436faf34e1
Fix of discreason type problem ( #242 )
...
Problem: https://github.com/advisories/GHSA-wjxw-gh3m-7pm5
Fix: add non-negative `if` condition.
cannot use fix in geth (https://github.com/ethereum/go-ethereum/pull/24507 ) since modifying DiscReason to uint8 messes up the message encode
2023-03-26 22:54:56 +11:00
Jerome
21c54fd1d6
Devnet shall not store historical data as it will blow up memory ( #239 )
2023-03-24 18:47:55 +11:00
Jerome
63a5dc4ce6
Add periodic profiling function ( #235 )
...
* Add periodic profiling function
* add flag for periodic flag
* use right filepath join lib
* use 75 percent and log memory usage
---------
Co-authored-by: Liam Lai <liam.icheng.lai@gmail.com>
2023-03-16 16:41:52 +04:00
Liam
460cb52bac
change to 2 second mining time ( #234 )
2023-03-12 15:31:07 +04:00
Liam
9552500335
xdpos API getV2Block ( #227 )
2023-03-05 02:17:46 +08:00
Mingchao (Fisher) Yu
105f387296
Merge pull request #231 from XinFinOrg/upgrade-fargate-spec
...
upgrade fargate spec to test if node crash or not
2023-03-03 06:21:19 +11:00
Liam Lai
a58a7013e5
upgrade fargate spec to test if node crash or not
2023-03-02 01:52:15 +08:00
Jerome
e902243186
missing . in local devnet setup script ( #230 )
2023-03-01 18:54:45 +08:00
Mingchao (Fisher) Yu
8b1f77ea01
Merge pull request #226 from XinFinOrg/use-constant-on-forking-param
...
add v2 testnet forking constant parameter
2023-02-23 19:51:39 +11:00
Liam Lai
814a276ae3
remove test files
2023-02-23 14:22:59 +08:00
Liam Lai
65ffdcd0a9
fix test
2023-02-23 14:22:30 +08:00
Liam Lai
3a305d15b8
reorder config
2023-02-16 12:10:32 +08:00
Liam Lai
fc5b7d1bbc
add testnet constant parameter
2023-02-16 12:08:58 +08:00
Liam
8fc4b8e52d
use constant number instead of variable ( #225 )
2023-02-08 10:25:45 +08:00
ben~know nothing
bd46a94e74
Merge pull request #214 from XinFinOrg/devnet-update-query
...
Devnet Update Query
2023-02-03 21:43:40 -05:00
span14
eac0e42584
fix typo
2023-02-02 12:13:16 -05:00
span14
5aff0d35db
fix typo
2023-01-30 22:22:57 -05:00
span14
c637c7b915
fix switch case issue
2023-01-30 22:22:57 -05:00
span14
abb0dcc48b
add confirmed loopup
2023-01-30 22:22:57 -05:00
Jerome
49fc016245
Add script so that we can easily run local against the devnet ( #224 )
2023-01-30 23:03:04 +11:00
Jerome
1430b74a98
Add more log info during updateM1 and change log level on devnet to 3 ( #223 )
2023-01-22 22:53:22 +11:00
Jerome
2ca1d0461d
Fix issue when resync is not getting the right consensus config values ( #221 )
...
* Fix issue when resync is not getting the right consensus config values
* add test and fix log bug
* fix test
* delete temp file
Co-authored-by: Liam Lai <liam.icheng.lai@gmail.com>
2023-01-17 21:34:42 +08:00
Liam
42220718bd
test more dimension on devnet ( #219 )
2022-12-29 21:39:57 +08:00
Jerome
ff75f0f22e
Allow deploy with different version of XDC on devnet ( #218 )
2022-12-25 19:07:50 +08:00
Liam
c4f9a552e5
Multi config bug fix ( #216 )
...
* refactor multi config
remove pool cleaner
correct message and log level
2022-12-17 20:23:46 +08:00
Jerome
96339ec3ba
Make the ECS on devnet only use 0.25 units of CPU ( #215 )
2022-12-12 20:53:41 +11:00
Liam
d4fc180f20
test multi config on devnet ( #213 )
2022-12-07 12:19:11 +08:00
Liam
6ffbd3e141
Xin 259 support multi v2 config ( #210 )
...
* update timeout period and waittime
* remove wrong comment
* update config for preparing test
2022-12-06 20:08:56 +08:00
Jerome
ff6ee67462
Fix memory leak when doing send tx, vote, block etc to peers ( #211 )
2022-11-28 21:52:36 +11:00