Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/tool/subcommands/api_cmd/api_compare_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ use tracing::debug;

const COLLECTION_SAMPLE_SIZE: usize = 5;
const SAFE_EPOCH_DELAY_FOR_TESTING: i64 = 20; // `SAFE_HEIGHT_DISTANCE`(200) is too large for testing
const MESSAGE_LOOKBACK_LIMIT: i64 = 2000;

/// This address has been funded by the calibnet faucet and the private keys
/// has been discarded. It should always have a non-zero balance.
Expand Down Expand Up @@ -1237,16 +1238,19 @@ fn state_tests_with_tipset<DB: Blockstore>(
validate_message_lookup(StateSearchMsg::request((
None.into(),
msg_cid,
800,
MESSAGE_LOOKBACK_LIMIT,
true,
))?),
validate_message_lookup(StateSearchMsg::request((
None.into(),
msg_cid,
800,
MESSAGE_LOOKBACK_LIMIT,
false,
))?),
validate_message_lookup(StateSearchMsgLimited::request((msg_cid, 800))?),
validate_message_lookup(StateSearchMsgLimited::request((
msg_cid,
MESSAGE_LOOKBACK_LIMIT,
))?),
]);
}
for msg in sample_messages(bls_messages.iter(), secp_messages.iter()) {
Expand Down Expand Up @@ -2306,8 +2310,11 @@ fn eth_state_tests_with_tipset<DB: Blockstore>(
.policy_on_rejected(PolicyOnRejected::PassWithQuasiIdenticalError),
);
tests.push(
RpcTest::identity(EthGetTransactionReceiptLimited::request((tx.hash, 800))?)
.policy_on_rejected(PolicyOnRejected::PassWithQuasiIdenticalError),
RpcTest::identity(EthGetTransactionReceiptLimited::request((
tx.hash,
MESSAGE_LOOKBACK_LIMIT,
))?)
.policy_on_rejected(PolicyOnRejected::PassWithQuasiIdenticalError),
);
}
}
Expand Down
Loading