@@ -580,28 +580,28 @@ impl ProverServer {
580
580
581
581
pub async fn main_logic_dev ( & self ) -> Result < ( ) , ProverServerError > {
582
582
loop {
583
- let last_committed_block = EthClient :: get_last_committed_batch (
583
+ let last_committed_batch = EthClient :: get_last_committed_batch (
584
584
& self . eth_client ,
585
585
self . on_chain_proposer_address ,
586
586
)
587
587
. await ?;
588
588
589
- let last_verified_block = EthClient :: get_last_verified_block (
589
+ let last_verified_batch = EthClient :: get_last_verified_batch (
590
590
& self . eth_client ,
591
591
self . on_chain_proposer_address ,
592
592
)
593
593
. await ?;
594
594
595
- if last_committed_block == last_verified_block {
595
+ if last_committed_batch == last_verified_batch {
596
596
debug ! ( "No new blocks to prove" ) ;
597
597
continue ;
598
598
}
599
599
600
- info ! ( "Last committed: {last_committed_block } - Last verified: {last_verified_block }" ) ;
600
+ info ! ( "Last committed: {last_committed_batch } - Last verified: {last_verified_batch }" ) ;
601
601
602
602
let calldata_values = vec ! [
603
603
// blockNumber
604
- Value :: Uint ( U256 :: from( last_verified_block + 1 ) ) ,
604
+ Value :: Uint ( U256 :: from( last_verified_batch + 1 ) ) ,
605
605
// risc0BlockProof
606
606
Value :: Bytes ( vec![ ] . into( ) ) ,
607
607
// risc0ImageId
@@ -661,11 +661,11 @@ impl ProverServer {
661
661
. send_tx_bump_gas_exponential_backoff ( & mut tx, & self . verifier_private_key )
662
662
. await ?;
663
663
664
- info ! ( "Sent proof for block {last_verified_block }, with transaction hash {verify_tx_hash:#x}" ) ;
664
+ info ! ( "Sent proof for batch {last_verified_batch }, with transaction hash {verify_tx_hash:#x}" ) ;
665
665
666
666
info ! (
667
- "Mocked verify transaction sent for block {}" ,
668
- last_verified_block + 1
667
+ "Mocked verify transaction sent for batch {}" ,
668
+ last_verified_batch + 1
669
669
) ;
670
670
671
671
sleep_random ( self . dev_interval_ms ) . await ;
0 commit comments