Skip to content

Commit

Permalink
Add more comments for try_get_object_before_version
Browse files Browse the repository at this point in the history
  • Loading branch information
bingyanglin committed Nov 1, 2024
1 parent 1c55189 commit ca140b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/iota-json-rpc-api/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ pub trait ReadApi {
/// version exists/existed. The result may vary across nodes depending
/// on their pruning policies. Returns the latest object information
/// with a version less than or equal to the given version
/// Note that this endpoint is used by sui replay tool. Also the
/// implementation in `iota-json-rpc` uses internally the
/// `AuthorityState::find_object_lt_or_eq_version` method, which has
/// underlying utility, (e.g., `RemoteFetcher::get_child_object` uses
/// `try_get_object_before_version` to get the object with the versions <=
/// the given version). Thus we keep this endpoint for now.
#[method(name = "tryGetObjectBeforeVersion", deprecated = "true")]
async fn try_get_object_before_version(
&self,
Expand Down

0 comments on commit ca140b3

Please sign in to comment.