Commit graph

12847 commits

Author SHA1 Message Date
Daniel Liu
d1b72bf8ac
Merge pull request #837 from gzliudan/eip_6780
core/state, core/vm: implement EIP 6780
2025-02-08 18:01:10 +08:00
Daniel Liu
c08d4ff4a6 core/state, core/vm: implement EIP 6780 (#27189) 2025-02-07 14:52:29 +08:00
JukLee0ira
d6b136ed7c
consensus, internal, contracts: remove extra hash and string conversions (#830)
* consensus, internal: remove extra hash conversions

* contracts: remove extra string conversions
2025-02-07 13:59:07 +08:00
Daniel Liu
33b16b5efe
Merge pull request #836 from gzliudan/empty_root_hash
all: use types.EmptyRootHash instead of null
2025-02-07 13:58:28 +08:00
Daniel Liu
186d49b1f3 core/vm: use types.EmptyCodeHash (#27729) 2025-02-07 13:50:48 +08:00
Daniel Liu
ebb2c3b2ea all: new empty trie with types.EmptyRootHash instead of null (#27230) 2025-02-07 13:04:45 +08:00
Daniel Liu
65ea1c517f
Merge pull request #835 from XinFinOrg/cicd-backup-rpc
add backup rpc to cicd
2025-02-07 07:49:50 +08:00
wanwiset25
7c29d138ac add backup rpc to cicd 2025-02-06 18:32:21 +04:00
Daniel Liu
5e78d4f22b
Merge pull request #834 from gzliudan/mcopy
core/vm: implement EIP-5656, mcopy instruction
2025-02-06 17:22:53 +08:00
Daniel Liu
6d40cdf7c0 core/vm: implement EIP-5656, mcopy instruction (#26181) 2025-02-06 16:54:19 +08:00
Daniel Liu
2233a6cc7b
Merge pull request #828 from gzliudan/upgrade_vm
upgrade core/vm
2025-02-06 16:53:03 +08:00
Daniel Liu
240de84287 core/vm: define cancun + enable 1153 (tstore/tload) in cancun (#27663) 2025-02-05 18:16:17 +08:00
Daniel Liu
07fd1c64cf core/vm: order opcodes properly (#27113) 2025-02-05 18:16:17 +08:00
Daniel Liu
4bbcd988b2 params: remove EIP150Hash from chainconfig (#27087) 2025-02-05 18:16:17 +08:00
Daniel Liu
3f58066879 all: remove debug field from vm config (#27048) 2025-02-05 18:16:17 +08:00
joohhnnn
6473d18cdb core/vm: clarify comment (#27045) 2025-02-05 18:16:17 +08:00
Daniel Liu
551e3594cf core/vm: use atomic.Bool (#26951) 2025-02-05 18:16:17 +08:00
Daniel Liu
4190465c53 core/vm: expose jumptable constructors (#26880) 2025-02-05 18:16:17 +08:00
Daniel Liu
ed74ab2bd9
Merge pull request #826 from gzliudan/define_cancun
params: add Cancun blocks and improve the output of chain config
2025-02-05 18:12:49 +08:00
Daniel Liu
bb8324357c params: log chain config a bit saner (#24904) 2025-02-05 18:10:06 +08:00
Daniel Liu
ec0e07b100 params: add Cancun blocks (#25305) 2025-02-05 18:01:29 +08:00
Daniel Liu
b8f017a732
Merge pull request #827 from gzliudan/report_block
core: improve the output format of report block
2025-02-05 18:00:35 +08:00
Daniel Liu
e7d8e14298 core: improve the format of report block 2025-02-05 12:59:20 +08:00
benjamin202410
660f3f6578
Merge pull request #824 from XinFinOrg/benjamin202410-patch-1
test exp timeout on devnet
2025-01-31 01:58:31 -08:00
benjamin202410
2ff2e3442d
test exp timeout on devnet 2025-01-29 23:48:35 -08:00
Daniel Liu
08e37a48ba
Merge pull request #798 from gzliudan/upgrade_accounts
accounts: upgrade to 2024-12-17
2025-01-25 08:38:50 +08:00
Daniel Liu
dae71020ee
Merge pull request #822 from XinFinOrg/update-devnet-bootnodes
update bootnodes
2025-01-24 21:03:09 +08:00
wanwiset25
b6bce43bba update bootnodes 2025-01-24 15:48:03 +04:00
Daniel Liu
a8a96a804f accounts/abi/bind: make it possible to wait for tx hash (#30079)
This change adds methods which makes it possible for to wait for a transaction with a specific hash when deploying contracts during abi bind interaction.

---------

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2025-01-24 16:54:12 +08:00
Daniel Liu
6f37e85e80 accounts/abi: support unpacking solidity errors (#30738)
This PR adds the error fragments to `func (abi ABI) getArguments` which
allows typed decoding of errors.
2025-01-24 16:54:12 +08:00
Daniel Liu
aa164fbbc1 accounts/abi: fix MakeTopics mutation of big.Int inputs (#30785)
However, it also changed the behavior of the function from just
_reading_ the input `*big.Int` via `Bytes()`, to leveraging
`big.U256Bytes` which is documented as being _destructive_:

This change updates `MakeTopics` to not mutate the original, and
also applies the same change in signer/core/apitypes.
2025-01-24 16:54:12 +08:00
Daniel Liu
db3dc1932c accounts/usbwallet: support dynamic tx (#30180)
Adds support non-legacy transaction-signing using ledger

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-01-24 16:54:12 +08:00
Daniel Liu
72e5ee7f17 accounts/abi: golangci-lint 1.61.0 (#30587) 2025-01-24 16:54:12 +08:00
Daniel Liu
ced65923db accounts/abi/bind: check SendTransaction error in tests (#30349)
In few tests the returned error from `SendTransaction` is not being
checked. This PR checks the returned err in tests.

Returning errors also revealed tx in `TestCommitReturnValue` is not
actually being sent, and returns err ` only replay-protected (EIP-155)
transactions allowed over RPC`. Fixed the transaction by using the
`testTx` function.
2025-01-24 16:54:12 +08:00
Daniel Liu
11d3afd849 accounts/abi: handle ABIs with contract type parameter (#30315)
convert parameter of type contract to the basic `address` type
---------

Co-authored-by: Martin HS <martin@swende.se>
2025-01-24 16:54:12 +08:00
Daniel Liu
c6a8f79702 accounts/abi/bind: add accessList support to base bond contract (#30195)
Adding the correct accessList parameter when calling a contract can
reduce gas consumption. However, the current version only allows adding
the accessList manually when constructing the transaction. This PR can
provide convenience for saving gas.
2025-01-24 16:54:12 +08:00
Daniel Liu
5beff83a6d all: remove deprecated protobuf dependencies (#30232)
The package `github.com/golang/protobuf/proto` is deprecated in favor
`google.golang.org/protobuf/proto`. We should update the codes to
recommended package.

Signed-off-by: Icarus Wu <icaruswu66@qq.com>
2025-01-24 16:54:12 +08:00
Daniel Liu
0cbaccd106 accounts/keystore: simplify tests using t.TempDir() (#30150) 2025-01-24 16:54:12 +08:00
Daniel Liu
52ac8ae22b accounts/abi/bind: use embed pkg to split go source template to file (#30098) 2025-01-24 16:54:12 +08:00
Daniel Liu
1fcc36a2dc build: add check for stale generated files (#30037)
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-01-24 16:54:12 +08:00
Daniel Liu
a0a1322d84 accounts/usbwallet/trezor: upgrade to generate with protoc 27.1 (#30058) 2025-01-24 16:54:12 +08:00
Daniel Liu
62895df693 accounts/keystore: use t.TempDir in test (#30052) 2025-01-24 16:54:12 +08:00
Daniel Liu
d2e00672c5 accounts: avoid duplicate regex compilation (#29943)
* fix: Optimize regular initialization

* modify var name

* variable change to private types
2025-01-24 16:54:12 +08:00
Daniel Liu
643c715b43 accounts: fix TestUpdateKeyfileContents (#29867)
Create the directory before NewKeyStore. This ensures the watcher successfully starts on
the first attempt, and waitWatcherStart functions as intended.
2025-01-24 16:54:12 +08:00
Daniel Liu
ef71887d7a accounts, cmd/geth, core: close opened files (#29598)
* fix: open file used up but not closed

* feat: more same case

* feat: accept conversation
2025-01-24 16:54:12 +08:00
Daniel Liu
02a3aa13c1 accounts/abi: fix typos (#29542 #29600) 2025-01-24 16:54:12 +08:00
Daniel Liu
733a5fc193 accounts: fix mismatched names in comments (#29348) 2025-01-24 16:54:12 +08:00
Daniel Liu
dfc0f112b8 accounts/keystore: use min/max/clear from go1.21 (#29307) 2025-01-24 16:54:12 +08:00
Daniel Liu
30dc0f47c9 accounts/abi/bind: check invalid chainID first (#29275) 2025-01-24 16:54:12 +08:00
Daniel Liu
2b60816af1 accounts/scwallet: remove references to deprecated elliptic package (#28946) 2025-01-24 16:54:12 +08:00