Skip to content

Commit

Permalink
making sequence ahead
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 20, 2024
1 parent 99fe5f0 commit 76a5510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mantis/blackbox/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def create_app() -> FastAPI:
"""
app = FastAPI()

# ttl is in seconds
cache = PersistentCache(TTLCache, filename="$TEMP/get_remote_data.cache", ttl=240, maxsize=2)


Expand Down
3 changes: 2 additions & 1 deletion mantis/node/src/bin/mantis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async fn simulate_orders(simulate_args: &SimulateArgs) {
let mut write_client = create_wasm_write_client(&args.rpc_centauri).await;
log::info!("Simulating orders");

let tip =
let mut tip =
get_latest_block_and_account_by_key(&args.rpc_centauri, &args.grpc_centauri, &signer).await;

assert!(simulate_args.coins.len() > 0);
Expand All @@ -162,6 +162,7 @@ async fn simulate_orders(simulate_args: &SimulateArgs) {
simulate_args.random_parts,
)
.await;
tip.account.sequence += 1;
}
}

Expand Down

0 comments on commit 76a5510

Please sign in to comment.