Godwoken Web3 V1.5 Release Note
Godwoken Web3 is a Ethereum-compatibility RPC layer on Godwoken. Godwoken Web3 is being continually updated. The following content covers the most recent changes in Godwoken Web3 v1.5. For the full release notes refer to Godwoken Web3 Releases.
The latest update to Godwoken Web3 v1.5 includes the following changes:
Added
feat: Adapt for auto create undeposited account in #430
Adapted to the automatic creation of account for undeposited sender on Godwoken.
feat: Delete dropped auto create account tx in #445
Allow checks for the existence of an automatically created tx when calling RPC
eth_getTransactionByHash
, and will remove the dropped auto-create account tx.feat: add
poly_getEthTxHashByGwTxHash
andpoly_getGwTxHashByEthTxHash
in #449Added two new methods,
poly_getEthTxHashByGwTxHash
andpoly_getGwTxHashByEthTxHash
, that allow the conversion between Godwoken transaction hash and Ethereum transaction hash.feat: Add gw_is_request_in_queue in #450
This RPC method returns if the request (transaction or withdrawal) is in the fee queue. The request goes through the fee queue before being pushed to the mempool. This method is only supported on full nodes.
Fixed
Fix some small bugs of filter methods (part 1) in #427
Fix and refactor eth filter methods (part 3) in #429
Improves the performance of
eth_getFilterChanges
byBlockFilter
. in #428fix: correct parameter type of SQL query of
eth_getBlockTransactionCountByHash
in #440fix: Update revert error message and data in #437
fix: to eoa err msg in #441
fix: Add leading zeros for r & s when check auto create account tx ex… in #457
fix(indexer): r & s in rlp encode should be integer rather than bytes in #458 Fix
eth_tx_hash
calculation in indexer, where theeth_tx_hash
will be incorrect when r / s has leading zerosfix(ci): use ubuntu: focal to build web3-indexer in #465
fix: Update insufficient balance error message in #473
This PR fixed an issue where "from id not found by from Address" when the transfer account balance is insufficient with:
- Update error message if `balance < requiredBalance` when send transaction
- Remove `balance > 0` check in `eth_call` & `eth_estimateGas`Add cli command to fix
eth tx hash
in #475This PR is to fix the wrong data from
eth_tx_hash
. Theeth-tx-hash
data field inweb3-indexer-database
(PostgreSQL) could previously contain incorrect data. This problem was fixed in v1.5.1-rc1, so the data indexed by web3_version >= v1.5.1-rc1 is OK. Otherwise, you need to consider re-async database from scratch, or use the provided CLI tool to correct wrong data. See: https://github.com/nervosnetwork/godwoken-web3/blob/1.5-rc/packages/api-server/cli/README.mdUse the provided CLI tool
# Run `bash` in godwoken-web3 container
cd /godwoken-web3
yarn run cli list-wrong-eth-tx-hashes --help
yarn run cli list-wrong-eth-tx-hashes
yarn run cli fix-eth-tx-hash --help
yarn run cli fix-eth-tx-hash