Skip to content

Commit 796f531

Browse files
authored
fix(test): add --api-wait-lookback-limit 2000 to lotus-gateway (#6589)
1 parent 1ca70e0 commit 796f531

File tree

8 files changed

+9
-12
lines changed

8 files changed

+9
-12
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939

4040
### Fixed
4141

42+
- [#6577](https://github.com/ChainSafe/forest/issues/6577): Fixed `Filecoin.EthGetBalance` compatibility issue with Lotus Gateway.
43+
4244
- [#6551](https://github.com/ChainSafe/forest/pull/6551): Fixed `ErrExecutionReverted` JSONRPCError conversion error with Lotus Gateway.
4345

4446
## Forest v0.32.0 "Ember"

β€Žscripts/tests/api_compare/docker-compose.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ services:
154154
- |
155155
set -euxo pipefail
156156
export FULLNODE_API_INFO="$(cat /data/forest-token):/dns/forest/tcp/${FOREST_RPC_PORT}/http"
157-
lotus-gateway run --api-max-lookback 72000h --listen 0.0.0.0:${FOREST_VIA_GATEWAY_RPC_PORT}
157+
lotus-gateway run --api-max-lookback 72000h --api-wait-lookback-limit 2000 --listen 0.0.0.0:${FOREST_VIA_GATEWAY_RPC_PORT}
158158
healthcheck:
159159
test: |
160160
export FULLNODE_API_INFO="/dns/forest-via-gateway/tcp/${FOREST_VIA_GATEWAY_RPC_PORT}/http"

β€Žscripts/tests/api_compare/filter-list-gatewayβ€Ž

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
!Filecoin.ChainSetHead
88
!Filecoin.ChainStatObj
99
!Filecoin.ChainTipSetWeight
10+
!Filecoin.EthGetBlockReceiptsLimited
1011
!Filecoin.F3
1112
!Filecoin.GasEstimateGasLimit
1213
!Filecoin.MinerCreateBlock
@@ -56,12 +57,5 @@
5657

5758
# broken
5859
!Filecoin.EthCall
59-
!Filecoin.EthGetBalance
60-
!Filecoin.EthGetBlockReceipts
61-
!Filecoin.EthGetBlockReceiptsLimited
6260
!Filecoin.EthGetFilterLogs
63-
!Filecoin.EthGetTransactionByHash
64-
!Filecoin.EthGetTransactionReceipt
65-
!Filecoin.StateSearchMsg
66-
!Filecoin.StateWaitMsg
6761
!Filecoin.EthSyncing

β€Žsrc/rpc/log_layer.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<S> Logging<S> {
4747
F: Future<Output = MethodResponse>,
4848
{
4949
// Avoid performance overhead if DEBUG level is not enabled.
50-
if !tracing::enabled!(tracing::Level::DEBUG) {
50+
if !Self::log_enabled() {
5151
return future.await;
5252
}
5353

β€Žsrc/rpc/methods/eth.rsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ pub struct BlockNumber {
339339
#[serde(rename_all = "camelCase")]
340340
pub struct BlockHash {
341341
block_hash: EthHash,
342+
#[serde(default)]
342343
require_canonical: bool,
343344
}
344345

β€Žsrc/rpc/snapshots/forest__rpc__tests__rpc__v0.snapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsrc/rpc/snapshots/forest__rpc__tests__rpc__v1.snapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsrc/rpc/snapshots/forest__rpc__tests__rpc__v2.snapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)