Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monthly Merge from dev upgrade branch to master #761

Merged
merged 570 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
570 commits
Select commit Hold shift + click to select a range
f646ddd
add store-reward flag by default
wanwiset25 Nov 26, 2024
e257b52
change devnetstats url
wanwiset25 Nov 25, 2024
9cf63d5
Merge pull request #749 from XinFinOrg/devnet-bootnode
wanwiset25 Dec 2, 2024
448fe9a
fix typo and local script
wanwiset25 Dec 2, 2024
05a0f20
Merge pull request #752 from XinFinOrg/devnet-statsserver-typo
wanwiset25 Dec 3, 2024
d55dca0
all: use http package to replace http method names (26535)
gzliudan Dec 5, 2024
fee2577
Merge pull request #755 from gzliudan/http_method
gzliudan Dec 8, 2024
02a59e8
all: replace strings.Replace with string.ReplaceAll (#24835)
gzliudan Dec 4, 2024
b0ec104
Merge pull request #754 from gzliudan/use_replace_all
gzliudan Dec 8, 2024
0d0ea46
core: implement EIP-3651, warm coinbase (#25819)
gzliudan Nov 21, 2024
db1fd59
Merge pull request #677 from gzliudan/eip-3651
gzliudan Dec 9, 2024
733c298
core/vm: improve EVM reusability (#26341)
gzliudan Nov 21, 2024
0dbe819
Merge pull request #676 from gzliudan/evm-reuse
gzliudan Dec 9, 2024
d3fc08d
update golang.org/x/crypto to v0.29.0
gzliudan Nov 29, 2024
92fc843
crypto: switch over to upstream sha3 package (#18390)
gzliudan Nov 29, 2024
9d9bd65
crypto/ecies: remove unused function (#19096)
gzliudan Nov 29, 2024
d2ac7d0
crypto: fix build when CGO_ENABLED=0 (#19121)
gzliudan Nov 29, 2024
66dd846
crypto/bn256/cloudflare: fix comments to describe the updated curve p…
gzliudan Nov 29, 2024
b9054b2
crypto: replace fmt.Println calls with t.Log in tests (#19670)
gzliudan Nov 29, 2024
8dcea8d
crypto: replace t.Log(); t.FailNow() with t.Fatal() (#19849)
gzliudan Nov 29, 2024
ad5e7d6
crypto: add SignatureLength constant and use it everywhere (#19996)
gzliudan Nov 29, 2024
e1eb00e
crypto: make unit tests work with Go 1.13 (#20053)
gzliudan Nov 29, 2024
6033722
crypto: use golangci-lint (#20295)
gzliudan Nov 29, 2024
b2be754
crypto/bn256: fix import line (#20723)
gzliudan Nov 29, 2024
ee303c9
crypto/ecies: improve concatKDF (#20836)
gzliudan Nov 29, 2024
f948466
crypto: less allocations when hashing and tx handling (#21265)
gzliudan Nov 29, 2024
a2eb855
crypto/bn256: better comments for u, P and Order (#21836)
gzliudan Nov 29, 2024
a64e424
crypto/bn256: refine comments according to #19577, #21595, and #21836…
gzliudan Nov 29, 2024
ddc5e61
crypto/bn256: fix bn256Mul fuzzer to not hang on large input (#21872)
gzliudan Nov 29, 2024
b1c7190
crypto: improve trie updates (#21047)
gzliudan Nov 29, 2024
ae95cea
bn256: added consensys/gurvy bn256 implementation (#21812)
gzliudan Nov 29, 2024
7711f4b
tests/fuzzers: crypto/bn256 tests against gnark-crypto (#22755)
gzliudan Nov 29, 2024
5ee26e0
crypto/secp256k1: fix undefined behavior in BitCurve.Add (#22621)
gzliudan Nov 29, 2024
9dab065
crypto: gofuzz build directives (#23137)
gzliudan Nov 29, 2024
146bc2b
crypto: add go:build lines (#23468)
gzliudan Nov 29, 2024
949fa63
crypto/ecies: use AES-192 for curve P384 (#24139)
gzliudan Nov 29, 2024
cb3edac
crypto: use btcec/v2 for no-cgo (#24533)
gzliudan Nov 29, 2024
797efe7
crypto: more linters and fix typo (#24783)
gzliudan Nov 29, 2024
bedd571
crypto/kzg4844: pull in the C and Go libs for KZG cryptography (#27155)
gzliudan Nov 29, 2024
ed03a99
crypto/kzg4844: upgrade c-kzg-4844 to v0.2.0 (#27257)
gzliudan Nov 29, 2024
bd93c59
crypto: replace noarg fmt.Errorf with errors.New (#27333)
gzliudan Nov 29, 2024
17c0480
tests/fuzzers/bn256: add PairingCheck fuzzer (#27252)
gzliudan Nov 29, 2024
541ddee
go.mod: update kzg libraries to use big-endian (#27510)
gzliudan Nov 29, 2024
247ebd6
crypto/kzg4844: do lazy init in all ckzg funcs (#27679)
gzliudan Nov 29, 2024
8f57d6c
go.mod: upgrade c-kzg-4844 (#27907)
gzliudan Nov 29, 2024
f7b6ad6
crypto, tests: update fuzzers to native go fuzzing (#28352)
gzliudan Nov 29, 2024
b5cc7e6
crypto/blake2b: put architecture-dependent features behind build-tag …
gzliudan Nov 29, 2024
824dea6
crypto/kzg4844: use the new trusted setup file and format (#28383)
gzliudan Nov 29, 2024
cae53aa
crypto/kzg4844: add helpers for versioned blob hashes (#28827)
gzliudan Nov 29, 2024
fabfcc7
crypto: fix docstring names (#28923)
gzliudan Nov 29, 2024
7278557
crypto: add support for blobs in eth_fillTransaction (#28839)
gzliudan Nov 29, 2024
3fbbc9d
crypto: fix typos in comments (#29186)
gzliudan Nov 29, 2024
d444487
Merge pull request #751 from gzliudan/upgrade-crypto
gzliudan Dec 9, 2024
b794f6a
recover devnet by increasing timeout (#760)
wanwiset25 Dec 13, 2024
11b7415
cmd/XDC: fix double metrics collect process issue
gzliudan Dec 13, 2024
66da805
Merge pull request #759 from gzliudan/fix_double_metrics
gzliudan Dec 13, 2024
23bc924
internal/debug: start pprof server by new function StartPProf (#16532)
gzliudan Dec 13, 2024
92a7b64
metrics: export to InfluxDB (#16979)
gzliudan Dec 13, 2024
61f5a88
metrics: add force option for metric system (#17667)
gzliudan Dec 13, 2024
01a5298
metrics: added NewCounterForced (#17919)
gzliudan Dec 13, 2024
4202f23
core: more detailed metrics for block processing (#18119)
gzliudan Dec 13, 2024
3e4583e
cmd/utils: allow for multiple influxdb flags (#18520)
gzliudan Dec 13, 2024
7608787
metrics: remove redundant type specifiers (#19090)
gzliudan Dec 13, 2024
1557746
metrics/influxdb: add a timeout to the InfluxDB HTTP client (#19250)
gzliudan Dec 13, 2024
db9487f
core: split out detailed trie access metrics from insertion time (#19…
gzliudan Dec 13, 2024
ed427a9
metrics: fix expensive metrics flag processing (#19327)
gzliudan Dec 13, 2024
a577c71
metrics/prometheus: added prometheus metrics (#17077)
gzliudan Dec 13, 2024
1eb2ed8
core, metrics, p2p: expose various counter metrics for grafana (#19692)
gzliudan Dec 13, 2024
a4e113c
metrics: gather and export threads and goroutines (#19725)
gzliudan Dec 13, 2024
7456407
metrics: change links in README.md to https (#20182)
gzliudan Dec 13, 2024
332ac32
metrics: not compare float numbers directly (#20219)
gzliudan Dec 13, 2024
462999b
metrics: fix issues reported by staticcheck (#20365)
gzliudan Dec 13, 2024
9fee8a7
metrics: disable CPU stats (gosigar) on iOS (#20816)
gzliudan Dec 13, 2024
47ce406
metrics: make flawed test less flawed (#20818)
gzliudan Dec 13, 2024
1415bb6
metrics: add missing calls to Ticker.Stop in tests (#20866)
gzliudan Dec 13, 2024
c65d0cd
cmd/XDC: enable metrics for geth import command (#20738)
gzliudan Dec 13, 2024
32f974c
metrics/prometheus: define TYPE once, add tests (#21068)
gzliudan Dec 13, 2024
d7d54b0
metrics: replace gosigar with gopsutil (#21041)
gzliudan Dec 13, 2024
3dee667
metrics/exp: allow configuring metrics HTTP server on separate endpoi…
gzliudan Dec 13, 2024
730960f
metrics: make meter updates lock-free (#21446)
gzliudan Dec 13, 2024
bf4b42a
metrics: zero temp variable in updateMeter (#21470)
gzliudan Dec 13, 2024
d4f1b8a
metrics: fix the panic for reading empty cpu stats (#21864)
gzliudan Dec 13, 2024
9d082aa
cmd/XDC: dump config for metrics (#22083)
gzliudan Dec 13, 2024
1a844e4
metrics: remove uneeded syntax (#21921)
gzliudan Dec 13, 2024
ec0ae49
metrics: fix cast omission in cpu_syscall.go (#22262)
gzliudan Dec 13, 2024
5e9cb5d
metrics: add handler performance metrics (#22581)
gzliudan Dec 13, 2024
ebbcd60
metrics: use resetting histograms for rare packets (#22586)
gzliudan Dec 13, 2024
d16c72e
metrics/influxdb: don't push empty histograms, no measurement != 0 (#…
gzliudan Dec 13, 2024
73b81dd
metrics: use golang.org/x/sys/unix to support Solaris (#22584)
gzliudan Dec 13, 2024
29b72db
metrics/influxdb: support V2 (#23194)
gzliudan Dec 13, 2024
9807910
metrics: fix compilation for GOOS=js (#23449)
gzliudan Dec 13, 2024
2e5b342
metrics: add go:build lines (#23468)
gzliudan Dec 13, 2024
d77c1e5
metrics: replace strings.Replace with string.ReplaceAll (#24835)
gzliudan Dec 13, 2024
7b0a7e4
metrics/influxdb: temp solution to present counter meaningfully (#24811)
gzliudan Dec 13, 2024
2e34afe
rpc: swap out timer metrics to histograms (#25044)
gzliudan Dec 13, 2024
392b44c
metrics/influxdb: replace time.Tick with time.NewTicker (#24783)
gzliudan Dec 13, 2024
e8452c9
metrics: fix some typos (#25551)
gzliudan Dec 13, 2024
dddd6c5
metrics: improve reading Go runtime metrics (#25886)
gzliudan Dec 13, 2024
40f47a6
metrics/influxdb: fix time ticker leaks (#26507)
gzliudan Dec 13, 2024
76320b4
metrics/librato: use http package to replace http method names (#26535)
gzliudan Dec 13, 2024
6199c84
metrics: remove deprecated uses of math.rand (#26710)
gzliudan Dec 13, 2024
c616077
metrics: improve accuracy of CPU gauges (#26793)
gzliudan Dec 13, 2024
9eae124
metrics: add cpu counters (#26796)
gzliudan Dec 13, 2024
6e055a6
metrics/influxdb: reuse code between v1 and v2 reporters (#26963)
gzliudan Dec 13, 2024
5457030
all: ensure resp.body closed (#26969)
gzliudan Dec 13, 2024
aa5e3e2
metrics: make gauge_float64 and counter_float64 lock free (#27025)
gzliudan Dec 13, 2024
7015a9e
metrics: use atomic type (#27121)
gzliudan Dec 13, 2024
7d40ca6
metrics: use sync.map in registry (#27159)
gzliudan Dec 13, 2024
e524043
metrics: use slices package for sorting (#27493 #27909)
gzliudan Dec 13, 2024
51e49a8
metrics: NilTimer should still run the function to be timed (#27723)
gzliudan Dec 13, 2024
d43f6c0
metrics: NilResettingTimer.Time should execute the timed function (#2…
gzliudan Dec 13, 2024
3538050
metrics, cmd/geth: informational metrics (prometheus, influxdb, opent…
gzliudan Dec 13, 2024
1fe46b8
metrics/librato: rename receiver re to rep
gzliudan Dec 13, 2024
cc4ea7a
metrics: refactor metrics (#28035)
gzliudan Dec 13, 2024
2f36a79
metrics: add support for enabling metrics from env vars (#28118)
gzliudan Dec 13, 2024
49b5886
rpc: fix ns/µs mismatch in metrics (#28649)
gzliudan Dec 13, 2024
6f67b35
metrics: fix docstring names (#28923)
gzliudan Dec 13, 2024
2220156
cmd, core, metrics: always report expensive metrics (#29191)
gzliudan Dec 13, 2024
7f37ee2
metrics: fix docstrings (#29279)
gzliudan Dec 13, 2024
fd8782b
metrics: use min from go1.21 (#29307)
gzliudan Dec 13, 2024
99f605f
metrics/influxdb: skip float64-precision-dependent tests on arm64 (#2…
gzliudan Dec 13, 2024
c7565af
metrics: remove dependency on golang.org/exp (#29314)
gzliudan Dec 13, 2024
988465c
metrics: fix mismatched names in comments (#29348)
gzliudan Dec 13, 2024
cf90a7a
metrics: remove librato (#29624)
gzliudan Dec 13, 2024
a9cbcde
metrics: fix out of range error message (#29821)
gzliudan Dec 13, 2024
fb6a268
metrics: fix flaky test `TestExpDecaySampleNanosecondRegression` (#29…
gzliudan Dec 13, 2024
7e784f1
metrics: add test for `SampleSnapshot.Sum` (#29831)
gzliudan Dec 13, 2024
ea355e8
metrics: fix function comment (#29843)
gzliudan Dec 13, 2024
7d82f27
metrics: fix issues with benchmarks (#30667)
gzliudan Dec 13, 2024
6beee27
metrics, cmd/XDC: change init-process of metrics (#30814)
gzliudan Dec 13, 2024
0f8abf5
Merge pull request #758 from gzliudan/upgrade-metrics
gzliudan Dec 13, 2024
383e2d5
Merge branch 'master' into release-br-v2.4.3-beta1
Dec 13, 2024
92d239b
merge from master
Dec 13, 2024
c98f42c
Merge branch 'release-br-v2.4.2-beta1' into release-br-v2.4.3-beta1
Dec 13, 2024
7833117
cherry pick vote test fix
benjamin202410 Nov 29, 2024
21b0524
Merge from master mining time patch (#767)
benjamin202410 Dec 19, 2024
e1ab3e0
add buffer channel to unlock deadlock (#766)
benjamin202410 Dec 19, 2024
50f4013
remove normal log
Dec 20, 2024
7491a7b
all: improve EstimateGas API (#20830)
JukLee0ira Dec 20, 2024
82ff8c1
all: remove uses of untyped golang-lru
gzliudan Dec 17, 2024
00785b0
fix tc cross epoch different masternode counts issue
Dec 23, 2024
25462bd
fix tc cross epoch different masternode counts issue
Dec 23, 2024
b2a41af
Merge pull request #770 from XinFinOrg/fix-tc-cross-epoch-different-m…
AnilChinchawale Dec 23, 2024
332380c
fix only timeout round exists in next epoch (#772)
benjamin202410 Dec 24, 2024
c8aae5e
Get right tc epoch (#773)
benjamin202410 Dec 24, 2024
6114a3a
core: remove unused function reorgTxMatches
gzliudan Dec 25, 2024
a5c48e7
core: remove unused function writeHeader
gzliudan Dec 25, 2024
e2afaec
core: remove unused variables in BlockChain struct
gzliudan Dec 25, 2024
0686b44
upgrade to golang 1.22 (#763)
benjamin202410 Dec 26, 2024
69bca27
Merge pull request #776 from gzliudan/rm_unused_in_core
gzliudan Dec 26, 2024
77f9cc5
merge from dev-upgrade
Dec 27, 2024
48d1f22
all: simplify function TransitionDb (#20830)
JukLee0ira Dec 23, 2024
517f4a1
internal/ethapi: fix Call handle revert error
JukLee0ira Dec 23, 2024
efa2605
accounts/abi/bind/backends: fix wrong gas returned by EstimateGas
gzliudan Dec 21, 2024
240757a
all: remove empty function SaveData()
gzliudan Dec 25, 2024
43ad328
Merge pull request #774 from gzliudan/rm_SaveData
gzliudan Dec 28, 2024
89c51c5
common: improve documentation comments (#16701)
gzliudan Dec 18, 2024
7cd3e56
accounts/abi/bind: stop using goimports in the binding generator (#17…
gzliudan Dec 12, 2024
c0f547c
cmd/utils: fix bug when checking for flag value conflicts (#17803)
gzliudan Dec 13, 2024
e58441b
accounts/abi: change unpacking of abi fields w/ underscores (#16513)
gzliudan Dec 12, 2024
75c14d2
accounts/abi: fix case of generated java functions (#18372)
gzliudan Dec 12, 2024
2772e09
common/compiler: fixed testSource (#18978)
jasagredo Feb 3, 2019
f19422e
cmd/utils: relinquish GC cache to read cache in archive mode (#18991)
gzliudan Dec 11, 2024
cd1ff5d
common: remove function Big() for type Address (#19210)
gzliudan Dec 11, 2024
6692189
cmd/abigen: support Vyper (#19120)
gzliudan Dec 12, 2024
a747a98
common: improve functions of StorageSize (#19244)
gzliudan Dec 12, 2024
b711dc8
cmd/abigen: allow using abigen --pkg flag with standard input (#19207)
gzliudan Dec 13, 2024
91570dc
accounts/abi: fix mobile interface (#19180)
gzliudan Dec 12, 2024
7455b91
accounts/abi/bind: accept function ptr parameter (#19755)
gzliudan Dec 12, 2024
993bc69
accounts/abi/bind: link dependent libs in deploy (#19718)
gzliudan Dec 13, 2024
d6957d9
accounts/abi/bind: remove test case UseLibrary
gzliudan Dec 13, 2024
057a7dd
cmd/abigen: refactor command line interface (#19797)
gzliudan Dec 13, 2024
5a8110b
common/bitutil: use result of TestBytes to prevent dead code eliminat…
dr2chase Jul 17, 2019
94b69fd
common/compiler: support relative import paths (#17374 #19967)
shiqinfeng1 Aug 15, 2019
7f63a69
common: unify hex prefix check code (#19937)
gzliudan Dec 16, 2024
56e242b
core/state: optimize some internals during encoding (#20038)
gzliudan Dec 16, 2024
f5e90ee
common: improve test (#20354)
gzliudan Dec 16, 2024
30f835c
accounts/abi: common/math: moved U256Bytes (#21020)
gzliudan Dec 19, 2024
d3a943d
common/math: use math/bits intrinsics for Safe* (#21316)
fjl Jul 9, 2020
cf0c5c8
common/prque: refactor LazyQueue (#21236)
gzliudan Dec 16, 2024
28739d7
common: remove usage of deprecated function (#21610)
gzliudan Dec 16, 2024
dd318fc
common/hexutil: remove redundant conversion (#21903)
gzliudan Dec 16, 2024
c2db0e4
common: improve printing of Hash and Address (#21834)
gzliudan Dec 17, 2024
f01e639
common/compiler: fix parsing of solc output with solidity v.0.8.0 (#2…
MariusVanDerWijden Jan 5, 2021
d852f8c
common/prque: pull in tests and benchmarks from upstream (#22157)
karalabe Jan 11, 2021
6f19ace
common/mclock: remove dependency on github.com/aristanetworks/goarist…
gzliudan Dec 17, 2024
e52587d
common: do not pass current time as param in priority funcs (#22183)
gzliudan Dec 17, 2024
e2eb22d
common/prque: make Prque wrap-around priority handling optional (#22495)
gzliudan Dec 17, 2024
fb17f56
common: rename unused function with typo (#23025)
paularmand Jun 10, 2021
4db72a0
common: fixes format verb (#23495)
AlexanderYastrebov Aug 31, 2021
49dc5e8
common/hexutil: improve performance of EncodeBig (#23780)
lmittmann Oct 21, 2021
69ea532
common/compiler: add extra include paths to solidity compiler (#24541)
zhiqiangxu Mar 29, 2022
d6d6906
internal: add db operations to api (#24739)
gzliudan Dec 17, 2024
ebc0366
common/compiler, cmd/abigen: remove solc/vyper compiler integration (…
gzliudan Dec 17, 2024
febb456
common: improve pretty duration regex (#25073)
MariusVanDerWijden Jun 14, 2022
a03e111
common: increase StorageSize test coverage (#25188)
dbadoy Jun 29, 2022
1bff428
common/prque: fix typo (#25206)
dbadoy Jun 30, 2022
e3edcc8
common/math: lint whitespace
gzliudan Dec 17, 2024
32e033d
common, p2p: use AbsTime.Add instead of conversion (#25417)
gzliudan Dec 17, 2024
3eb2ec4
common/compiler: json unmarshalling error checks (#25449)
henry-0 Aug 1, 2022
5059114
common/types: add `Address.Big` (#26132)
tynes Nov 8, 2022
39e9d8f
common/prque: generic priority queue (#26290)
karalabe Feb 9, 2023
b58802a
common/math: allow HexOrDecimal to accept unquoted decimals too (#26758)
karalabe Feb 22, 2023
12111d3
common: delete MakeName (#27023)
lightclient Apr 3, 2023
59b14ed
internal/ethapi: make NewAccount return EIP-55 format (#26973)
gzliudan Dec 18, 2024
f74cccd
beacon/types: add beacon chain data types (#27292)
zsfelfoldi May 17, 2023
441f8ed
common: add variable MaxHash (#28306)
gzliudan Dec 19, 2024
4cc2b2e
tests/fuzzers: move fuzzers into native packages (#28467)
gzliudan Dec 19, 2024
ff13d16
core/vm: make structlog/json-log stack hex again (#28628)
gzliudan Dec 19, 2024
f2cd7c0
common/math: copy result in Exp (#29233)
AaronChen0 Mar 12, 2024
009542a
accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
justindhillon Mar 13, 2024
57eb92d
common/prque: remove dependency on golang.org/exp (#29314)
gzliudan Dec 19, 2024
62afcf6
common/prque: fix godoc comments (#29460)
georgehao Apr 6, 2024
b274a27
common/math: rename variable name `int` to `n` (#29890)
tianyeyouyou May 31, 2024
6fda80a
common/math: fix out of bounds access in json unmarshalling (#30014)
decanus Jun 17, 2024
dff8e50
common: using `ParseUint` instead of `ParseInt` (#30020)
Halimao Jun 19, 2024
6ec35b9
all: get rid of custom MaxUint64 and MaxUint64 (#30636)
gzliudan Dec 19, 2024
156de2b
common/math: delete some further dead code (#30639)
gzliudan Dec 19, 2024
6e33633
common: drop BigMin and BigMax, they pollute our dep graph (#30645)
gzliudan Dec 19, 2024
3a0d5b6
Merge pull request #768 from gzliudan/upgrade_common
gzliudan Dec 28, 2024
1c555b2
core, light: get rid of the dual mutexes (#18436)
gzliudan Dec 23, 2024
d7e0e9d
core: write chain data in atomic way (#20287)
gzliudan Dec 24, 2024
2d5dc55
core/rawdb: rename WriteTxLookupEntries to WriteTxLookupEntriesByBloc…
gzliudan Dec 24, 2024
2baadc6
core: improve shutdown synchronization in BlockChain (#22853)
gzliudan Dec 24, 2024
d03859d
core: update the fast block on chain import at the end of the fast sy…
gzliudan Dec 25, 2024
c8c39ef
core: remove unnecessary log copy (#27475)
gzliudan Dec 25, 2024
3e62a4c
Merge pull request #778 from XinFinOrg/release-br-v2.4.6-beta1-dev-up…
benjamin202410 Dec 28, 2024
911fe21
Merge pull request #779 from gzliudan/core_blockchain
gzliudan Dec 28, 2024
f8decab
code refactor for performance (#782)
benjamin202410 Dec 30, 2024
6307460
update bootnode list (#783)
benjamin202410 Dec 30, 2024
ac3b44e
remove devnet ecs terraform (#786)
benjamin202410 Dec 31, 2024
dd0fb11
reduce gas limit for devnet to 50M (#785)
benjamin202410 Dec 31, 2024
44ac46f
add local xdpos function
wanwiset25 Jun 26, 2024
4859d5e
new constants and genesis.json
wanwiset25 Dec 18, 2024
654be4d
add cicd
wanwiset25 Dec 30, 2024
0404803
optimize shell script
wanwiset25 Dec 31, 2024
12488b8
add bootnodes
wanwiset25 Jan 2, 2025
97879c0
Merge pull request #781 from XinFinOrg/new-devnet
wanwiset25 Jan 3, 2025
d0566e4
crypto: update to go version 1.22 (#28946)
gzliudan Jan 3, 2025
efad15f
crypto: use clear from go1.21 (#29307)
gzliudan Jan 3, 2025
136e87f
crypto: fix docstrings and comments
availhang Mar 22, 2024
104a973
crypto/secp256k1: change receiver variable name to lowercase (#29889)
suiyuan1314 May 30, 2024
e19093f
crypto: remove hardcoded value for secp256k1.N (#30126)
zhiqiangxu Jul 9, 2024
15be5ba
crypto: use decred secp256k1 directly (#30595)
gzliudan Jan 3, 2025
e581093
crypto, tests/fuzzers: add gnark bn254 precompile methods for fuzzing…
kevaundray Oct 23, 2024
9ca3d10
crypto/bn256: fix MulScalar (#30974)
gitglorythegreat Jan 2, 2025
5cff456
Merge pull request #790 from gzliudan/upgrade_crypto
gzliudan Jan 10, 2025
7091b93
ignore error and remove old function (#791)
wanwiset25 Jan 10, 2025
baea5d3
build: support golangci-lint v1.63.4
gzliudan Jan 11, 2025
2a26a57
Merge pull request #792 from gzliudan/golangci-lint
gzliudan Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ core/ @karalabe @holiman
eth/ @karalabe
les/ @zsfelfoldi
light/ @zsfelfoldi
mobile/ @karalabe
p2p/ @fjl @zsfelfoldi
whisper/ @gballet @gluk256
120 changes: 45 additions & 75 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ jobs:
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[d-i].*")
- name: J-N tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[j-n].*")
- name: O-R tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[o-r].*")
- name: S tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/s.*")
- name: O-S tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[o-s].*")
- name: T-Z tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[t-z].*")
steps:
Expand All @@ -57,7 +55,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: false
go-version: '1.21.x'
go-version: '1.22.x'
- name: Run tests
run: ${{ matrix.script }}
env:
Expand Down Expand Up @@ -102,94 +100,66 @@ jobs:
echo "image_name=$image_name"
echo "image_name=$image_name" >> "$GITHUB_OUTPUT"

devnet_terraform_apply:
devnet_k8_apply:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: devnet_build_push
environment: devnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: Terraform Apply
- name: Set up kubectl
uses: azure/setup-kubectl@v4
with:
version: 'v1.19.11'
- name: Decode and configure kubeconfig
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config
chmod 600 $HOME/.kube/config
git_hash=$(git rev-parse --short "$GITHUB_SHA")
cd cicd/devnet/terraform
terraform init ${{ env.tf_init_cli_options }}
terraform apply -var "docker_tag=dev-upgrade-${git_hash}" ${{ env.tf_apply_cli_options }}
kubectl set image deployment/devnet1 devnet1=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet2 devnet2=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet3 devnet3=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet4 devnet4=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet5 devnet5=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet6 devnet6=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet7 devnet7=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet8 devnet8=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet9 devnet9=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet10 devnet10=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet11 devnet11=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet12 devnet12=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet13 devnet13=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet14 devnet14=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet15 devnet15=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet16 devnet16=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet17 devnet17=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/devnet18 devnet18=xinfinorg/devnet:dev-upgrade-${git_hash} ||
echo done

rpcnode_terraform_apply:
rpc_k8_apply:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: devnet_build_push
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: Terraform Apply
run: |
cd cicd/terraform
terraform init ${{ env.tf_init_cli_options }}
terraform apply ${{ env.tf_apply_cli_options }}

- name: Update RPC nodes image
uses: dawidd6/action-ansible-playbook@v2
- name: Set up kubectl
uses: azure/setup-kubectl@v4
with:
playbook: playbooks/update-image.yaml
directory: ./cicd/ansible
key: ${{secrets.SSH_PRIVATE_KEY_DEVNET}}
options: |
--inventory inventory.yaml
--extra-vars network=ec2_rpcs
--extra-vars rpc_image=${{ needs.devnet_build_push.outputs.output1 }}

devnet_dev-upgrade_node:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: rpcnode_terraform_apply
environment: devnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: ECS Update
run: |
aws ecs update-service --region ap-southeast-1 --cluster devnet-xdcnode-cluster --service ecs-service-rpc1 --force-new-deployment --no-cli-pager | head -n 10;

testnet_dev-upgrade_node:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: rpcnode_terraform_apply
environment: testnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: ECS Update
version: 'v1.19.11'
- name: Decode and configure kubeconfig
run: |
aws ecs update-service --region ap-southeast-1 --cluster testnet-xdcnode-cluster --service ecs-service-testnet-rpc1 --force-new-deployment --no-cli-pager | head -n 10;

mainnet_dev-upgrade_node:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: rpcnode_terraform_apply
environment: mainnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: ECS Update
run: |
aws ecs update-service --region ap-southeast-1 --cluster mainnet-xdcnode-cluster --service ecs-service-mainnet-rpc1 --force-new-deployment --no-cli-pager | head -n 10;
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config
chmod 600 $HOME/.kube/config
git_hash=$(git rev-parse --short "$GITHUB_SHA")
kubectl set image deployment/devnetrpc devnetrpc=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/testnetrpc testnetrpc=xinfinorg/devnet:dev-upgrade-${git_hash} ||
kubectl set image deployment/mainnetrpc mainnetrpc=xinfinorg/devnet:dev-upgrade-${git_hash} ||
echo done

devnet_send_notification:
runs-on: ubuntu-latest
needs: devnet_terraform_apply
needs: devnet_k8_apply
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy_rpc_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
network:
type: choice
description: 'devnet, testnet, or mainnet'
options:
options:
- devnet
- testnet
- mainnet
rpc_image:
description: 'full image name'

jobs:
ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update RPC nodes image
uses: dawidd6/action-ansible-playbook@v2
with:
Expand All @@ -38,4 +38,3 @@ jobs:
- name: Send deployment notification
run: |
curl --location --request POST "66.94.98.186:8080/deploy?environment=${{inputs.network}}&service=xdc_rpc&version=${{inputs.rpc_image}}"

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build/_vendor/pkg

# used by the Makefile
/build/_workspace/
/build/cache/
/build/bin/
/XDC*.zip

Expand Down
79 changes: 79 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# This file configures github.com/golangci/golangci-lint.

run:
timeout: 20m
tests: true

linters:
disable-all: true
enable:
- goimports
- gosimple
- govet
- ineffassign
- misspell
- unconvert
- typecheck
- unused
- staticcheck
- bidichk
- durationcheck
- copyloopvar
- whitespace
- revive # only certain checks enabled
- durationcheck
- gocheckcompilerdirectives
- reassign
- mirror
- tenv
### linters we tried and will not be using:
###
# - structcheck # lots of false positives
# - errcheck #lot of false positives
# - contextcheck
# - errchkjson # lots of false positives
# - errorlint # this check crashes
# - exhaustive # silly check
# - makezero # false positives
# - nilerr # several intentional

linters-settings:
gofmt:
simplify: true
revive:
enable-all-rules: false
# here we enable specific useful rules
# see https://golangci-lint.run/usage/linters/#revive for supported rules
rules:
- name: receiver-naming
severity: warning
disabled: false
exclude: [""]

issues:
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
exclude-dirs-use-default: true
exclude-files:
- core/genesis_alloc.go
exclude-rules:
- path: crypto/bn256/cloudflare/optate.go
linters:
- deadcode
- staticcheck
- path: crypto/bn256/
linters:
- revive
- path: cmd/utils/flags.go
text: "SA1019: cfg.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
- path: cmd/utils/flags.go
text: "SA1019: ethconfig.Defaults.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
- path: internal/build/pgp.go
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
- path: core/vm/contracts.go
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
exclude:
- 'SA1019: event.TypeMux is deprecated: use Feed'
- 'SA1019: strings.Title is deprecated'
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
- 'SA1029: should not use built-in type string as key for value'
Loading
Loading