File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
migration/util/executor-types/src/executor Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use aptos_storage_interface::{
4
4
DbReader ,
5
5
} ;
6
6
use aptos_types:: state_store:: state_key:: StateKey ;
7
- use aptos_vm:: aptos_vm:: AptosVMBlockExecutor ;
7
+ pub use aptos_vm:: aptos_vm:: AptosVMBlockExecutor ;
8
8
use either:: Either ;
9
9
use std:: sync:: Arc ;
10
10
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use maptos_opt_executor::aptos_types::state_store::state_key::StateKey;
5
5
pub use maptos_opt_executor:: Executor as MovementOptExecutor ;
6
6
use std:: sync:: Arc ;
7
7
8
+ use anyhow:: Context ;
8
9
pub use maptos_opt_executor;
9
10
pub use maptos_opt_executor:: aptos_types:: { chain_id:: ChainId , state_store:: TStateView } ;
10
11
use tracing:: debug;
@@ -40,7 +41,8 @@ impl MovementExecutor {
40
41
pub fn latest_ledger_version ( & self ) -> Result < u64 , anyhow:: Error > {
41
42
let db_reader = self . opt_executor ( ) . db_reader ( ) ;
42
43
43
- let latest_ledger_info = db_reader. get_latest_ledger_info ( ) ?;
44
+ let latest_ledger_info =
45
+ db_reader. get_latest_ledger_info ( ) . context ( "failed to get latest ledger info" ) ?;
44
46
45
47
Ok ( latest_ledger_info. ledger_info ( ) . version ( ) )
46
48
}
You can’t perform that action at this time.
0 commit comments