Mina_lib
module Archive_client : sig ... end
module Config : sig ... end
module Conf_dir : sig ... end
module Subscriptions : sig ... end
type Structured_log_events.t +=
| Connecting | |
| Listening | |
| Bootstrapping | |
| Ledger_catchup | |
| Synced | |
| Rebroadcast_transition of {
} |
val connecting_structured_events_id : Structured_log_events.id
val connecting_structured_events_repr : Structured_log_events.repr
val listening_structured_events_id : Structured_log_events.id
val listening_structured_events_repr : Structured_log_events.repr
val bootstrapping_structured_events_id : Structured_log_events.id
val bootstrapping_structured_events_repr : Structured_log_events.repr
val ledger_catchup_structured_events_id : Structured_log_events.id
val ledger_catchup_structured_events_repr : Structured_log_events.repr
val synced_structured_events_id : Structured_log_events.id
val synced_structured_events_repr : Structured_log_events.repr
val rebroadcast_transition_structured_events_id : Structured_log_events.id
val rebroadcast_transition_structured_events_repr : Structured_log_events.repr
module type CONTEXT = sig ... end
val time_controller : t -> Block_time.Controller.t
val subscription : t -> Mina_lib__Mina_subscriptions.t
val block_production_pubkeys : t -> Signature_lib.Public_key.Compressed.Set.t
Derived from local state (aka they may not reflect the latest public keys to which you've attempted to change
val coinbase_receiver : t -> Consensus.Coinbase_receiver.t
val replace_coinbase_receiver : t -> Consensus.Coinbase_receiver.t -> unit
val next_producer_timing :
t ->
Daemon_rpcs.Types.Status.Next_producer_timing.t option
val staking_ledger :
t ->
Consensus.Data.Local_state.Snapshot.Ledger_snapshot.t option
val next_epoch_ledger :
t ->
[ `Finalized of Consensus.Data.Local_state.Snapshot.Ledger_snapshot.t
| `Notfinalized ]
option
val current_epoch_delegators :
t ->
pk:Signature_lib.Public_key.Compressed.t ->
Mina_base.Account.t list option
val last_epoch_delegators :
t ->
pk:Signature_lib.Public_key.Compressed.t ->
Mina_base.Account.t list option
val replace_snark_worker_key :
t ->
Signature_lib.Public_key.Compressed.t option ->
unit Async_kernel.Deferred.t
val add_block_subscriber :
t ->
Signature_lib.Public_key.Compressed.t option ->
( Filtered_external_transition.t, Mina_base.State_hash.t ) With_hash.t
Async_kernel.Pipe.Reader.t
val add_payment_subscriber :
t ->
Mina_base.Account.key ->
Mina_base.Signed_command.t Async_kernel.Pipe.Reader.t
val snark_worker_key : t -> Signature_lib.Public_key.Compressed.t option
val snark_coordinator_key : t -> Signature_lib.Public_key.Compressed.t option
val snark_work_fee : t -> Currency.Fee.t
val set_snark_work_fee : t -> Currency.Fee.t -> unit
val request_work : t -> Snark_worker.Work.Spec.t option
val work_selection_method : t -> (module Work_selector.Selection_method_intf)
val add_work : t -> Snark_worker.Work.Result.t -> unit
val snark_job_state : t -> Work_selector.State.t
val get_current_nonce :
t ->
Mina_base.Account_id.t ->
( [> `Min of Mina_base.Account.Nonce.t ] * Mina_base.Account.Nonce.t,
string )
Core.result
val add_transactions :
t ->
User_command_input.t list ->
([ `Broadcasted | `Not_broadcasted ]
* Network_pool.Transaction_pool.Resource_pool.Diff.t
* Network_pool.Transaction_pool.Resource_pool.Diff.Rejected.t)
Async_kernel.Deferred.Or_error.t
val add_full_transactions :
t ->
Mina_base.User_command.t list ->
([ `Broadcasted | `Not_broadcasted ]
* Network_pool.Transaction_pool.Resource_pool.Diff.t
* Network_pool.Transaction_pool.Resource_pool.Diff.Rejected.t)
Async_kernel.Deferred.Or_error.t
val add_zkapp_transactions :
t ->
Mina_base.Zkapp_command.t list ->
([ `Broadcasted | `Not_broadcasted ]
* Network_pool.Transaction_pool.Resource_pool.Diff.t
* Network_pool.Transaction_pool.Resource_pool.Diff.Rejected.t)
Async_kernel.Deferred.Or_error.t
val get_account :
t ->
Mina_base.Account_id.t ->
Mina_base.Account.t option Participating_state.T.t
val get_inferred_nonce_from_transaction_pool_and_ledger :
t ->
Mina_base.Account_id.t ->
Mina_base.Account.Nonce.t option Participating_state.t
val active_or_bootstrapping : t -> unit Participating_state.t
val get_node_state : t -> Node_error_service.node_state Async_kernel.Deferred.t
val best_staged_ledger : t -> Staged_ledger.t Participating_state.t
val best_ledger : t -> Mina_ledger.Ledger.t Participating_state.t
val root_length : t -> int Participating_state.t
val best_protocol_state :
t ->
Mina_state.Protocol_state.Value.t Participating_state.t
val best_tip : t -> Transition_frontier.Breadcrumb.t Participating_state.t
val sync_status : t -> Sync_status.t Mina_incremental.Status.Observer.t
val visualize_frontier : filename:string -> t -> unit Participating_state.t
val peers : t -> Network_peer.Peer.t list Async_kernel.Deferred.t
val initial_peers : t -> Mina_net2.Multiaddr.t list
val client_port : t -> int
val validated_transitions :
t ->
Mina_block.Validated.t Pipe_lib.Strict_pipe.Reader.t
module Root_diff : sig ... end
val root_diff : t -> Root_diff.t Pipe_lib.Strict_pipe.Reader.t
val initialization_finish_signal : t -> unit Async_kernel.Ivar.t
val dump_tf : t -> string Core.Or_error.t
val best_path : t -> Mina_base.State_hash.t list option
val best_chain :
?max_length:int ->
t ->
Transition_frontier.Breadcrumb.t list option
val transaction_pool : t -> Network_pool.Transaction_pool.t
val snark_pool : t -> Network_pool.Snark_pool.t
val start : t -> unit Async_kernel.Deferred.t
val start_with_precomputed_blocks :
t ->
Block_producer.Precomputed.t Core.Sequence.t ->
unit Async_kernel.Deferred.t
val stop_snark_worker :
?should_wait_kill:bool ->
t ->
unit Async_kernel.Deferred.t
val create :
?wallets:Secrets.Wallets.t ->
Config.t ->
t Async_kernel.Deferred.t
val staged_ledger_ledger_proof : t -> Ledger_proof.t option
val transition_frontier :
t ->
Transition_frontier.t option Pipe_lib.Broadcast_pipe.Reader.t
val get_ledger :
t ->
Mina_base.State_hash.t option ->
Mina_base.Account.t list Core.Or_error.t
val get_snarked_ledger :
t ->
Mina_base.State_hash.t option ->
Mina_base.Account.t list Core.Or_error.t
val wallets : t -> Secrets.Wallets.t
val subscriptions : t -> Mina_lib__Mina_subscriptions.t
val most_recent_valid_transition :
t ->
Mina_block.initial_valid_block Pipe_lib.Broadcast_pipe.Reader.t
val block_produced_bvar :
t ->
( Transition_frontier.Breadcrumb.t, Core.read_write ) Async_kernel.Bvar.t
val net : t -> Mina_networking.t
val runtime_config : t -> Runtime_config.t
val verifier : t -> Verifier.t