Commit graph

12258 commits

Author SHA1 Message Date
Daniel Liu
a2eb8553e8 crypto/bn256: better comments for u, P and Order (#21836) 2024-12-09 17:49:00 +08:00
Daniel Liu
f948466976 crypto: less allocations when hashing and tx handling (#21265) 2024-12-09 17:49:00 +08:00
Daniel Liu
ee303c9f3d crypto/ecies: improve concatKDF (#20836) 2024-12-09 17:48:59 +08:00
Daniel Liu
b2be754647 crypto/bn256: fix import line (#20723) 2024-12-09 17:48:59 +08:00
Daniel Liu
6033722b72 crypto: use golangci-lint (#20295) 2024-12-09 17:48:59 +08:00
Daniel Liu
e1eb00ef99 crypto: make unit tests work with Go 1.13 (#20053) 2024-12-09 17:48:59 +08:00
Daniel Liu
ad5e7d6db3 crypto: add SignatureLength constant and use it everywhere (#19996) 2024-12-09 17:48:59 +08:00
Daniel Liu
8dcea8ddf8 crypto: replace t.Log(); t.FailNow() with t.Fatal() (#19849) 2024-12-09 17:48:59 +08:00
Daniel Liu
b9054b220c crypto: replace fmt.Println calls with t.Log in tests (#19670) 2024-12-09 17:48:59 +08:00
Daniel Liu
66dd846d46 crypto/bn256/cloudflare: fix comments to describe the updated curve parameters (#19577)
* Removed comment section referring to Cloudflare's bn curve parameters

* Added comment to clarify the nature of the parameters

* Changed value of xi to i+9
2024-12-09 17:48:59 +08:00
Daniel Liu
d2ac7d0987 crypto: fix build when CGO_ENABLED=0 (#19121)
Package crypto works with or without cgo, which is great. However, to make it
work without cgo required setting the build tag `nocgo`. It's common to disable
cgo by instead just setting the environment variable `CGO_ENABLED=0`. Setting
this environment variable does _not_ implicitly set the build tag `nocgo`. So
projects that try to build the crypto package with `CGO_ENABLED=0` will fail. I
have done this myself several times. Until today, I had just assumed that this
meant that this package requires cgo.

But a small build tag change will make this case work. Instead of using `nocgo`
and `!nocgo`, we can use `!cgo` and `cgo`, respectively. The `cgo` build tag is
automatically set if cgo is enabled, and unset if it is disabled.
2024-12-09 17:48:59 +08:00
Daniel Liu
9d9bd65a01 crypto/ecies: remove unused function (#19096) 2024-12-09 17:48:59 +08:00
Daniel Liu
92fc843683 crypto: switch over to upstream sha3 package (#18390) 2024-12-09 17:48:59 +08:00
Daniel Liu
d3fc08db1d update golang.org/x/crypto to v0.29.0 2024-12-09 17:48:59 +08:00
Daniel Liu
0dbe81936b
Merge pull request #676 from gzliudan/evm-reuse
core/vm: improve EVM reusability
2024-12-09 17:48:06 +08:00
Daniel Liu
733c298b0e core/vm: improve EVM reusability (#26341) 2024-12-09 17:47:05 +08:00
Daniel Liu
db1fd59268
Merge pull request #677 from gzliudan/eip-3651
implement EIP-3651(warm coinbase)
2024-12-09 17:45:52 +08:00
Daniel Liu
0d0ea46bfa core: implement EIP-3651, warm coinbase (#25819) 2024-12-09 17:44:30 +08:00
Daniel Liu
b0ec10473d
Merge pull request #754 from gzliudan/use_replace_all
all: replace strings.Replace with string.ReplaceAll
2024-12-08 11:52:00 +08:00
Daniel Liu
02a59e8d84 all: replace strings.Replace with string.ReplaceAll (#24835) 2024-12-08 11:51:14 +08:00
Daniel Liu
fee2577701
Merge pull request #755 from gzliudan/http_method
all: use http package to replace http method names
2024-12-08 11:49:28 +08:00
Daniel Liu
d55dca04b5 all: use http package to replace http method names (26535) 2024-12-05 10:59:42 +08:00
Wanwiset Peerapatanapokin
05a0f20009
Merge pull request #752 from XinFinOrg/devnet-statsserver-typo
fix typo and local script
2024-12-03 11:44:44 +04:00
wanwiset25
448fe9a746 fix typo and local script 2024-12-03 02:29:40 +04:00
Wanwiset Peerapatanapokin
9cf63d50e4
Merge pull request #749 from XinFinOrg/devnet-bootnode
Devnet bootnode
2024-12-02 12:27:44 +04:00
wanwiset25
e257b521ce change devnetstats url 2024-12-02 09:06:48 +08:00
wanwiset25
f646ddd2db add store-reward flag by default 2024-11-29 21:06:05 +08:00
wanwiset25
c369253b5c update bootnode check script 2024-11-29 15:58:44 +04:00
wanwiset25
7d41e834e4 new devnet bootnodes 2024-11-29 15:58:44 +04:00
benjamin202410
a8560300a4
fix vote test and optimize log (#750)
Co-authored-by: liam.lai <liam.lai@us>
2024-11-29 03:14:25 -08:00
Daniel Liu
4278930885
Merge pull request #741 from gzliudan/cli-v2
cmd: migrate to urfave/cli/v2
2024-11-25 17:25:53 +08:00
Daniel Liu
ae56946690 internal/flags: remove low-use type TextMarshalerFlag (#30707) 2024-11-25 16:39:29 +08:00
Daniel Liu
a6192a5980 internal/flags: fix --miner.gasprice default listing (#28932) 2024-11-25 16:39:29 +08:00
Daniel Liu
ac611170d1 internal/flags: add missing flag types for auto-env-var generation (#28692)
Certain flags, such as `--rpc.txfeecap` currently do not have an env-var auto-generated for them. This change adds three missing cli flag types to the auto env-var helper function to fix this.
2024-11-25 16:39:29 +08:00
Daniel Liu
4e192a5172 cmd/XDC, internal/flags: print envvar config source and bad names (#28119) 2024-11-25 16:39:29 +08:00
Daniel Liu
87ddf502ce internal/flags: fix loading env vars for custom flags (#28117) 2024-11-25 16:39:29 +08:00
Daniel Liu
197551c729 cmd/geth, internal/flags, go.mod: colorize cli help, support env vars (#28103) 2024-11-25 16:39:29 +08:00
Daniel Liu
bda88affe6 cmd/XDC: add version in --help output (#26895) 2024-11-25 16:39:29 +08:00
Daniel Liu
fa69900737 Use filepath.clean instead of path.clean (#26404)
* internal/flags: use filepath.Clean instead of path.Clean

* internal/flags: fix windows pipe issue

* internal/flags: modify test for windows

* internal/flags: use backticks, fix test
2024-11-25 16:39:29 +08:00
Daniel Liu
9b8a82b91f internal/flags: fix issue with stringslice migration (#25830)
This fixes a cornercase bug where the flag migration would mess
up the value of StringSlice flags.
2024-11-25 16:39:29 +08:00
Daniel Liu
3e1ea87ca2 cmd/XDC: fix some cli parsing issues (#25234) 2024-11-25 16:39:29 +08:00
Daniel Liu
369d69649f all: normalize flag's name 2024-11-25 16:39:29 +08:00
Daniel Liu
b883b0b593 internal/flags: fix flag redefined bug for cli v2 aliases (#30796) 2024-11-25 16:39:29 +08:00
Daniel Liu
dcab7e8efb cmd: migrate to urfave/cli/v2 (#24751) 2024-11-25 16:39:29 +08:00
Daniel Liu
017dcdd756
Merge pull request #737 from JukLee0ira/fix-node
node, p2p/simulations: fix node.Node AccountsManager leak
2024-11-25 16:35:40 +08:00
JukLee0ira
6f9fb9d1da node, p2p/simulations: fix node.Node AccountsManager leak (#19004) 2024-11-25 16:33:26 +08:00
Anil Chinchawale
fe801c88d4
Merge pull request #743 from XinFinOrg/bug-fix-use-right-block-to-count-vote-theshold
bug fix use right block to count vote threshold
2024-11-22 13:37:57 +05:30
liam.lai
809242223a bug fix use right block to count vote theshold 2024-11-22 00:04:39 -08:00
Daniel Liu
962be21184
Merge pull request #742 from gzliudan/fix-pr734
use global function when cli v1
2024-11-21 17:58:56 +08:00
Daniel Liu
bd916d100a cmd/evm, internal/debug: use global functions when cli v1 2024-11-21 17:40:51 +08:00