Module Evm_node_lib_dev.Block_producer

type parameters = {
  1. signer : Signer.t;
  2. smart_rollup_address : string;
  3. maximum_number_of_chunks : int;
  4. tx_container : Services_backend_sig.ex_tx_container;
  5. sequencer_sunset_sec : int64;
}

start parameters starts the events follower.

val shutdown : unit -> unit Lwt.t

shutdown () stops the events follower.

val produce_block : force:bool -> timestamp:Tezos_base.TzPervasives.Time.Protocol.t -> [ `Block_produced of int | `No_block ] Tezos_base.TzPervasives.tzresult Lwt.t

produce_block ~force ~timestamp takes the transactions in the tx pool and produces a block from it, returns the number of transaction in the block. The block is not produced if the list of transactions is empty and force is set to false.

module Internal_for_tests : sig ... end