Commit graph

12489 commits

Author SHA1 Message Date
Daniel Liu
baea5d3da7 build: support golangci-lint v1.63.4 2025-01-11 23:56:59 +08:00
Wanwiset Peerapatanapokin
7091b934a5
ignore error and remove old function (#791) 2025-01-10 00:44:00 -08:00
Daniel Liu
5cff4564aa
Merge pull request #790 from gzliudan/upgrade_crypto
upgrade crypto package
2025-01-10 13:21:01 +08:00
gitglorythegreat
9ca3d10001 crypto/bn256: fix MulScalar (#30974)
The `a` parameter should be used in the `MulScalar` function. The
upstream cloudflare and google repos have already merged fixes.

Reference:
*
8d7daa0c54
* https://github.com/cloudflare/bn256/pull/33
2025-01-04 11:00:57 +08:00
kevaundray
e581093ce1 crypto, tests/fuzzers: add gnark bn254 precompile methods for fuzzing (#30585)
Makes the gnark precompile methods more amenable to fuzzing
2025-01-04 11:00:57 +08:00
Daniel Liu
15be5ba464 crypto: use decred secp256k1 directly (#30595) 2025-01-04 11:00:57 +08:00
zhiqiangxu
e19093f344 crypto: remove hardcoded value for secp256k1.N (#30126) 2025-01-04 11:00:57 +08:00
SuiYuan
104a97354a crypto/secp256k1: change receiver variable name to lowercase (#29889) 2025-01-04 11:00:57 +08:00
George Ma
136e87fa4c crypto: fix docstrings and comments 2025-01-04 11:00:57 +08:00
Daniel Liu
efad15f9f4 crypto: use clear from go1.21 (#29307) 2025-01-04 11:00:57 +08:00
Daniel Liu
d0566e4165 crypto: update to go version 1.22 (#28946) 2025-01-04 11:00:57 +08:00
Wanwiset Peerapatanapokin
97879c0ac5
Merge pull request #781 from XinFinOrg/new-devnet
New devnet
2025-01-04 00:15:18 +07:00
wanwiset25
12488b86ed add bootnodes 2025-01-01 22:07:31 -05:00
wanwiset25
0404803366 optimize shell script 2025-01-01 22:07:31 -05:00
wanwiset25
654be4d874 add cicd 2025-01-01 22:07:31 -05:00
wanwiset25
4859d5e7db new constants and genesis.json 2025-01-01 22:06:09 -05:00
wanwiset25
44ac46f676 add local xdpos function
add readme

changes to support xdpos2 protocol from block 0
2025-01-01 22:06:09 -05:00
benjamin202410
dd0fb11fa3
reduce gas limit for devnet to 50M (#785)
Co-authored-by: liam.lai <liam.lai@us>
2024-12-30 18:31:47 -08:00
benjamin202410
ac3b44eebf
remove devnet ecs terraform (#786)
Co-authored-by: liam.lai <liam.lai@us>
2024-12-30 18:31:31 -08:00
benjamin202410
6307460603
update bootnode list (#783)
Co-authored-by: liam.lai <liam.lai@us>
2024-12-29 21:50:28 -08:00
benjamin202410
f8decab061
code refactor for performance (#782)
Co-authored-by: liam.lai <liam.lai@us>
2024-12-29 21:47:14 -08:00
Daniel Liu
911fe219df
Merge pull request #779 from gzliudan/core_blockchain
upgrade the core package for reorg
2024-12-28 13:05:40 +08:00
benjamin202410
3e62a4c611
Merge pull request #778 from XinFinOrg/release-br-v2.4.6-beta1-dev-upgrade
Release br v2.4.6 beta1 merge back to dev upgrade
2024-12-27 20:07:41 -08:00
Daniel Liu
c8c39efb63 core: remove unnecessary log copy (#27475) 2024-12-28 10:45:00 +08:00
Daniel Liu
d03859d49e core: update the fast block on chain import at the end of the fast sync phase (#23576) 2024-12-28 10:44:54 +08:00
Daniel Liu
2baadc6e87 core: improve shutdown synchronization in BlockChain (#22853) 2024-12-28 10:44:49 +08:00
Daniel Liu
2d5dc550d0 core/rawdb: rename WriteTxLookupEntries to WriteTxLookupEntriesByBlock (#21480) 2024-12-28 10:44:42 +08:00
Daniel Liu
d7e0e9d734 core: write chain data in atomic way (#20287) 2024-12-28 10:44:36 +08:00
Daniel Liu
1c555b2def core, light: get rid of the dual mutexes (#18436) 2024-12-28 10:44:30 +08:00
Daniel Liu
3a0d5b6212
Merge pull request #768 from gzliudan/upgrade_common
upgrade package common
2024-12-28 09:08:16 +08:00
Daniel Liu
6e33633d28 common: drop BigMin and BigMax, they pollute our dep graph (#30645) 2024-12-28 09:06:31 +08:00
Daniel Liu
156de2bf90 common/math: delete some further dead code (#30639) 2024-12-28 09:06:31 +08:00
Daniel Liu
6ec35b9644 all: get rid of custom MaxUint64 and MaxUint64 (#30636) 2024-12-28 09:06:31 +08:00
Halimao
dff8e50085 common: using ParseUint instead of ParseInt (#30020)
Since Decimal is defined as unsiged `uint64`, we should use `strconv.ParseUint` instead of `strconv.ParseInt` during unmarshalling.

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-12-28 09:06:31 +08:00
Dean Eigenmann
6fda80ade8 common/math: fix out of bounds access in json unmarshalling (#30014)
Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-12-28 09:06:31 +08:00
tianyeyouyou
b274a273b8 common/math: rename variable name int to n (#29890)
* chore: rename variable name `int` to `in`

* chore: rename variable name `int` to `n`
2024-12-28 09:06:31 +08:00
georgehao
62afcf6b85 common/prque: fix godoc comments (#29460)
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-12-28 09:06:31 +08:00
Daniel Liu
57eb92da1c common/prque: remove dependency on golang.org/exp (#29314) 2024-12-28 09:06:31 +08:00
Justin Dhillon
009542a92e accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
fixes some links in documentation
2024-12-28 09:06:31 +08:00
Aaron Chen
f2cd7c082b common/math: copy result in Exp (#29233)
common/math: does not change base parameter
2024-12-28 09:06:31 +08:00
Daniel Liu
ff13d16fe5 core/vm: make structlog/json-log stack hex again (#28628) 2024-12-28 09:06:31 +08:00
Daniel Liu
4cc2b2ea5f tests/fuzzers: move fuzzers into native packages (#28467) 2024-12-28 09:06:31 +08:00
Daniel Liu
441f8ed70c common: add variable MaxHash (#28306) 2024-12-28 09:06:31 +08:00
Felföldi Zsolt
f74cccd1cb beacon/types: add beacon chain data types (#27292)
* beacon/types: add beacon chain data types

* beacon/merkle: added comments

* go.mod: cleanups

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-12-28 09:06:31 +08:00
Daniel Liu
59b14ed2cb internal/ethapi: make NewAccount return EIP-55 format (#26973) 2024-12-28 09:06:31 +08:00
lightclient
12111d30ea common: delete MakeName (#27023)
common,p2p: remove unused function MakeName
2024-12-28 09:06:31 +08:00
Péter Szilágyi
b58802a402 common/math: allow HexOrDecimal to accept unquoted decimals too (#26758) 2024-12-28 09:06:31 +08:00
Péter Szilágyi
39e9d8f94d common/prque: generic priority queue (#26290) 2024-12-28 09:06:31 +08:00
Mark Tyneway
5059114992 common/types: add Address.Big (#26132)
Many of the other types have a function to convert the type to a big.Int,
but Address was missing this function.

It is useful to be able to turn an Address into a big.Int when doing
EVM-like computations natively in Go. Sometimes a Solidity address
type is casted to a uint256 and having a Big method on the Address
type makes this easy.
2024-12-28 09:06:31 +08:00
Henry
3eb2ec42b5 common/compiler: json unmarshalling error checks (#25449)
complier/solidity:add json.Unmarshal err check
2024-12-28 09:06:31 +08:00